java.lang.Object | ||
↳ | java.security.cert.CertificateFactorySpi | |
↳ | sun.security.provider.X509Factory |
This class defines a certificate factory for X.509 v3 certificates & certification paths, and X.509 v2 certificate revocation lists (CRLs).
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BEGIN_CERT | ||||||||||
String | END_CERT |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Generates an X.509 certificate revocation list (CRL) object and
initializes it with the data read from the given input stream
is . | |||||||||||
Returns a (possibly empty) collection view of X.509 CRLs read
from the given input stream
is . | |||||||||||
Generates a
CertPath object and initializes it with
the data read from the InputStream inStream. | |||||||||||
Generates a
CertPath object and initializes it with
a List of Certificate s. | |||||||||||
Generates a
CertPath object and initializes it with
the data read from the InputStream inStream. | |||||||||||
Generates an X.509 certificate object and initializes it with
the data read from the input stream
is . | |||||||||||
Returns a (possibly empty) collection view of X.509 certificates read
from the given input stream
is . | |||||||||||
Returns an iteration of the
CertPath encodings supported
by this certificate factory, with the default encoding first. | |||||||||||
Return an interned X509CertImpl for the given certificate.
| |||||||||||
Return an interned X509CRLImpl for the given certificate.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Generates an X.509 certificate revocation list (CRL) object and
initializes it with the data read from the given input stream
is
.
is | an input stream with the CRL data. |
---|
CRLException | on parsing errors. |
---|
Returns a (possibly empty) collection view of X.509 CRLs read
from the given input stream is
.
is | the input stream with the CRLs. |
---|
CRLException | on parsing errors. |
---|
Generates a CertPath
object and initializes it with
the data read from the InputStream
inStream. The data
is assumed to be in the specified encoding.
inStream | an InputStream containing the data |
---|---|
encoding | the encoding used for the data |
CertPath
initialized with the data from the
InputStream
CertificateException | if an exception occurs while decoding or the encoding requested is not supported |
---|
Generates a CertPath
object and initializes it with
a List
of Certificate
s.
The certificates supplied must be of a type supported by the
CertificateFactory
. They will be copied out of the supplied
List
object.
certificates | a List of Certificate s |
---|
CertPath
initialized with the supplied list of
certificatesCertificateException | if an exception occurs |
---|
Generates a CertPath
object and initializes it with
the data read from the InputStream
inStream. The data
is assumed to be in the default encoding.
inStream | an InputStream containing the data |
---|
CertPath
initialized with the data from the
InputStream
CertificateException | if an exception occurs while decoding |
---|
Generates an X.509 certificate object and initializes it with
the data read from the input stream is
.
is | an input stream with the certificate data. |
---|
CertificateException | on parsing errors. |
---|
Returns a (possibly empty) collection view of X.509 certificates read
from the given input stream is
.
is | the input stream with the certificates. |
---|
CertificateException | on parsing errors. |
---|
Returns an iteration of the CertPath
encodings supported
by this certificate factory, with the default encoding first.
Attempts to modify the returned Iterator
via its
remove
method result in an
UnsupportedOperationException
.
Iterator
over the names of the supported
CertPath
encodings (as String
s)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. Note that all certificates created via generateCertificate(InputStream) are already interned and this method does not need to be called. It is useful for certificates that cannot be created via generateCertificate() and for converting other X509Certificate implementations to an X509CertImpl.
CertificateException |
---|
Return an interned X509CRLImpl for the given certificate. For more information, see intern(X509Certificate).
CRLException |
---|