Package io.ocfl.api
Class DigestAlgorithmRegistry
java.lang.Object
io.ocfl.api.DigestAlgorithmRegistry
Registry of digest algorithms. By default it contains all of the algorithms as defined in the OCFL spec and extensions.
Additional algorithms can be added as needed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DigestAlgorithm
static final DigestAlgorithm
static final DigestAlgorithm
static final DigestAlgorithm
static final DigestAlgorithm
static final DigestAlgorithm
static final DigestAlgorithm
static final DigestAlgorithm
static final DigestAlgorithm
static final DigestAlgorithm
-
Method Summary
Modifier and TypeMethodDescriptionstatic DigestAlgorithm
getAlgorithm
(String ocflName) Retrieves the algorithm that corresponds to the OCFL name from the registrystatic void
register
(DigestAlgorithm algorithm) Adds a new algorithm to the registry
-
Field Details
-
md5
-
sha1
-
sha256
-
sha512
-
blake2b512
-
blake2b160
-
blake2b256
-
blake2b384
-
sha512_256
-
size
-
-
Method Details
-
register
Adds a new algorithm to the registry- Parameters:
algorithm
- algorithm to add to the registry
-
getAlgorithm
Retrieves the algorithm that corresponds to the OCFL name from the registry- Parameters:
ocflName
- name of the algorithm to retrieve- Returns:
- DigestAlgorithm
-