API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security.cert. X509Certificate View Source
Author(s)
Hemma Prafullchandra
Since
Version
1.40
Serial
Hierarchy
 Object
      Certificate
          X509Certificate
Implements
 X509Extension
Subclasses
Description
publicabstract abstract class X509Certificate
  Abstract class for X.509 certificates.
Constructors
protected X509Certificate ()
Constructor for X.509 certificates.
Methods
Hide/Show inherited methods
publicabstract void checkValidity () throws CertificateExpiredException CertificateNotYetValidException
  Checks that the certificate is currently valid.
publicabstract void checkValidity (Date date) throws CertificateExpiredException CertificateNotYetValidException
  Checks that the given date is within the certificate's validity period.
public boolean equals (Object other) [Inherited From Certificate]
  Compares this certificate for equality with the specified object.
publicabstract int getBasicConstraints ()
  Gets the certificate constraints path length from the critical BasicConstraints extension, (OID = 2.5.29.19).
publicabstract byte getEncoded () throws CertificateEncodingException [Inherited From Certificate]
  Returns the encoded form of this certificate.
public List<String> getExtendedKeyUsage () throws CertificateParsingException
  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).
public Collection<List<Object>> getIssuerAlternativeNames () throws CertificateParsingException
  Gets an immutable collection of issuer alternative names from the IssuerAltName extension, (OID = 2.5.29.18).
publicabstract Principal getIssuerDN ()
  Denigrated, replaced by X509Certificate.getIssuerX500Principal().
publicabstract boolean getIssuerUniqueID ()
  Gets the issuerUniqueID value from the certificate.
public X500Principal getIssuerX500Principal ()
  Returns the issuer (issuer distinguished name) value from the certificate as an X500Principal.
publicabstract boolean getKeyUsage ()
  Gets a boolean array representing bits of the KeyUsage extension, (OID = 2.5.29.15).
publicabstract Date getNotAfter ()
  Gets the notAfter date from the validity period of the certificate.
publicabstract Date getNotBefore ()
  Gets the notBefore date from the validity period of the certificate.
publicabstract PublicKey getPublicKey () [Inherited From Certificate]
  Gets the public key from this certificate.
publicabstract BigInteger getSerialNumber ()
  Gets the serialNumber value from the certificate.
publicabstract String getSigAlgName ()
  Gets the signature algorithm name for the certificate signature algorithm.
publicabstract String getSigAlgOID ()
  Gets the signature algorithm OID string from the certificate.
publicabstract byte getSigAlgParams ()
  Gets the DER-encoded signature algorithm parameters from this certificate's signature algorithm.
publicabstract byte getSignature ()
  Gets the signature value (the raw signature bits) from the certificate.
public Collection<List<Object>> getSubjectAlternativeNames () throws CertificateParsingException
  Gets an immutable collection of subject alternative names from the SubjectAltName extension, (OID = 2.5.29.17).
publicabstract Principal getSubjectDN ()
  Denigrated, replaced by X509Certificate.getSubjectX500Principal().
publicabstract boolean getSubjectUniqueID ()
  Gets the subjectUniqueID value from the certificate.
public X500Principal getSubjectX500Principal ()
  Returns the subject (subject distinguished name) value from the certificate as an X500Principal.
publicabstract byte getTBSCertificate () throws CertificateEncodingException
  Gets the DER-encoded certificate information, the tbsCertificate from this certificate.
publicfinal String getType () [Inherited From Certificate]
  Returns the type of this certificate.
publicabstract int getVersion ()
  Gets the version (version number) value from the certificate.
public int hashCode () [Inherited From Certificate]
  Returns a hashcode value for this certificate from its encoded form.
publicabstract String toString () [Inherited From Certificate]
  Returns a string representation of this certificate.
publicabstract void verify (PublicKey key) throws CertificateException NoSuchAlgorithmException InvalidKeyException NoSuchProviderException SignatureException [Inherited From Certificate]
  Verifies that this certificate was signed using the private key that corresponds to the specified public key.
publicabstract void verify (PublicKey key, String sigProvider) throws CertificateException NoSuchAlgorithmException InvalidKeyException NoSuchProviderException SignatureException [Inherited From Certificate]
  Verifies that this certificate was signed using the private key that corresponds to the specified public key.
protected Object writeReplace () throws ObjectStreamException [Inherited From Certificate]
  Replace the Certificate to be serialized.
Fields
Hide/Show inherited fields
Nested Classes
  Certificate.CertificateRep
Alternate Certificate class for serialization.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar