| java.lang.Object | |
| ↳ | java.security.cert.CertificateFactory |
This class implements the functionality of a certificate factory algorithm, relying on parsing a stream of bytes.
It defines methods for parsing certificate chains (certificate paths) and Certificate Revocation Lists (CRLs).
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Creates a new
CertificateFactory instance.
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Generates and initializes a
Certificate Revocation List (CRL) from the provided input stream.
|
||||||||||
|
|
Generates and initializes a collection of
Certificate Revocation List (CRL) from the provided input stream.
|
||||||||||
|
|
Generates a
CertPath (a certificate chain) from the provided
InputStream and the specified encoding scheme.
|
||||||||||
|
|
Generates a
CertPath (a certificate chain) from the provided
InputStream.
|
||||||||||
|
|
Generates a
CertPath from the provided list of certificates.
|
||||||||||
|
|
Generates and initializes a
Certificate from the provided input stream.
|
||||||||||
|
|
Generates and initializes a collection of (unrelated) certificates from the provided input stream.
|
||||||||||
|
|
Returns an
Iterator over the supported
CertPath encodings (as Strings).
|
||||||||||
|
|
Creates a new
CertificateFactory instance from the specified provider that provides the requested certificate type.
|
||||||||||
|
|
Creates a new
CertificateFactory instance from the specified provider that provides the requested certificate type.
|
||||||||||
|
|
Creates a new
CertificateFactory instance that provides the requested certificate type.
|
||||||||||
|
|
Returns the
Provider of the certificate factory represented by the certificate.
|
||||||||||
|
|
Returns the Certificate type.
|
||||||||||
| [Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
|||||||||||
Creates a new CertificateFactory instance.
| certFacSpi | the implementation delegate. |
|---|---|
| provider | the associated provider. |
| type | the certificate type. |
Generates and initializes a Certificate Revocation List (CRL) from the provided input stream.
| inStream | the stream from where data is read to create the CRL. |
|---|
| CRLException | if parsing problems are detected. |
|---|
Generates and initializes a collection of Certificate Revocation List (CRL) from the provided input stream.
| inStream | the stream from which the data is read to create the CRLs. |
|---|
| CRLException | if parsing problems are detected. |
|---|
Generates a CertPath (a certificate chain) from the provided InputStream and the specified encoding scheme.
| inStream | InputStream containing certificate path data in specified encoding. |
|---|---|
| encoding | encoding of the data in the input stream. |
CertPath initialized from the provided data.| CertificateException | if parsing problems are detected. |
|---|---|
| UnsupportedOperationException | if the provider does not implement this method. |
Generates a CertPath (a certificate chain) from the provided InputStream. The default encoding scheme is applied.
| inStream | InputStream with encoded data. |
|---|
CertPath initialized from the provided data.| CertificateException | if parsing problems are detected. |
|---|
Generates a CertPath from the provided list of certificates. The encoding is the default encoding.
| certificates | the list containing certificates in a format supported by the CertificateFactory. |
|---|
CertPath initialized from the provided data.| CertificateException | if parsing problems are detected. |
|---|---|
| UnsupportedOperationException | if the provider does not implement this method. |
Generates and initializes a Certificate from the provided input stream.
| inStream | the stream from where data is read to create the Certificate. |
|---|
| CertificateException | if parsing problems are detected. |
|---|
Generates and initializes a collection of (unrelated) certificates from the provided input stream.
| inStream | the stream from which the data is read to create the collection. |
|---|
| CertificateException | if parsing problems are detected. |
|---|
Returns an Iterator over the supported CertPath encodings (as Strings). The first element is the default encoding scheme to apply.
CertPath encodings (as Strings). Creates a new CertificateFactory instance from the specified provider that provides the requested certificate type.
| type | the certificate type. |
|---|---|
| provider | the name of the provider providing certificates of the specified type. |
CertificateFactory instance.| CertificateException | if the specified certificate type is not available by the specified provider. |
|---|---|
| NoSuchProviderException | if no provider with the specified name can be found. |
| IllegalArgumentException | if provider == null || provider.isEmpty() |
| NullPointerException | it type is null. |
Creates a new CertificateFactory instance from the specified provider that provides the requested certificate type.
| type | the certificate type. |
|---|---|
| provider | the name of the provider providing certificates of the specified type. |
CertificateFactory instance.| CertificateException | if the specified certificate type is not available at the specified provider. |
|---|---|
| IllegalArgumentException | if the specified provider is null. |
| NullPointerException | if type == null |
| IllegalArgumentException | if provider == null |
Creates a new CertificateFactory instance that provides the requested certificate type.
| type | the certificate type. |
|---|
CertificateFactory instance.| CertificateException | if the specified certificate type is not available at any installed provider. |
|---|---|
| NullPointerException | if type == null |
Returns the Provider of the certificate factory represented by the certificate.
Returns the Certificate type.