java.security.cert - JRE Emulation | JRE Emulation
package

java.security.cert

This package provides all the classes and all the interfaces needed to generate, administer and verify X.509 certificates. Functionality for parsing certificate, extracting information from them, validating and verifying the information they contains are provided. Exception are generated mainly for three reasons:
- if the certificate's encoding is broken (CertificateEncodingException)
- if the certificate's time stamp is not valid (CertificateExpiredException)
- or if the validation's path is false (CertPathValidatorException).

The functionality to check the different entries and extension fields of X.509 certificates are also provided.

Interfaces

CertPathParameters The interface specification for certification path algorithm parameters. 
CertPathValidatorException.Reason The reason the validation algorithm failed. 
CertPathValidatorResult The interface specification for certification path validation results. 
X509Extension The interface specifying an X.509 Certificate or CRL extension. 

Classes

Certificate Abstract class to represent identity certificates. 
Certificate.CertificateRep The alternate Serializable class to be used for serialization and deserialization of Certificate objects. 
CertificateFactory This class implements the functionality of a certificate factory algorithm, relying on parsing a stream of bytes. 
CertificateFactorySpi This class defines the Service Provider Interface (SPI) for the CertificateFactory class. 
CertPath An immutable certificate path that can be validated. 
CertPath.CertPathRep The alternate Serializable class to be used for serialization and deserialization on CertPath objects. 
CertPathValidator This class provides the functionality for validating certification paths (certificate chains) establishing a trust chain from a certificate to a trust anchor. 
CertPathValidatorSpi The Service Provider Interface (SPI) for the CertPathValidator class to be implemented by security providers. 
CRL This class represents Certificate Revocation Lists (CRLs) maintained by a certificate authority. 
X509Certificate Abstract base class for X.509 certificates. 

Enums

CertPathValidatorException.BasicReason The BasicReason enumerates the potential reasons that a certification path of any type may be invalid. 

Exceptions

CertificateEncodingException Certificate Encoding Exception. 
CertificateException This exception indicates one of a variety of certificate problems. 
CertificateExpiredException Certificate Expired Exception. 
CertificateNotYetValidException Certificate is not yet valid exception. 
CertificateParsingException Certificate Parsing Exception. 
CertPathBuilderException An exception indicating one of a variety of problems encountered when building a certification path with a CertPathBuilder
CertPathValidatorException An exception indicating one of a variety of problems encountered when validating a certification path. 
CertStoreException An exception indicating one of a variety of problems retrieving certificates and CRLs from a CertStore
CRLException CRL (Certificate Revocation List) Exception.