public class QualifiedCertificateFactory extends CertificateFactory
The PKIX Qualified Certificate Profile, specified in RFC 3739 and based on the PKIX certificate profile (RFC 3280), defines a certificate format for identifying a person with high level of assurance in public non-repudiation servises. The term Qualifed Certifiacte is used to describe a certificate with a certain qualified status within applicable governing law. A CA issuing a qualified certificate has to include information in the certificate indicating that the certificate is a qualified one. The Qualified Certificate Profile describes two complementary ways for including this inforamtion:
CertificatePolicies extension containing a qualified PolicyInformation term may be by looking
at the policy identifier associated with the PolicyInformation object. In similar
way each QCStatement included in a QCStatements extension is identified by its own statement ID which may indicate
a qualified statement.
When using methods generateCertificate or generateCertificate
of this factory for reading in encoded certificates, each certificate is checked of
being a qualified certificate (having a qualified PolicyInformation term in its
CertificatePolicies extension or a qualified QCStatement term in ist QCStatements
extension). If a qualified certificate is found it is returned as QualifiedCertificate object. A "normal"
(not qualified) certificate is returned as X509Certificate object.
When instantiating a QualifiedCertificateFactory object use "Qualified" as standard name:
CertificateFactory cf = CertificateFactory.getInstance("Qualified", "IAIK");
Certificate cert = cf.generateCertificate(is);
if (cert instanceof QualifiedCertificate) {
System.out.println("Qualified certificate!");
}
QualifiedCertificate,
X509Certificate,
X509CRL| Constructor and Description |
|---|
QualifiedCertificateFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.Certificate |
engineGenerateCertificate(java.io.InputStream is)
Parses a X.509 certificate from the supplied input stream.
|
java.util.Collection |
engineGenerateCertificates(java.io.InputStream is)
Parses a collection of X.509 certificates from the supplied input stream.
|
engineGenerateCRL, engineGenerateCRLspublic java.security.cert.Certificate engineGenerateCertificate(java.io.InputStream is)
throws java.security.cert.CertificateException
QualifiedCertificate object is returned, if not a X509Certificate object.engineGenerateCertificate in class CertificateFactoryis - 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
QualifiedCertificate object, any other as X509Certificate objectengineGenerateCertificates in class CertificateFactoryis - the input stream supplying the encoded certificatesjava.security.cert.CertificateException - if an decoding/parsing error occurs