com.ibm.crypto.fips.provider

Class X509Factory

  1. java.lang.Object
  2. extended byjava.security.cert.CertificateFactorySpi
  3. extended bycom.ibm.crypto.fips.provider.X509Factory

  1. public class X509Factory
  2. extends java.security.cert.CertificateFactorySpi
This class defines a certificate factory for X.509 v3 certificates and X.509 v2 certificate revocation lists (CRLs).
Version:
1.6
Author:
Jan Luehe , Hemma Prafullchandra
See Also:
CertificateFactorySpi, Certificate, CRL, X509Certificate, X509CRL, X509CertImpl, X509CRLImpl

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
BEGIN_CERT
  1. static
  2. java.lang.String
END_CERT
  1. protected static
  2. java.lang.String
pkcs7String
  1. protected static
  2. java.lang.String
pkipString
  1. protected static
  2. java.lang.String
x509String

Constructor Summary

Constructor and Description
X509Factory()

Method Summary

Modifier and Type Method and Description
  1. 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.
  1. 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.
  1. 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.
  1. 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.
  1. java.security.cert.CertPath
engineGenerateCertPath(java.util.List certificates)
Generates a CertPath object and initializes it with the list of certificates supplied.
  1. 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.
  1. 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.
  1. java.util.Iterator
engineGetCertPathEncodings()
Returns the encodings supported by this certification path factory, with the default encoding first.
  1. static
  2. com.ibm.security.x509.X509CertImpl
intern(java.security.cert.X509Certificate c)
  1. protected
  2. 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.
  1. protected
  2. 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.
  1. protected
  2. 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.
  1. protected
  2. 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.
  1. protected
  2. java.security.cert.CertPath
internalGenerateCertPath(java.util.List certificates)
Generates a CertPath object and initializes it with the list of certificates supplied.
  1. protected
  2. 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.
  1. protected
  2. 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.
  1. protected
  2. java.util.Iterator
internalGetCertPathEncodings()
Returns the encodings supported by this certification path factory, with the default encoding first.
  1. boolean
isFipsApproved()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

BEGIN_CERT

  1. public static final java.lang.String BEGIN_CERT
See Also:

END_CERT

  1. public static final java.lang.String END_CERT
See Also:

pkcs7String

  1. protected static final java.lang.String pkcs7String
See Also:

pkipString

  1. protected static final java.lang.String pkipString
See Also:

x509String

  1. protected static final java.lang.String x509String
See Also:

Constructor Detail

X509Factory

  1. public X509Factory()

Method Detail

isFipsApproved

  1. public boolean isFipsApproved()
See Also:

engineGenerateCertificate

  1. public java.security.cert.Certificate engineGenerateCertificate( java.io.InputStream is)
  2. throws java.security.cert.CertificateException
Generates an X.509 certificate object and initializes it with the data read from the input stream is.
Specified by:
engineGenerateCertificate in class java.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.
FIPSRuntimeException - if the module is not runnable.

internalGenerateCertificate

  1. protected java.security.cert.Certificate internalGenerateCertificate( java.io.InputStream is)
  2. throws java.security.cert.CertificateException
Generates an X.509 certificate object and initializes it with the data read from the input stream is.
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.

intern

  1. public static com.ibm.security.x509.X509CertImpl intern( java.security.cert.X509Certificate c)
  2. throws java.security.cert.CertificateException
Throws:
java.security.cert.CertificateException

engineGenerateCertificates

  1. public java.util.Collection engineGenerateCertificates( java.io.InputStream is)
  2. throws java.security.cert.CertificateException
Returns a (possibly empty) collection view of X.509 certificates read from the given input stream is.
Specified by:
engineGenerateCertificates in class java.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.
FIPSRuntimeException - if the module is not runnable.

internalGenerateCertificates

  1. protected java.util.Collection internalGenerateCertificates( java.io.InputStream is)
  2. throws java.security.cert.CertificateException
