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.
-
Interface Summary Interface Description CertPathBuilderResult The interface for results generated byCertPathBuilder.build(CertPathParameters).CertPathParameters The interface specification for certification path algorithm parameters.CertPathValidatorResult The interface specification for certification path validation results.CertSelector The interface specification to determine whether aCertificatemeets some criteria.CertStoreParameters The marker interface specifying the parameters used to initialize aCertStoreinstance.CRLSelector The interface specification for determining whether a CRL meets some criteria to select CRL objects among a set ofCRLs.PolicyNode The interface to a valid policy tree node for the PKIX certification path validation algorithm.X509Extension The interface specifying an X.509 Certificate or CRL extension. -
Class Summary Class Description Certificate Abstract class to represent identity certificates.Certificate.CertificateRep The alternateSerializableclass to be used for serialization and deserialization ofCertificateobjects.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 theCertificateFactoryclass.CertPath An immutable certificate path that can be validated.CertPath.CertPathRep The alternateSerializableclass to be used for serialization and deserialization onCertPathobjects.CertPathBuilder This class implements the functionality of a builder for an unverified Certification Paths from a specified certificate to a trust anchor.CertPathBuilderSpi The Service Provider Interface (SPI) for theCertPathBuilderclass to be implemented by security providers.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 theCertPathValidatorclass to be implemented by security providers.CertStore This class provides the functionality to retrieveCertificates andCRLs from a read-only repository.CertStoreSpi The Service Provider Interface (SPI) definition for theCertStoreclass to be implemented by security providers.CollectionCertStoreParameters The parameters to initialize a Collection typeCertStoreinstance.CRL This class represents Certificate Revocation Lists (CRLs) maintained by a certificate authority.LDAPCertStoreParameters The parameters to initialize a LDAPCertStoreinstance.PKIXBuilderParameters The parameter specification for a PKIXCertPathBuilderalgorithm used tobuildcertificate chains validated with the PKIX certification path validation.PKIXCertPathBuilderResult The result of the PKIX certification path builder, returned byCertPathBuilder.build(CertPathParameters).PKIXCertPathChecker The class specifying the interface to extend the certification path validation algorithm by checks to perform on anX509Certificate.PKIXCertPathValidatorResult The implementation of the result of the PKIX certification path validation.PKIXParameters This class implements the parameters for thePKIX CertPathValidator.PolicyQualifierInfo This class implements a policy qualifier as defined by the ASN.1PolicyQualifierInfostructure.TrustAnchor This class represents a trust anchor for validation of X.509 certification path.X509Certificate Abstract base class for X.509 certificates.X509CertSelector A certificate selector (CertSelectorfor selectingX509Certificates that match the specified criteria.X509CRL Abstract base class for X.509 certificate revocation lists (CRL).X509CRLEntry Abstract base class for entries in a certificate revocation list (CRL).X509CRLSelector A CRL selector (CRLSelectorfor selectingX509CRLs that match the specified criteria. -
Exception Summary Exception Description CertificateEncodingException The exception that is thrown when an error occurs while aCertificateis being encoded.CertificateException The base class for allCertificaterelated exceptions.CertificateExpiredException The exception that is thrown when aCertificatehas expired.CertificateNotYetValidException The exception that is thrown when aCertificateis not yet valid or will not yet be valid on a specified date.CertificateParsingException The exception that is thrown when aCertificatecan not be parsed.CertPathBuilderException The exception that is thrown when aCertPathBuildermethod fails.CertPathValidatorException The exception that is thrown when a certification path (or certificate chain) cannot be validated.CertStoreException The exception that is thrown when an access to aCertStorefails.CRLException The exception that is thrown if errors occur during handling ofCRLs.