public class QcEuCompliance extends QCStatementInfo
QcEuCompliance
QCStatementInfo.
The QcEuCompliance statement info is associated with a specific statement identifier, derived from:
id-etsi-qcs OBJECT IDENTIFIER ::= { itu-t(0) identified-organization(4) etsi(0) id-qc-profile(1862) 1 } id-etsi-qcs-QcCompliance OBJECT IDENTIFIER ::= { id-etsi-qcs 1 }
which corresponds to the OID string "0.4.0.1862.1.1".
The ETSI Profiles for Trust Service Providers issuing certificates, Part 5, Extension for Qualified Certificates profile (ETSI EN 319 412-5, formerly ETSI TS 101 862) specifies the QcEuCompliance statement info for indicating that the containing certificate has been issued as a Qualified Certificate according Annex I and II of the Directive 1999/93/EC of the European Parliament and of the Council of 13 December 1999 on a Community framework for electronic signatures, as implemented in the law of the country specified in the issuer field of this certificate.
After creating a QcEuCompliance object create a QCStatement
object for the QcEuCompliance and add the QCStatement to
a QCStatements
certificate extension, e.g.:
// create the QcEuCompliance: QcEuCompliance qcEuCompliance = new QcEuCompliance(); // create a QCStatement for the QcEuCompliance: QCStatement[] qcStatements = ...; qcStatements[0] = new QCStatement(qcEuCompliance); // add any further QCStatements ... // create a QCStatements extension from the QCStatements: QCStatements qcStatementsExt = new QCStatements(qcStatements); // add the extension to a certificate cert.addExtension(qcStatementsExt);
QCStatementInfo
,
QCStatement
,
QCStatements
Modifier and Type | Field and Description |
---|---|
static ObjectID |
statementID
The statement id of the QcEuCompliance statement info.
|
Constructor and Description |
---|
QcEuCompliance()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(ASN1Object obj)
Decodes a QcEuCompliance from its ASN.1 representation.
|
ObjectID |
getStatementID()
Returns the statement ID identifying this
QcEuCompliance
statement info. |
ASN1Object |
toASN1Object()
Returns an ASN1Object representing this
QcEuCompliance
object. |
java.lang.String |
toString()
Returns a string that represents the contents of
this
QcEuCompliance statement info. |
getName
public static final ObjectID statementID
public QcEuCompliance()
QcEuCompliance
object.public ObjectID getStatementID()
QcEuCompliance
statement info.
The corresponding OID string is "0.4.0.1862.1.1".getStatementID
in class QCStatementInfo
QcEuCompliance
statement infopublic void decode(ASN1Object obj) throws CodingException
The given ASN1Object represents a QcEuCompliance statement info not including the statementID.
decode
in class QCStatementInfo
obj
- the QcEuCompliance as ASN1ObjectCodingException
- if the object cannot be parsedpublic ASN1Object toASN1Object()
QcEuCompliance
object.
This method returns null since QcEUCompliance has no statement info.
toASN1Object
in class QCStatementInfo
public java.lang.String toString()
QcEuCompliance
statement info.toString
in class QCStatementInfo