public class AttributeCertificateFactory
extends java.security.cert.CertificateFactorySpi
Certificate Factories are used for reading encoded certificates and Certificate Revocation Lists (CRLs) from input streams.
For instantiating the IAIK attribute certificate factory call the
getInstance
factory method of the
java.security.cert.CertificateFactory engine class, thereby supplying the
certificate type ("X.509 AC") and the name of the IAIK provider:
CertifiacteFactory certFactory = CertificateFactory .getInstance("X.509 AC", "IAIK");Subsequently use the
generateCertificate
,
generateCertificates
, generateCRL
, or
generateCRLs
method for parsing a X.509 attribute certificate, a
collection of X.509 attribute certificates, a X.509 ACRL, or a collection of X.509 ACRLs,
respectively, e.g.:
Collection c = certFactory.generateCertificates(is);
AttributeCertificate
,
ACRL
Constructor and Description |
---|
AttributeCertificateFactory() |
Modifier and Type | Method and Description |
---|---|
java.security.cert.Certificate |
engineGenerateCertificate(java.io.InputStream is)
Parses an X.509 attribute certificate from the supplied input stream.
|
java.util.Collection |
engineGenerateCertificates(java.io.InputStream is)
Parses a collection of X.509 attribute certificates from the supplied input stream.
|
java.security.cert.CRL |
engineGenerateCRL(java.io.InputStream is)
Parses a X.509 attribute CRL from the supplied input stream.
|
java.util.Collection |
engineGenerateCRLs(java.io.InputStream is)
Parses a collection of X.509 attribute CRLs from the supplied input stream.
|
public java.security.cert.Certificate engineGenerateCertificate(java.io.InputStream is) throws java.security.cert.CertificateException
engineGenerateCertificate
in class java.security.cert.CertificateFactorySpi
is
- the input stream supplying the encoded certificatejava.security.cert.CertificateException
- if an decoding/parsing error occurspublic java.util.Collection engineGenerateCertificates(java.io.InputStream is) throws java.security.cert.CertificateException
engineGenerateCertificates
in class java.security.cert.CertificateFactorySpi
is
- the input stream supplying the encoded attribute certificatesjava.security.cert.CertificateException
- if an decoding/parsing error occurspublic java.security.cert.CRL engineGenerateCRL(java.io.InputStream is) throws java.security.cert.CRLException
engineGenerateCRL
in class java.security.cert.CertificateFactorySpi
is
- the input stream supplying the encoded ACRLjava.security.cert.CRLException
- if an decoding/parsing error occurspublic java.util.Collection engineGenerateCRLs(java.io.InputStream is) throws java.security.cert.CRLException
engineGenerateCRLs
in class java.security.cert.CertificateFactorySpi
is
- the input stream supplying the encoded ACRLsjava.security.cert.CRLException
- if an decoding/parsing error occurs