API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security.cert. CertificateFactory View Source
Author(s)
Hemma Prafullchandra
Jan Luehe
Sean Mullan
Since
1.2
Version
1.32, 04/21/06
Serial
Hierarchy
 Object
      CertificateFactory
Implements
Subclasses
Description
public class CertificateFactory
  This class defines the functionality of a certificate factory, which is used to generate certificate, certification path (CertPath) and certificate revocation list (CRL) objects from their encodings.
Constructors
protected CertificateFactory (CertificateFactorySpi certFacSpi, Provider provider, String type)
  Creates a CertificateFactory object of the given type, and encapsulates the given provider implementation (SPI object) in it.
Methods
Hide/Show inherited methods
publicfinal Certificate generateCertificate (InputStream inStream) throws CertificateException
  Generates a certificate object and initializes it with the data read from the input stream inStream.
publicfinal Collection<Certificate> generateCertificates (InputStream inStream) throws CertificateException
  Returns a (possibly empty) collection view of the certificates read from the given input stream inStream.
publicfinal CertPath generateCertPath (InputStream inStream) throws CertificateException
  Generates a CertPath object and initializes it with the data read from the InputStream inStream.
publicfinal CertPath generateCertPath (InputStream inStream, String encoding) throws CertificateException
  Generates a CertPath object and initializes it with the data read from the InputStream inStream.
publicfinal CertPath generateCertPath (List<Certificate> certificates) throws CertificateException
  Generates a CertPath object and initializes it with a List of Certificates.
publicfinal CRL generateCRL (InputStream inStream) throws CRLException
  Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream inStream.
publicfinal Collection<CRL> generateCRLs (InputStream inStream) throws CRLException
  Returns a (possibly empty) collection view of the CRLs read from the given input stream inStream.
publicfinal Iterator<String> getCertPathEncodings ()
  Returns an iteration of the CertPath encodings supported by this certificate factory, with the default encoding first.
publicfinalstatic CertificateFactory getInstance (String type) throws CertificateException
  Returns a certificate factory object that implements the specified certificate type.
publicfinalstatic CertificateFactory getInstance (String type, Provider provider) throws CertificateException
  Returns a certificate factory object for the specified certificate type.
publicfinalstatic CertificateFactory getInstance (String type, String provider) throws CertificateException NoSuchProviderException
  Returns a certificate factory object for the specified certificate type.
publicfinal Provider getProvider ()
  Returns the provider of this certificate factory.
publicfinal String getType ()
  Returns the name of the certificate type associated with this certificate factory.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar