java.lang.Object
java.security.cert.CertificateFactorySpi
com.ibm.crypto.ibmjcehybrid.provider.X509FactoryHybrid
This class is a facade for the X.509 v3 certificate factory
and X.509 v2 certificate revocation lists (CRLs).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates an X.509 certificate object and initializes it with the data read from the input streamis
.Collection<? extends Certificate>
Returns a (possibly empty) collection view of X.509 certificates read from the given input streamis
.Generates a CertPath object and initializes it with the data read from the input stream inStream.engineGenerateCertPath
(InputStream inStream, String encoding) Generates aCertPath
object and initializes it with the data read from the input stream inStream.engineGenerateCertPath
(List<? extends Certificate> certificates) Generates a CertPath object and initializes it with the list of certificates supplied.Generates an X.509 certificate revocation list (CRL) object and initializes it with the data read from the given input streamis
.Collection<? extends CRL>
Returns a (possibly empty) collection view of X.509 CRLs read from the given input streamis
.Returns the encodings supported by this certification path factory, with the default encoding first.
-
Constructor Details
-
X509FactoryHybrid
public X509FactoryHybrid()Creates an instance of the X509FactoryHybrid class.
-
-
Method Details
-
engineGenerateCertificate
Generates an X.509 certificate object and initializes it with the data read from the input streamis
.- Specified by:
engineGenerateCertificate
in classCertificateFactorySpi
- Parameters:
is
- an input stream with the certificate data.- Returns:
- an X.509 certificate object initialized with the data from the input stream.
- Throws:
CertificateException
- on parsing errors.
-
engineGenerateCertificates
public Collection<? extends Certificate> engineGenerateCertificates(InputStream is) throws CertificateException Returns a (possibly empty) collection view of X.509 certificates read from the given input streamis
.- Specified by:
engineGenerateCertificates
in classCertificateFactorySpi
- Parameters:
is
- the input stream with the certificates.- Returns:
- a (possibly empty) collection view of X.509 certificate objects initialized with the data from the input stream.
- Throws:
CertificateException
- on parsing errors.
-
engineGenerateCRL
Generates an X.509 certificate revocation list (CRL) object and initializes it with the data read from the given input streamis
.- Specified by:
engineGenerateCRL
in classCertificateFactorySpi
- Parameters:
is
- an input stream with the CRL data.- Returns:
- an X.509 CRL object initialized with the data from the input stream.
- Throws:
CRLException
- on parsing errors.
-
engineGenerateCRLs
Returns a (possibly empty) collection view of X.509 CRLs read from the given input streamis
.- Specified by:
engineGenerateCRLs
in classCertificateFactorySpi
- Parameters:
is
- the input stream with the CRLs.- Returns:
- a (possibly empty) collection view of X.509 CRL objects initialized with the data from the input stream.
- Throws:
CRLException
- on parsing errors.
-
engineGenerateCertPath
Generates a CertPath object and initializes it with the data read from the input stream inStream. The data is assumed to be in the default encoding.- Overrides:
engineGenerateCertPath
in classCertificateFactorySpi
- Parameters:
is
- an input stream with the data- Returns:
- a
CertPath
initialized with the data from the input stream - Throws:
CertificateException
- if an exception occurs
-
engineGenerateCertPath
public CertPath engineGenerateCertPath(InputStream inStream, String encoding) throws CertificateException Generates aCertPath
object and initializes it with the data read from the input stream inStream. The data is assumed to be in the specified encoding.- Overrides:
engineGenerateCertPath
in classCertificateFactorySpi
- Parameters:
inStream
- an input stream with the dataencoding
- the encoding used for the data- Returns:
- a
CertPath
initialized with the data from the input stream - Throws:
CertificateException
- if an exception occurs
-
engineGenerateCertPath
public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) throws CertificateException Generates a CertPath object and initializes it with the list of certificates supplied. The certificates supplied must be of a type supported by the CertPathFactory.- Overrides:
engineGenerateCertPath
in classCertificateFactorySpi
- Parameters:
certificates
- aList
of Certificates- Returns:
- a
CertPath
initialized with the supplied list of certificates - Throws:
CertificateException
- if an exception occurs
-
engineGetCertPathEncodings
Returns the encodings supported by this certification path factory, with the default encoding first.- Overrides:
engineGetCertPathEncodings
in classCertificateFactorySpi
- Returns:
- an
Iterator
of the encodings supported
-