- java.lang.Object
-
- java.security.cert.CertificateFactorySpi
-
- com.ibm.crypto.ibmjcehybrid.provider.X509FactoryHybrid
-
public final class X509FactoryHybrid extends java.security.cert.CertificateFactorySpi
This class is a facade for the X.509 v3 certificate factory and X.509 v2 certificate revocation lists (CRLs).
-
-
Constructor Summary
Constructors Constructor Description X509FactoryHybrid()
Creates an instance of the X509FactoryHybrid class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.Certificate
engineGenerateCertificate(java.io.InputStream is)
Generates an X.509 certificate object and initializes it with the data read from the input streamis
.java.util.Collection<? extends java.security.cert.Certificate>
engineGenerateCertificates(java.io.InputStream is)
Returns a (possibly empty) collection view of X.509 certificates read from the given input streamis
.java.security.cert.CertPath
engineGenerateCertPath(java.io.InputStream is)
Generates a CertPath object and initializes it with the data read from the input stream inStream.java.security.cert.CertPath
engineGenerateCertPath(java.io.InputStream inStream, java.lang.String encoding)
Generates aCertPath
object and initializes it with the data read from the input stream inStream.java.security.cert.CertPath
engineGenerateCertPath(java.util.List<? extends java.security.cert.Certificate> certificates)
Generates a CertPath object and initializes it with the list of certificates supplied.java.security.cert.CRL
engineGenerateCRL(java.io.InputStream is)
Generates an X.509 certificate revocation list (CRL) object and initializes it with the data read from the given input streamis
.java.util.Collection<? extends java.security.cert.CRL>
engineGenerateCRLs(java.io.InputStream is)
Returns a (possibly empty) collection view of X.509 CRLs read from the given input streamis
.java.util.Iterator<java.lang.String>
engineGetCertPathEncodings()
Returns the encodings supported by this certification path factory, with the default encoding first.
-
-
-
Method Detail
-
engineGenerateCertificate
public java.security.cert.Certificate engineGenerateCertificate(java.io.InputStream is) throws java.security.cert.CertificateException
Generates an X.509 certificate object and initializes it with the data read from the input streamis
.- Specified by:
engineGenerateCertificate
in classjava.security.cert.CertificateFactorySpi
- Parameters:
is
- an input stream with the certificate data.- Returns:
- an X.509 certificate object initialized with the data from the input stream.
- Throws:
java.security.cert.CertificateException
- on parsing errors.
-
engineGenerateCertificates
public java.util.Collection<? extends java.security.cert.Certificate> engineGenerateCertificates(java.io.InputStream is) throws java.security.cert.CertificateException
Returns a (possibly empty) collection view of X.509 certificates read from the given input streamis
.- Specified by:
engineGenerateCertificates
in classjava.security.cert.CertificateFactorySpi
- 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:
java.security.cert.CertificateException
- on parsing errors.
-
engineGenerateCRL
public java.security.cert.CRL engineGenerateCRL(java.io.InputStream is) throws java.security.cert.CRLException
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 classjava.security.cert.CertificateFactorySpi
- Parameters:
is
- an input stream with the CRL data.- Returns:
- an X.509 CRL object initialized with the data from the input stream.
- Throws:
java.security.cert.CRLException
- on parsing errors.
-
engineGenerateCRLs
public java.util.Collection<? extends java.security.cert.CRL> engineGenerateCRLs(java.io.InputStream is) throws java.security.cert.CRLException
Returns a (possibly empty) collection view of X.509 CRLs read from the given input streamis
.- Specified by:
engineGenerateCRLs
in classjava.security.cert.CertificateFactorySpi
- 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:
java.security.cert.CRLException
- on parsing errors.
-
engineGenerateCertPath
public java.security.cert.CertPath engineGenerateCertPath(java.io.InputStream is) throws java.security.cert.CertificateException
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 classjava.security.cert.CertificateFactorySpi
- Parameters:
is
- an input stream with the data- Returns:
- a
CertPath
initialized with the data from the input stream - Throws:
java.security.cert.CertificateException
- if an exception occurs
-
engineGenerateCertPath
public java.security.cert.CertPath engineGenerateCertPath(java.io.InputStream inStream, java.lang.String encoding) throws java.security.cert.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 classjava.security.cert.CertificateFactorySpi
- 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:
java.security.cert.CertificateException
- if an exception occurs
-
engineGenerateCertPath
public java.security.cert.CertPath engineGenerateCertPath(java.util.List<? extends java.security.cert.Certificate> certificates) throws java.security.cert.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 classjava.security.cert.CertificateFactorySpi
- Parameters:
certificates
- aList
of Certificates- Returns:
- a
CertPath
initialized with the supplied list of certificates - Throws:
java.security.cert.CertificateException
- if an exception occurs
-
engineGetCertPathEncodings
public java.util.Iterator<java.lang.String> engineGetCertPathEncodings()
Returns the encodings supported by this certification path factory, with the default encoding first.- Overrides:
engineGetCertPathEncodings
in classjava.security.cert.CertificateFactorySpi
- Returns:
- an
Iterator
of the encodings supported
-
-