X509Factory

This class defines a certificate factory for X.509 v3 certificates & certification paths, and X.509 v2 certificate revocation lists (CRLs).

@author Jan Luehe @author Hemma Prafullchandra @author Sean Mullan

More...

Members

Functions

engineGenerateCRL
CRL engineGenerateCRL(InputStream stream)

Generates an X.509 certificate revocation list (CRL) object and initializes it with the data read from the given input stream <code>is</code>.

engineGenerateCRLs
Collection!(CRL) engineGenerateCRLs(InputStream stream)

Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream <code>is</code>.

engineGenerateCertificate
Certificate engineGenerateCertificate(InputStream inputStream)

Generates an X.509 certificate object and initializes it with the data read from the input stream <code>inputStream</code>.

engineGenerateCertificates
Collection!(Certificate) engineGenerateCertificates(InputStream stream)

Returns a (possibly empty) collection view of X.509 certificates read from the given input stream <code>is</code>.

Static functions

intern
X509CertImpl intern(X509Certificate c)

Return an interned X509CertImpl for the given certificate. If the given X509Certificate or X509CertImpl is already present in the cert cache, the cached object is returned. Otherwise, if it is a X509Certificate, it is first converted to a X509CertImpl. Then the X509CertImpl is added to the cache and returned.

intern
X509CRLImpl intern(X509CRL c)

Return an interned X509CRLImpl for the given certificate. For more information, see intern(X509Certificate).

Variables

BEGIN_CERT
enum string BEGIN_CERT;
Undocumented in source.
END_CERT
enum string END_CERT;
Undocumented in source.

Inherited Members

From CertificateFactorySpi

engineGenerateCertificate
Certificate engineGenerateCertificate(InputStream inStream)

Generates a certificate object and initializes it with the data read from the input stream {@code inStream}.

engineGenerateCertPath
CertPath engineGenerateCertPath(InputStream inStream)

Generates a {@code CertPath} object and initializes it with the data read from the {@code InputStream} inStream. The data is assumed to be in the default encoding.

engineGenerateCertPath
CertPath engineGenerateCertPath(InputStream inStream, string encoding)

Generates a {@code CertPath} object and initializes it with the data read from the {@code InputStream} inStream. The data is assumed to be in the specified encoding.

engineGenerateCertPath
CertPath engineGenerateCertPath(List!(Certificate) certificates)

Generates a {@code CertPath} object and initializes it with a {@code List} of {@code Certificate}s. <p> The certificates supplied must be of a type supported by the {@code CertificateFactory}. They will be copied out of the supplied {@code List} object.

engineGetCertPathEncodings
Iterator!string engineGetCertPathEncodings()

Returns an iteration of the {@code CertPath} encodings supported by this certificate factory, with the default encoding first. See the CertPath Encodings section in the <a href= "{@docRoot}/../technotes/guides/security/StandardNames.html#CertPathEncodings"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard encoding names. <p> Attempts to modify the returned {@code Iterator} via its {@code remove} method result in an {@code UnsupportedOperationException}.

engineGenerateCertificates
Collection!Certificate engineGenerateCertificates(InputStream inStream)

Returns a (possibly empty) collection view of the certificates read from the given input stream {@code inStream}.

engineGenerateCRL
CRL engineGenerateCRL(InputStream inStream)

Generates a certificate revocation list (CRL) object and initializes it with the data read from the input stream {@code inStream}.

engineGenerateCRLs
Collection!CRL engineGenerateCRLs(InputStream inStream)

Returns a (possibly empty) collection view of the CRLs read from the given input stream {@code inStream}.

Detailed Description

@see java.security.cert.CertificateFactorySpi @see java.security.cert.Certificate @see java.security.cert.CertPath @see java.security.cert.CRL @see java.security.cert.X509Certificate @see java.security.cert.X509CRL @see sun.security.x509.X509CertImpl @see sun.security.x509.X509CRLImpl

Meta