Java java.security.cert X509Certificate fields, constructors, methods, implement or subclass

Example usage for Java java.security.cert X509Certificate fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.security.cert X509Certificate.

The text is from its open source code.

Subclass

java.security.cert.X509Certificate has subclasses.
Click this link to see all its subclasses.

Method

voidcheckValidity(Date date)
Checks that the given date is within the certificate's validity period.
voidcheckValidity()
Checks that the certificate is currently valid.
booleanequals(Object other)
Compares this certificate for equality with the specified object.
intgetBasicConstraints()
Gets the certificate constraints path length from the critical BasicConstraints extension, (OID = 2.5.29.19).
ClassgetClass()
Returns the runtime class of this Object .
SetgetCriticalExtensionOIDs()
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.
ListgetExtendedKeyUsage()
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).
PrincipalgetIssuerDN()
Denigrated, replaced by #getIssuerX500Principal() .
boolean[]getIssuerUniqueID()
Gets the issuerUniqueID value from the certificate.
X500PrincipalgetIssuerX500Principal()
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).
SetgetNonCriticalExtensionOIDs()
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.
DategetNotAfter()
Gets the notAfter date from the validity period of the certificate.
DategetNotBefore()
Gets the notBefore date from the validity period of the certificate.
PublicKeygetPublicKey()
Gets the public key from this certificate.
BigIntegergetSerialNumber()
Gets the serialNumber value from the certificate.
StringgetSigAlgName()
Gets the signature algorithm name for the certificate signature algorithm.
StringgetSigAlgOID()
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).
PrincipalgetSubjectDN()
Denigrated, replaced by #getSubjectX500Principal() .
boolean[]getSubjectUniqueID()
Gets the subjectUniqueID value from the certificate.
X500PrincipalgetSubjectX500Principal()
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.
StringgetType()
Returns the type of this certificate.
intgetVersion()
Gets the version (version number) value from the certificate.
booleanhasUnsupportedCriticalExtension()
Check if there is a critical extension that is not supported.
StringtoString()
Returns a string representation of this certificate.
voidverify(PublicKey key)
Verifies that this certificate was signed using the private key that corresponds to the specified public key.
voidverify(PublicKey key, Provider sigProvider)
Verifies that this certificate was signed using the private key that corresponds to the specified public key.