Package eu.europa.esig.dss.diagnostic
Class OrphanCertificateTokenWrapper
java.lang.Object
eu.europa.esig.dss.diagnostic.OrphanTokenWrapper<XmlOrphanCertificateToken>
eu.europa.esig.dss.diagnostic.OrphanCertificateTokenWrapper
-
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
-
getCertificateIssuerDN
-
getSerialNumber
-
getNotBefore
-
getNotAfter
-
getEntityKey
-
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
-