Package eu.europa.esig.dss.diagnostic
Class CertificateRefWrapper
java.lang.Object
eu.europa.esig.dss.diagnostic.CertificateRefWrapper
-
Constructor Summary
ConstructorsConstructorDescriptionCertificateRefWrapper(XmlCertificateRef certificateRef, String certificateId) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns Id of the referenced certificate token (when available) or the reference idReturns digest algo and valueReturns a usedDigestAlgorithmfor a certificate reference creationReturns IssuerNamebyte[]Returns IssuerSerial's binariesReturns a certificate reference originbyte[]getSki()Returns SKI of the certificate (SHA-1 of the certificate's public key)booleanChecks if the DigestAlgoAndValue of the reference matches one of the certificatebooleanChecks if the DigestAlgoAndValue of the reference present in the certificate referencebooleanReturns of IssuerSerial match with a found certificatebooleanReturns of IssuerSerial is present within the certificate referencetoString()
-
Constructor Details
-
CertificateRefWrapper
Default constructor- Parameters:
certificateRef-XmlCertificateRefcertificateId-StringId of the related certificate
-
-
Method Details
-
getOrigin
Returns a certificate reference origin- Returns:
CertificateRefOrigin
-
getIssuerSerial
public byte[] getIssuerSerial()Returns IssuerSerial's binaries- Returns:
- a byte array
-
isIssuerSerialPresent
public boolean isIssuerSerialPresent()Returns of IssuerSerial is present within the certificate reference- Returns:
- TRUE if IssuerSerial is present, FALSE otherwise
-
isIssuerSerialMatch
public boolean isIssuerSerialMatch()Returns of IssuerSerial match with a found certificate- Returns:
- TRUE if IssuerSerial matches with a found certificate , FALSE otherwise
-
getIssuerName
-
getSki
public byte[] getSki()Returns SKI of the certificate (SHA-1 of the certificate's public key)- Returns:
- a byte array
-
getDigestAlgoAndValue
Returns digest algo and value- Returns:
XmlDigestAlgoAndValue
-
isDigestValuePresent
public boolean isDigestValuePresent()Checks if the DigestAlgoAndValue of the reference present in the certificate reference- Returns:
- TRUE if DigestAlgoAndValue present in the certificate reference, FALSE otherwise
-
getDigestMethod
Returns a usedDigestAlgorithmfor a certificate reference creation- Returns:
DigestAlgorithm
-
isDigestValueMatch
public boolean isDigestValueMatch()Checks if the DigestAlgoAndValue of the reference matches one of the certificate- Returns:
- TRUE if DigestAlgoAndValue matches the certificate, FALSE otherwise
-
getCertificateId
-
toString
-