com.ibm.crypto.provider
Class X509Factory
java.lang.Object
|
+--java.security.cert.CertificateFactorySpi
|
+--com.ibm.crypto.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).
- See Also:
CertificateFactorySpi
,
Certificate
,
CRL
,
X509Certificate
,
X509CRL
,
X509CertImpl
,
X509CRLImpl
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BEGIN_CERT
public static final String BEGIN_CERT
END_CERT
public static final String END_CERT
X509Factory
public X509Factory()
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
.
- Overrides:
- engineGenerateCertificate in class 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:
- CertificateException - on parsing errors.
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
.
- Overrides:
- engineGenerateCertificates in class 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:
- CertificateException - on parsing errors.
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
.
- Overrides:
- engineGenerateCRL in class 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:
- CRLException - on parsing errors.
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
.
- Overrides:
- engineGenerateCRLs in class 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:
- CRLException - on parsing errors.