|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.cert.CertificateFactorySpi | +--com.ibm.crypto.fips.provider.X509Factory
This class defines a certificate factory for X.509 v3 certificates and X.509 v2 certificate revocation lists (CRLs).
CertificateFactorySpi
,
Certificate
,
CRL
,
X509Certificate
,
X509CRL
,
X509CertImpl
,
X509CRLImpl
Field Summary | |
---|---|
static java.lang.String |
BEGIN_CERT
|
static java.lang.String |
END_CERT
|
protected static java.lang.String |
pkcs7String
|
protected static java.lang.String |
pkipString
|
protected static java.lang.String |
x509String
|
Constructor Summary | |
---|---|
X509Factory()
|
Method Summary | |
---|---|
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 stream is . |
java.util.Collection |
engineGenerateCertificates(java.io.InputStream is)
Returns a (possibly empty) collection view of X.509 certificates read from the given input stream is . |
java.security.cert.CertPath |
engineGenerateCertPath(java.io.InputStream inStream)
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 a CertPath object and initializes it with the data
read from the input stream inStream. |
java.security.cert.CertPath |
engineGenerateCertPath(java.util.List 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 stream is . |
java.util.Collection |
engineGenerateCRLs(java.io.InputStream is)
Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream is . |
java.util.Iterator |
engineGetCertPathEncodings()
Returns the encodings supported by this certification path factory, with the default encoding first. |
protected java.security.cert.Certificate |
internalGenerateCertificate(java.io.InputStream is)
Generates an X.509 certificate object and initializes it with the data read from the input stream is . |
protected java.util.Collection |
internalGenerateCertificates(java.io.InputStream is)
Returns a (possibly empty) collection view of X.509 certificates read from the given input stream is . |
protected java.security.cert.CertPath |
internalGenerateCertPath(java.io.InputStream inStream)
Generates a CertPath object and initializes it with the data read from the input stream inStream. |
protected java.security.cert.CertPath |
internalGenerateCertPath(java.io.InputStream inStream,
java.lang.String encoding)
Generates a CertPath object and initializes it with the data
read from the input stream inStream. |
protected java.security.cert.CertPath |
internalGenerateCertPath(java.util.List certificates)
Generates a CertPath object and initializes it with the list of certificates supplied. |
protected java.security.cert.CRL |
internalGenerateCRL(java.io.InputStream is)
Generates an X.509 certificate revocation list (CRL) object and initializes it with the data read from the given input stream is . |
protected java.util.Collection |
internalGenerateCRLs(java.io.InputStream is)
Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream is . |
protected java.util.Iterator |
internalGetCertPathEncodings()
Returns the encodings supported by this certification path factory, with the default encoding first. |
boolean |
isFipsApproved()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String BEGIN_CERT
public static final java.lang.String END_CERT
protected static final java.lang.String pkcs7String
protected static final java.lang.String pkipString
protected static final java.lang.String x509String
Constructor Detail |
public X509Factory()
Method Detail |
public boolean isFipsApproved()
AlgorithmStatus.isFipsApproved()
public java.security.cert.Certificate engineGenerateCertificate(java.io.InputStream is) throws java.security.cert.CertificateException
is
.engineGenerateCertificate
in class java.security.cert.CertificateFactorySpi
is
- an input stream with the certificate data.java.security.cert.CertificateException
- on parsing errors.FIPSRuntimeException
- if the module is not runnable.protected java.security.cert.Certificate internalGenerateCertificate(java.io.InputStream is) throws java.security.cert.CertificateException
is
.is
- an input stream with the certificate data.java.security.cert.CertificateException
- on parsing errors.public java.util.Collection engineGenerateCertificates(java.io.InputStream is) throws java.security.cert.CertificateException
is
.engineGenerateCertificates
in class java.security.cert.CertificateFactorySpi
is
- the input stream with the certificates.java.security.cert.CertificateException
- on parsing errors.FIPSRuntimeException
- if the module is not runnable.protected java.util.Collection internalGenerateCertificates(java.io.InputStream is) throws java.security.cert.CertificateException
is
.is
- the input stream with the certificates.java.security.cert.CertificateException
- on parsing errors.public java.security.cert.CRL engineGenerateCRL(java.io.InputStream is) throws java.security.cert.CRLException
is
.engineGenerateCRL
in class java.security.cert.CertificateFactorySpi
is
- an input stream with the CRL data.java.security.cert.CRLException
- on parsing errors.FIPSRuntimeException
- if the module is not runnable.protected java.security.cert.CRL internalGenerateCRL(java.io.InputStream is) throws java.security.cert.CRLException
is
.is
- an input stream with the CRL data.java.security.cert.CRLException
- on parsing errors.public java.util.Collection engineGenerateCRLs(java.io.InputStream is) throws java.security.cert.CRLException
is
.engineGenerateCRLs
in class java.security.cert.CertificateFactorySpi
is
- the input stream with the CRLs.java.security.cert.CRLException
- on parsing errors.FIPSRuntimeException
- if the module is not runnable.protected java.util.Collection internalGenerateCRLs(java.io.InputStream is) throws java.security.cert.CRLException
is
.is
- the input stream with the CRLs.java.security.cert.CRLException
- on parsing errors.public java.security.cert.CertPath engineGenerateCertPath(java.io.InputStream inStream) throws java.security.cert.CertificateException
inStream
- an input stream with the dataCertPath
initialized with the data from the input streamCertificateException
- if an exception occursFIPSRuntimeException
- if the module is not runnable.protected java.security.cert.CertPath internalGenerateCertPath(java.io.InputStream inStream) throws java.security.cert.CertificateException
inStream
- an input stream with the dataCertPath
initialized with the data from the input streamCertificateException
- if an exception occurspublic java.security.cert.CertPath engineGenerateCertPath(java.io.InputStream inStream, java.lang.String encoding) throws java.security.cert.CertificateException
CertPath
object and initializes it with the data
read from the input stream inStream. The data is assumed to
be in the specified encoding.inStream
- an input stream with the dataencoding
- the encoding used for the dataCertPath
initialized with the data from the input streamCertificateException
- if an exception occursFIPSRuntimeException
- if the module is not runnable.protected java.security.cert.CertPath internalGenerateCertPath(java.io.InputStream inStream, java.lang.String encoding) throws java.security.cert.CertificateException
CertPath
object and initializes it with the data
read from the input stream inStream. The data is assumed to
be in the specified encoding.inStream
- an input stream with the dataencoding
- the encoding used for the dataCertPath
initialized with the data from the input streamCertificateException
- if an exception occurspublic java.security.cert.CertPath engineGenerateCertPath(java.util.List certificates) throws java.security.cert.CertificateException
certificates
- a List
of CertificatesCertPath
initialized with the supplied list of
certificatesCertificateException
- if an exception occursFIPSRuntimeException
- if the module is not runnable.protected java.security.cert.CertPath internalGenerateCertPath(java.util.List certificates) throws java.security.cert.CertificateException
certificates
- a List
of CertificatesCertPath
initialized with the supplied list of
certificatesCertificateException
- if an exception occurspublic java.util.Iterator engineGetCertPathEncodings()
Iterator
of the encodings supportedFIPSRuntimeException
- if the module is not runnable.protected java.util.Iterator internalGetCertPathEncodings()
Iterator
of the encodings supported
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |