Package eu.europa.esig.dss.diagnostic
Class CertificateRefWrapper
java.lang.Object
eu.europa.esig.dss.diagnostic.CertificateRefWrapper
Represents a certificate reference wrapper
-
Constructor Summary
ConstructorDescriptionCertificateRefWrapper
(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 usedDigestAlgorithm
for 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)boolean
Checks if the DigestAlgoAndValue of the reference matches one of the certificateboolean
Checks if the DigestAlgoAndValue of the reference present in the certificate referenceboolean
Returns of IssuerSerial match with a found certificateboolean
Returns of IssuerSerial is present within the certificate referencetoString()
-
Constructor Details
-
CertificateRefWrapper
Default constructor- Parameters:
certificateRef
-XmlCertificateRef
certificateId
-String
Id 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
Returns IssuerName- Returns:
String
-
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 usedDigestAlgorithm
for 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
Returns Id of the referenced certificate token (when available) or the reference id- Returns:
String
-
toString
-