com.ibm.security12.sun.security.provider
Class X509Factory

java.lang.Object
  |
  +--com.ibm.security12.java.security.cert.CertificateFactorySpi
        |
        +--com.ibm.security12.sun.security.provider.X509Factory

public class X509Factory
extends 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
static String BEGIN_CERT
           
static String END_CERT
           
 
Constructor Summary
X509Factory()
           
 
Method Summary
 Certificate engineGenerateCertificate(InputStream is)
          Generates an X.509 certificate object and initializes it with the data read from the input stream is.
 Collection engineGenerateCertificates(InputStream is)
          Returns a (possibly empty) collection view of X.509 certificates read from the given input stream is.
 CRL engineGenerateCRL(InputStream is)
          Generates an X.509 certificate revocation list (CRL) object and initializes it with the data read from the given input stream is.
 Collection engineGenerateCRLs(InputStream is)
          Returns a (possibly empty) collection view of X.509 CRLs read from the given input stream is.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEGIN_CERT

public static final String BEGIN_CERT

END_CERT

public static final String END_CERT
Constructor Detail

X509Factory

public X509Factory()
Method Detail

engineGenerateCertificate

public Certificate engineGenerateCertificate(InputStream is)
                                      throws 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:
CertificateException - on parsing errors.
Overrides:
engineGenerateCertificate in class CertificateFactorySpi

engineGenerateCertificates

public Collection engineGenerateCertificates(InputStream is)
                                      throws 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:
CertificateException - on parsing errors.
Overrides:
engineGenerateCertificates in class CertificateFactorySpi

engineGenerateCRL

public CRL engineGenerateCRL(InputStream is)
                      throws 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:
CRLException - on parsing errors.
Overrides:
engineGenerateCRL in class CertificateFactorySpi

engineGenerateCRLs

public Collection engineGenerateCRLs(InputStream is)
                              throws 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:
CRLException - on parsing errors.
Overrides:
engineGenerateCRLs in class CertificateFactorySpi