Class Identifier
java.lang.Object
eu.europa.esig.dss.model.identifier.Identifier
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CertificateRefIdentifier
,DataIdentifier
,EntityIdentifier
,MultipleDigestIdentifier
,RevocationRefIdentifier
,SignatureIdentifier
public abstract class Identifier extends Object implements Serializable
This class is used to obtain a unique id for an object
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected static DigestAlgorithm
DIGEST_ALGO
-
Constructor Summary
Constructors Modifier Constructor Description protected
Identifier(String prefix, byte[] data)
The constructor to get an identifier computed from a 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 Type Method Description String
asXmlId()
Return an ID conformant to XML Idboolean
equals(Object obj)
protected MessageDigest
getMessageDigest(DigestAlgorithm digestAlgorithm)
int
hashCode()
String
toString()
-
Field Details
-
Constructor Details
-
Identifier
The constructor to get an identifier computed from a the binaries with a defined prefix- Parameters:
prefix
-String
to be added in the beginning of a String identifierdata
- a byte array to compute the identifier from
-
Identifier
The constructor to get an identifier computed provided digest with a defined prefix
-
-
Method Details