public class QcEuRetentionPeriod extends QCStatementInfo
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 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 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
Modifier and Type | Field and Description |
---|---|
static ObjectID |
statementID
The statement id for this QcEuRetentionPeriod statement info.
|
Constructor and Description |
---|
QcEuRetentionPeriod()
Default constructor.
|
QcEuRetentionPeriod(int retentionPeriod)
Creates QcEuRetentionPeriod for the given retention period.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString()
Returns a string representation of the statement info
|
getName
public static final ObjectID statementID
public QcEuRetentionPeriod()
public QcEuRetentionPeriod(int retentionPeriod)
retentionPeriod
- the retention periodpublic 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
obj
- the QcEuRetentionPeriod as ASN1ObjectCodingException
- if the ASN1Object cannot be parsedpublic ASN1Object toASN1Object()
toASN1Object
in class QCStatementInfo
public java.lang.String toString()
toString
in class QCStatementInfo