Returns a (possibly empty) collection view of X.509 certificates read from the given input stream is.
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

  1. public java.security.cert.CRL engineGenerateCRL( java.io.InputStream is)
  2. 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 stream is.
Specified by:
engineGenerateCRL in class java.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.
FIPSRuntimeException - if the module is not runnable.

internalGenerateCRL

  1. protected java.security.cert.CRL internalGenerateCRL( java.io.InputStream is)
  2. 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 stream is.
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

  1. public java.util.Collection engineGenerateCRLs( java.io.InputStream is)
  2. throws java.security.cert.CRLException
Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream is.
Specified by:
engineGenerateCRLs in class java.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.
FIPSRuntimeException - if the module is not runnable.

internalGenerateCRLs

  1. protected java.util.Collection internalGenerateCRLs( java.io.InputStream is)
  2. throws java.security.cert.CRLException
Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream is.
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

  1. public java.security.cert.CertPath engineGenerateCertPath( java.io.InputStream inStream)
  2. 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 class java.security.cert.CertificateFactorySpi
Parameters:
inStream - an input stream with the data
Returns:
a CertPath initialized with the data from the input stream
Throws:
CertificateException - if an exception occurs
FIPSRuntimeException - if the module is not runnable.
java.security.cert.CertificateException

internalGenerateCertPath

  1. protected java.security.cert.CertPath internalGenerateCertPath( java.io.InputStream inStream)
  2. 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.
Parameters:
inStream - an input stream with the data
Returns:
a CertPath initialized with the data from the input stream
Throws:
CertificateException - if an exception occurs
java.security.cert.CertificateException

engineGenerateCertPath

  1. public java.security.cert.CertPath engineGenerateCertPath( java.io.InputStream inStream,
  2. java.lang.String encoding)
  3. 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 specified encoding.
Overrides:
engineGenerateCertPath in class java.security.cert.CertificateFactorySpi
Parameters:
inStream - an input stream with the data
encoding - the encoding used for the data
Returns:
a CertPath initialized with the data from the input stream
Throws:
CertificateException - if an exception occurs
FIPSRuntimeException - if the module is not runnable.
java.security.cert.CertificateException

internalGenerateCertPath

  1. protected java.security.cert.CertPath internalGenerateCertPath( java.io.InputStream inStream,
  2. java.lang.String encoding)
  3. 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 specified encoding.
Parameters:
inStream - an input stream with the data
encoding - the encoding used for the data
Returns:
a CertPath initialized with the data from the input stream
Throws:
CertificateException - if an exception occurs
java.security.cert.CertificateException

engineGenerateCertPath

  1. public java.security.cert.CertPath engineGenerateCertPath( java.util.List certificates)
  2. 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 class java.security.cert.CertificateFactorySpi
Parameters:
certificates - a List of Certificates
Returns:
a CertPath initialized with the supplied list of certificates
Throws:
CertificateException - if an exception occurs
FIPSRuntimeException - if the module is not runnable.
java.security.cert.CertificateException

internalGenerateCertPath

  1. protected java.security.cert.CertPath internalGenerateCertPath( java.util.List certificates)
  2. 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.
Parameters:
certificates - a List of Certificates
Returns:
a CertPath initialized with the supplied list of certificates
Throws:
CertificateException - if an exception occurs
java.security.cert.CertificateException

engineGetCertPathEncodings

  1. public java.util.Iterator engineGetCertPathEncodings( )
Returns the encodings supported by this certification path factory, with the default encoding first.
Overrides:
engineGetCertPathEncodings in class java.security.cert.CertificateFactorySpi
Returns:
an Iterator of the encodings supported
Throws:
FIPSRuntimeException - if the module is not runnable.

internalGetCertPathEncodings

  1. protected java.util.Iterator internalGetCertPathEncodings( )
Returns the encodings supported by this certification path factory, with the default encoding first.
Returns:
an Iterator of the encodings supported