Class Identifier
java.lang.Object
eu.europa.esig.dss.model.identifier.Identifier
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CertificateRefIdentifier
,DataIdentifier
,EntityIdentifier
,MultipleDigestIdentifier
,RevocationRefIdentifier
,SignatureAttributeIdentifier
,SignatureIdentifier
This class is used to obtain a unique id for an object
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final DigestAlgorithm
The DigestAlgorithm to use -
Constructor Summary
ModifierConstructorDescriptionprotected
Identifier
(String prefix, byte[] data) The constructor to get an identifier computed from the binaries with a defined prefixprotected
Identifier
(String prefix, Digest digest) The constructor to get an identifier computed provided digest with a defined prefix -
Method Summary
Modifier and TypeMethodDescriptionasXmlId()
Return an ID conformant to XML Idboolean
protected MessageDigest
getMessageDigest
(DigestAlgorithm digestAlgorithm) GetsMessageDigest
of the DigestAlgorithmint
hashCode()
toString()
-
Field Details
-
DIGEST_ALGO
The DigestAlgorithm to use
-
-
Constructor Details
-
Identifier
-
Identifier
-
-
Method Details
-
getMessageDigest
GetsMessageDigest
of the DigestAlgorithm- Parameters:
digestAlgorithm
-DigestAlgorithm
- Returns:
MessageDigest
-
asXmlId
-
toString
-
hashCode
-
equals
-