public class EscTimeStamp extends Object implements UnsignedAttribute
The following object identifier identifies the ES-C Time-Stamp attribute:
id-aa-ets-escTimeStamp OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 25}
The ES-C time-stamp attribute value has the ASN.1 syntax ESCTimeStampToken.
ESCTimeStampToken ::= TimeStampToken
The value of messageImprint field within TimeStampToken must be a hash of the concatenated values (without the type or length encoding for that value) of the following data objects as present in the ES with Complete validation data (ES-C):
signature field within SignerInfo; SignatureTimeStampToken attribute; CompleteCertificateRefs attribute; CompleteRevocationRefs attribute.
OCTETSTRING do campo signature do objeto SignerInfo e o valor dos atributos SignatureTimeStamp, CompleteCertificateReferences e CompleteRevocationReferences.
| Constructor and Description |
|---|
EscTimeStamp() |
| 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.