public static class JarSignatureValidator.CertificateInfo extends Object
| Constructor and Description |
|---|
CertificateInfo(X509Certificate cert,
JarSignatureValidator.RevocationInfo revocationInfo)
Constructs a CertificateInfo from an X.509 certificate and its revocation status.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIssuer()
Returns the certificate issuer's distinguished name.
|
Date |
getNotAfter()
Returns the end date of the certificate's validity period.
|
Date |
getNotBefore()
Returns the start date of the certificate's validity period.
|
JarSignatureValidator.RevocationInfo |
getRevocationInfo()
Returns the revocation check information, or
null if not checked. |
BigInteger |
getSerialNumber()
Returns the certificate's serial number.
|
String |
getSubject()
Returns the certificate subject's distinguished name.
|
boolean |
isExpired()
Returns whether the certificate has expired.
|
boolean |
isNotYetValid()
Returns whether the certificate is not yet valid.
|
boolean |
isSelfSigned()
Returns whether the certificate is self-signed.
|
boolean |
isValidNow()
Returns whether the certificate is currently valid.
|
String |
toString() |
public CertificateInfo(X509Certificate cert, JarSignatureValidator.RevocationInfo revocationInfo)
cert - the X.509 certificate to extract information from.revocationInfo - the revocation check result, or null if not checked.public String getSubject()
public String getIssuer()
public BigInteger getSerialNumber()
public Date getNotBefore()
public Date getNotAfter()
public boolean isExpired()
public boolean isNotYetValid()
public boolean isSelfSigned()
public JarSignatureValidator.RevocationInfo getRevocationInfo()
null if not checked.public boolean isValidNow()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.