Package io.ocfl.api.model
Class SizeDigestAlgorithm
java.lang.Object
io.ocfl.api.model.DigestAlgorithm
io.ocfl.api.model.SizeDigestAlgorithm
Defines a digest algorithms which calculates the size (byte count) for the input
and returns it as integer represented as string as specified in
OCFL community extension 9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode
(byte[] value) Encodes a binary digest value into a string representation.Creates a newMessageDigest
that implements the digest algorithmMethods inherited from class io.ocfl.api.model.DigestAlgorithm
equals, fromOcflName, fromOcflName, getJavaStandardName, getOcflName, hashCode, hasJavaStandardName, toString
-
Constructor Details
-
SizeDigestAlgorithm
public SizeDigestAlgorithm()
-
-
Method Details
-
getMessageDigest
Description copied from class:DigestAlgorithm
Creates a newMessageDigest
that implements the digest algorithm- Specified by:
getMessageDigest
in classDigestAlgorithm
- Returns:
- new
MessageDigest
-
encode
Description copied from class:DigestAlgorithm
Encodes a binary digest value into a string representation.- Specified by:
encode
in classDigestAlgorithm
- Parameters:
value
- digest value- Returns:
- the digest value as a string
-