public interface ContentHashWorker
extends org.gytheio.content.ContentWorker
| Modifier and Type | Field and Description |
|---|---|
static String |
HASH_ALGORITHM_MD5 |
static String |
HASH_ALGORITHM_SHA_256 |
static String |
HASH_ALGORITHM_SHA_512 |
static String |
RESULT_DETAIL_HEX_ENCODED_VALUE |
| Modifier and Type | Method and Description |
|---|---|
List<org.gytheio.content.ContentWorkResult> |
generateHashes(List<org.gytheio.content.ContentReference> sources,
String hashAlgorithm)
Generates a hash value for the given content reference using the given algorithm
|
boolean |
isAlgorithmSupported(String hashAlgorithm)
Determines whether or not the given hash algorithm is supported
by the implementation.
|
static final String HASH_ALGORITHM_MD5
static final String HASH_ALGORITHM_SHA_256
static final String HASH_ALGORITHM_SHA_512
static final String RESULT_DETAIL_HEX_ENCODED_VALUE
List<org.gytheio.content.ContentWorkResult> generateHashes(List<org.gytheio.content.ContentReference> sources, String hashAlgorithm) throws org.gytheio.content.ContentIOException, InterruptedException, ContentHashException
sources - hashAlgorithm - Exceptionorg.gytheio.content.ContentIOExceptionInterruptedExceptionContentHashExceptionboolean isAlgorithmSupported(String hashAlgorithm)
hashAlgorithm - Copyright © 2018 Alfresco Software. All rights reserved.