Package io.ocfl.api
Class DigestAlgorithmRegistry
- java.lang.Object
-
- io.ocfl.api.DigestAlgorithmRegistry
-
public final class DigestAlgorithmRegistry extends Object
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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
-
-
-
Method Detail
-
register
public static void register(DigestAlgorithm algorithm)
Adds a new algorithm to the registry- Parameters:
algorithm
- algorithm to add to the registry
-
getAlgorithm
public static DigestAlgorithm getAlgorithm(String ocflName)
Retrieves the algorithm that corresponds to the OCFL name from the registry- Parameters:
ocflName
- name of the algorithm to retrieve- Returns:
- DigestAlgorithm
-
-