Package org.conscrypt
Class OpenSSLX509CertificateFactory
java.lang.Object
java.security.cert.CertificateFactorySpi
org.conscrypt.OpenSSLX509CertificateFactory
public class OpenSSLX509CertificateFactory extends CertificateFactorySpi
-
Constructor Summary
Constructors Constructor Description OpenSSLX509CertificateFactory() -
Method Summary
Modifier and Type Method Description CertificateengineGenerateCertificate(InputStream inStream)Generates and initializes aCertificatefrom the provided input stream.Collection<? extends Certificate>engineGenerateCertificates(InputStream inStream)Generates and initializes a collection of certificates from the provided input stream.CertPathengineGenerateCertPath(InputStream inStream)Generates aCertPathfrom the providedInputStream.CertPathengineGenerateCertPath(InputStream inStream, String encoding)Generates aCertPath(a certificate chain) from the giveninputStream, assuming the givenencodingfromCertificateFactorySpi.engineGetCertPathEncodings().CertPathengineGenerateCertPath(List<? extends Certificate> certificates)Generates aCertPathfrom the provided list of certificates.CRLengineGenerateCRL(InputStream inStream)Generates and initializes a Certificate Revocation List (CRL) from the provided input stream.Collection<? extends CRL>engineGenerateCRLs(InputStream inStream)Generates and initializes a collection of Certificate Revocation List (CRL) from the provided input stream.Iterator<String>engineGetCertPathEncodings()Returns anIteratorover the supportedCertPathencodings (as Strings).
-
Constructor Details
-
OpenSSLX509CertificateFactory
public OpenSSLX509CertificateFactory()
-
-
Method Details
-
engineGenerateCertificate
Description copied from class:CertificateFactorySpiGenerates and initializes aCertificatefrom the provided input stream.- Specified by:
engineGenerateCertificatein classCertificateFactorySpi- Parameters:
inStream- the stream from which the data is read to create the certificate.- Returns:
- an initialized certificate.
- Throws:
CertificateException- if parsing problems are detected.
-
engineGenerateCertificates
public Collection<? extends Certificate> engineGenerateCertificates(InputStream inStream) throws CertificateExceptionDescription copied from class:CertificateFactorySpiGenerates and initializes a collection of certificates from the provided input stream.- Specified by:
engineGenerateCertificatesin classCertificateFactorySpi- Parameters:
inStream- the stream from where data is read to create the certificates.- Returns:
- a collection of certificates.
- Throws:
CertificateException- if parsing problems are detected.
-
engineGenerateCRL
Description copied from class:CertificateFactorySpiGenerates and initializes a Certificate Revocation List (CRL) from the provided input stream.- Specified by:
engineGenerateCRLin classCertificateFactorySpi- Parameters:
inStream- the stream from where data is read to create the CRL.- Returns:
- an CRL instance.
- Throws:
CRLException- if parsing problems are detected.
-
engineGenerateCRLs
Description copied from class:CertificateFactorySpiGenerates and initializes a collection of Certificate Revocation List (CRL) from the provided input stream.- Specified by:
engineGenerateCRLsin classCertificateFactorySpi- Parameters:
inStream- the stream from which the data is read to create the CRLs.- Returns:
- a collection of CRLs.
- Throws:
CRLException- if parsing problems are detected.
-
engineGetCertPathEncodings
Description copied from class:CertificateFactorySpiReturns anIteratorover the supportedCertPathencodings (as Strings). The first element is the default encoding.- Overrides:
engineGetCertPathEncodingsin classCertificateFactorySpi- Returns:
- an iterator over supported
CertPathencodings (as Strings).
-
engineGenerateCertPath
Description copied from class:CertificateFactorySpiGenerates aCertPathfrom the providedInputStream. The default encoding scheme is applied.- Overrides:
engineGenerateCertPathin classCertificateFactorySpi- Parameters:
inStream- an input stream with encoded data.- Returns:
- a
CertPathinitialized from the provided data. - Throws:
CertificateException- if parsing problems are detected.
-
engineGenerateCertPath
public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateExceptionDescription copied from class:CertificateFactorySpiGenerates aCertPath(a certificate chain) from the giveninputStream, assuming the givenencodingfromCertificateFactorySpi.engineGetCertPathEncodings().- Overrides:
engineGenerateCertPathin classCertificateFactorySpi- Throws:
CertificateException- if parsing problems are detected.
-
engineGenerateCertPath
public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) throws CertificateExceptionDescription copied from class:CertificateFactorySpiGenerates aCertPathfrom the provided list of certificates. The encoding is the default encoding.- Overrides:
engineGenerateCertPathin classCertificateFactorySpi- Parameters:
certificates- the list containing certificates in a format supported by theCertificateFactory.- Returns:
- a
CertPathinitialized from the provided data. - Throws:
CertificateException- if parsing problems are detected.
-