public class ArchiveTimestampV2 extends Object implements UnsignedAttribute
The archive-time-stamp attribute is a time-stamp token of many of the elements of the signedData in the electronic signature. If the certificate-values and revocation-values attributes are not present in the CAdES-BES or CAdES-EPES, then they shall be added to the electronic signature prior to computing the archive time-stamp token.
The archive-time-stamp attribute is an unsigned attribute. Several instances of this attribute may occur with an electronic signature both over time and from different TSUs.
The following object identifier identifies the nested archive-time-stamp attribute:
id-aa-ets-archiveTimestampV2 OBJECT IDENTIFIER ::=
{ iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) id-aa(2) 48}
Archive-time-stamp attribute values have the ASN.1 syntax ArchiveTimeStampToken
ArchiveTimeStampToken ::= TimeStampToken
| Constructor and Description |
|---|
ArchiveTimestampV2() |
| Modifier and Type | Method and Description |
|---|---|
String |
getOID()
OID value of the attribute.
|
org.bouncycastle.asn1.cms.Attribute |
getValue()
Represents the value of the attribute itself.
|
void |
initialize(PrivateKey privateKey,
Certificate[] certificates,
byte[] content,
SignaturePolicy signaturePolicy,
byte[] hash)
Performs the initial parameterization for attribute retrieval
|
public void initialize(PrivateKey privateKey, Certificate[] certificates, byte[] content, SignaturePolicy signaturePolicy, byte[] hash)
SignedOrUnsignedAttributeinitialize in interface SignedOrUnsignedAttributeprivateKey - private keycertificates - certificate chaincontent - set null if signing only hashsignaturePolicy - signature policyhash - set null if signing contentpublic String getOID()
SignedOrUnsignedAttributegetOID in interface SignedOrUnsignedAttributepublic org.bouncycastle.asn1.cms.Attribute getValue()
throws SignerException
SignedOrUnsignedAttributegetValue in interface SignedOrUnsignedAttributeSignerExceptionCopyright © 2021 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.