Example usage for Java java.security.cert X509Certificate fields, constructors, methods, implement or subclass
The text is from its open source code.
void | checkValidity(Date date) Checks that the given date is within the certificate's validity period. |
void | checkValidity() Checks that the certificate is currently valid. |
boolean | equals(Object other) Compares this certificate for equality with the specified object. |
int | getBasicConstraints() Gets the certificate constraints path length from the critical BasicConstraints extension, (OID = 2.5.29.19). |
Class> | getClass() Returns the runtime class of this Object . |
Set | getCriticalExtensionOIDs() Gets a Set of the OID strings for the extension(s) marked CRITICAL in the certificate/CRL managed by the object implementing this interface. |
byte[] | getEncoded() Returns the encoded form of this certificate. |
List | getExtendedKeyUsage() Gets an unmodifiable list of Strings representing the OBJECT IDENTIFIERs of the ExtKeyUsageSyntax field of the extended key usage extension, (OID = 2.5.29.37). |
byte[] | getExtensionValue(String oid) Gets the DER-encoded OCTET string for the extension value (extnValue) identified by the passed-in oid String. |
Collection
| getIssuerAlternativeNames() Gets an immutable collection of issuer alternative names from the IssuerAltName extension, (OID = 2.5.29.18). |
Principal | getIssuerDN() Denigrated, replaced by #getIssuerX500Principal() . |
boolean[] | getIssuerUniqueID() Gets the issuerUniqueID value from the certificate. |
X500Principal | getIssuerX500Principal() Returns the issuer (issuer distinguished name) value from the certificate as an X500Principal . |
boolean[] | getKeyUsage() Gets a boolean array representing bits of the KeyUsage extension, (OID = 2.5.29.15). |
Set | getNonCriticalExtensionOIDs() Gets a Set of the OID strings for the extension(s) marked NON-CRITICAL in the certificate/CRL managed by the object implementing this interface. |
Date | getNotAfter() Gets the notAfter date from the validity period of the certificate. |
Date | getNotBefore() Gets the notBefore date from the validity period of the certificate. |
PublicKey | getPublicKey() Gets the public key from this certificate. |
BigInteger | getSerialNumber() Gets the serialNumber value from the certificate. |
String | getSigAlgName() Gets the signature algorithm name for the certificate signature algorithm. |
String | getSigAlgOID() Gets the signature algorithm OID string from the certificate. |
byte[] | getSigAlgParams() Gets the DER-encoded signature algorithm parameters from this certificate's signature algorithm. |
byte[] | getSignature() Gets the signature value (the raw signature bits) from the certificate. |
Collection
| getSubjectAlternativeNames() Gets an immutable collection of subject alternative names from the SubjectAltName extension, (OID = 2.5.29.17). |
Principal | getSubjectDN() Denigrated, replaced by #getSubjectX500Principal() . |
boolean[] | getSubjectUniqueID() Gets the subjectUniqueID value from the certificate. |
X500Principal | getSubjectX500Principal() Returns the subject (subject distinguished name) value from the certificate as an X500Principal . |
byte[] | getTBSCertificate() Gets the DER-encoded certificate information, the tbsCertificate from this certificate. |
String | getType() Returns the type of this certificate. |
int | getVersion() Gets the version (version number) value from the certificate. |
boolean | hasUnsupportedCriticalExtension() Check if there is a critical extension that is not supported. |
String | toString() Returns a string representation of this certificate. |
void | verify(PublicKey key) Verifies that this certificate was signed using the private key that corresponds to the specified public key. |
void | verify(PublicKey key, Provider sigProvider) Verifies that this certificate was signed using the private key that corresponds to the specified public key. |