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

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

public class QcEuRetentionPeriod
extends QCStatementInfo

This class implements the ETSI QcEuRetentionPeriod QCStatementInfo.

The QcEuRetentionPeriod 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-QcRetentionPeriod OBJECT IDENTIFIER ::= { id-etsi-qcs 3 }
 

which corresponds to the OID string "0.4.0.1862.1.3".

The ETSI Qualified Certificate Profile (TS 101 862 V1.2.1) specifies the QcEuRetentionPeriod statement info for indicating that the issuer guarantees that for the certificate where this statement appears that material information relevant to use of and reliance on the certificate will be archived and can be made available upon request beyond the end of the validity period of the certificate for the number of years as indicated in this statement.

ASN.1 definition:

 QcEuRetentionPeriod ::= INTEGER
 

Supply the retention period when creating a QcEuRetentionPeriod object. Subsequently create a QCStatement object for the QcEuRetentionPeriod and add the QCStatement to a QCStatements certificate extension, e.g.:

 int retentionPeriod = ...;
 // create the QcEuRetentionPeriod:
 QcEuRetentionPeriod qcPeriod = new QcEuRetentionPeriod(retentionPeriod);
 // create a QCStatement for the QcEuRetentionPeriod
 QCStatement[] qcStatements = ...;
 qcStatements[0] = new QCStatement(qcPeriod);
 // add any further QCStatements
 ...
 // create a QCStatements extension from the QCStatements:
 QCStatements qcStatementsExt = new QCStatements(qcStatements);
 
For adding a QCStatements extension object to a QualifiedCertificate, use the addExtension or setQCStatements method of the QualifiedCertificate class:

 QualifiedCertificate cert = new QualifiedCertificate();
   ...
 cert.setQCStatements(qcStatementsExt);
 

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

Field Summary
static ObjectID statementID
          The statement id for this QcEuRetentionPeriod statement info.
 
Constructor Summary
QcEuRetentionPeriod()
          Default constructor.
QcEuRetentionPeriod(int retentionPeriod)
          Creates QcEuRetentionPeriod for the given retention period.
 
Method Summary
 void decode(ASN1Object obj)
          Decodes the QcEuRetentionPeriod.
 int getRetentionPeriod()
          Gets the retention period.
 ObjectID getStatementID()
          Returns the statement ID identifying this QcEuRetentionPeriod statement info.
 ASN1Object toASN1Object()
          Returns an ASN.1 representation of this QcEuRetentionPeriod.
 String toString()
          Returns a string representation of the 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 for this QcEuRetentionPeriod statement info. The corresponding OID string is "0.4.0.1862.1.3".
Constructor Detail

QcEuRetentionPeriod

public QcEuRetentionPeriod()
Default constructor. Only used for dynamic object creation. Shall not be called by an application.

QcEuRetentionPeriod

public QcEuRetentionPeriod(int retentionPeriod)
Creates QcEuRetentionPeriod for the given retention period.
Parameters:
retentionPeriod - the retention period
Method Detail

getStatementID

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

getRetentionPeriod

public int getRetentionPeriod()
Gets the retention period.
Returns:
the retention period

decode

public void decode(ASN1Object obj)
            throws CodingException
Decodes the QcEuRetentionPeriod.
Overrides:
decode in class QCStatementInfo
Parameters:
the - QcEuRetentionPeriod as ASN1Object

toASN1Object

public ASN1Object toASN1Object()
Returns an ASN.1 representation of this QcEuRetentionPeriod.
Overrides:
toASN1Object in class QCStatementInfo
Returns:
this QcEuRetentionPeriod as ASN1Object

toString

public String toString()
Returns a string representation of the statement info
Overrides:
toString in class QCStatementInfo
Returns:
a string representation of the statement info

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