iaik.x509.extensions.qualified.structures.etsi
Class QcEuCompliance

java.lang.Object
  |
  +--iaik.x509.extensions.qualified.structures.QCStatementInfo
        |
        +--iaik.x509.extensions.qualified.structures.etsi.QcEuCompliance

public class QcEuCompliance
extends QCStatementInfo

This class implements the 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 Qualified Certificate profile 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);
 

Version:
File Revision 8
See Also:
QCStatementInfo, QCStatement, QCStatements

Field Summary
static ObjectID statementID
          The statement id of the QcEuCompliance statement info.
 
Constructor Summary
QcEuCompliance()
          Default constructor.
 
Method Summary
 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.
 String toString()
          Returns a string that represents the contents of this QcEuCompliance statement info.
 
Methods inherited from class iaik.x509.extensions.qualified.structures.QCStatementInfo
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statementID

public static final ObjectID statementID
The statement id of the QcEuCompliance statement info. The corresponding OID string is "0.4.0.1862.1.1".
Constructor Detail

QcEuCompliance

public QcEuCompliance()
Default constructor. Creates an empty QcEuCompliance object.
Method Detail

getStatementID

public ObjectID getStatementID()
Returns the statement ID identifying this QcEuCompliance statement info. The corresponding OID string is "0.4.0.1862.1.1".
Overrides:
getStatementID in class QCStatementInfo
Returns:
the statementID identifying this QcEuCompliance statement info

decode

public void decode(ASN1Object obj)
            throws CodingException
Decodes a QcEuCompliance from its ASN.1 representation.

The given ASN1Object represents a QcEuCompliance statement info not including the statementID.

Overrides:
decode in class QCStatementInfo
Parameters:
obj - the QcEuCompliance as ASN1Object
Throws:
CodingException - if the object cannot be parsed

toASN1Object

public ASN1Object toASN1Object()
Returns an ASN1Object representing this QcEuCompliance object.

This method returns null since QcEUCompliance has no statement info.

Overrides:
toASN1Object in class QCStatementInfo
Returns:
null

toString

public String toString()
Returns a string that represents the contents of this QcEuCompliance statement info.
Overrides:
toString in class QCStatementInfo
Returns:
the string representation

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK