|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.x509.extensions.qualified.structures.QCStatementInfo | +--iaik.x509.extensions.qualified.structures.etsi.QcEuRetentionPeriod
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);
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 |
public static final ObjectID statementID
Constructor Detail |
public QcEuRetentionPeriod()
public QcEuRetentionPeriod(int retentionPeriod)
retentionPeriod
- the retention periodMethod Detail |
public ObjectID getStatementID()
QcEuRetentionPeriod
statement info.
The corresponding OID string is "0.4.0.1862.1.3".getStatementID
in class QCStatementInfo
QcEuRetentionPeriod
statement infopublic int getRetentionPeriod()
public void decode(ASN1Object obj) throws CodingException
decode
in class QCStatementInfo
the
- QcEuRetentionPeriod as ASN1Objectpublic ASN1Object toASN1Object()
toASN1Object
in class QCStatementInfo
public String toString()
toString
in class QCStatementInfo
|
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). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |