Package eu.europa.esig.dss.diagnostic
Class OrphanCertificateTokenWrapper
java.lang.Object
eu.europa.esig.dss.diagnostic.OrphanTokenWrapper<XmlOrphanCertificateToken>
eu.europa.esig.dss.diagnostic.OrphanCertificateTokenWrapper
- Direct Known Subclasses:
OrphanCertificateWrapper
Wrapper class for XML orphan certificate
-
Field Summary
Fields inherited from class eu.europa.esig.dss.diagnostic.OrphanTokenWrapper
orphanToken
-
Constructor Summary
ConstructorDescriptionOrphanCertificateTokenWrapper
(XmlOrphanCertificateToken orphanToken) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns base64-encoded byte array of the tokenReturns the certificate's Distinguished Name (by RFC 2253)Returns the certificate issuer's Distinguished Name (by RFC 2253)Returns digest of the tokenReturns a string identifier of the certificate's public keyReturns the certificate's notAfter date (the date the certificate cannot be used after)Returns the certificate's notBefore date (the date the certificate cannot be used before)Returns the serial number of the certificateboolean
Returns if the certificate is self-signedboolean
Returns if the certificate is trustedMethods inherited from class eu.europa.esig.dss.diagnostic.OrphanTokenWrapper
equals, getId, hashCode, toString
-
Constructor Details
-
OrphanCertificateTokenWrapper
Default constructor- Parameters:
orphanToken
-XmlOrphanCertificateToken
-
-
Method Details
-
getCertificateDN
Returns the certificate's Distinguished Name (by RFC 2253)- Returns:
String
-
getCertificateIssuerDN
Returns the certificate issuer's Distinguished Name (by RFC 2253)- Returns:
String
-
getSerialNumber
Returns the serial number of the certificate- Returns:
String
-
getNotBefore
Returns the certificate's notBefore date (the date the certificate cannot be used before)- Returns:
Date
notBefore
-
getNotAfter
Returns the certificate's notAfter date (the date the certificate cannot be used after)- Returns:
Date
notAfter
-
getEntityKey
Returns a string identifier of the certificate's public key- Returns:
String
public key's identifier
-
isTrusted
public boolean isTrusted()Returns if the certificate is trusted- Returns:
- TRUE if the certificate is trusted, FALSE otherwise
-
isSelfSigned
public boolean isSelfSigned()Returns if the certificate is self-signed- Returns:
- TRUE if the certificate is self-signed, FALSE otherwise
-
getBinaries
public byte[] getBinaries()Description copied from class:OrphanTokenWrapper
Returns base64-encoded byte array of the token- Specified by:
getBinaries
in classOrphanTokenWrapper<XmlOrphanCertificateToken>
- Returns:
- byte array
-
getDigestAlgoAndValue
Description copied from class:OrphanTokenWrapper
Returns digest of the token- Specified by:
getDigestAlgoAndValue
in classOrphanTokenWrapper<XmlOrphanCertificateToken>
- Returns:
XmlDigestAlgoAndValue
-