Class MultipleDigestIdentifier
java.lang.Object
eu.europa.esig.dss.model.identifier.Identifier
eu.europa.esig.dss.model.identifier.MultipleDigestIdentifier
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractTLIdentifier
,EncapsulatedRevocationTokenIdentifier
,TokenIdentifier
This class is used to obtain a requested digest from a stored binary array
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.model.identifier.Identifier
DIGEST_ALGO
-
Constructor Summary
ModifierConstructorDescriptionprotected
MultipleDigestIdentifier
(String prefix, byte[] binaries) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets token binariesbyte[]
getDigestValue
(DigestAlgorithm digestAlgorithm) Returns a digest value for the givendigestAlgorithm
boolean
Checks if the given digests match to the tokenMethods inherited from class eu.europa.esig.dss.model.identifier.Identifier
asXmlId, equals, getMessageDigest, hashCode, toString
-
Constructor Details
-
MultipleDigestIdentifier
Default constructor- Parameters:
prefix
-String
for the identifierbinaries
- token binaries
-
-
Method Details
-
getBinaries
public byte[] getBinaries()Gets token binaries- Returns:
- byte array
-
getDigestValue
Returns a digest value for the givendigestAlgorithm
- Parameters:
digestAlgorithm
-DigestAlgorithm
- Returns:
- digests
-
isMatch
Checks if the given digests match to the token- Parameters:
expectedDigest
-Digest
to verify- Returns:
- TRUE if the digest match, FALSE otherwise
-