Class CadesLevelBaselineLTATimestampExtractor
- java.lang.Object
-
- eu.europa.esig.dss.cades.signature.CadesLevelBaselineLTATimestampExtractor
-
public class CadesLevelBaselineLTATimestampExtractor extends Object
Extracts the necessary information to compute the CAdES Archive Timestamp V3.
-
-
Constructor Summary
Constructors Constructor Description CadesLevelBaselineLTATimestampExtractor(CAdESSignature cadesSignature)This is the default constructor for theCadesLevelBaselineLTATimestampExtractor.CadesLevelBaselineLTATimestampExtractor(org.bouncycastle.cms.CMSSignedData cmsSignedData, Collection<CertificateToken> signatureCertificates, Collection<CertificateToken> timestampCertificates)
-
Method Summary
Modifier and Type Method Description byte[]getArchiveTimestampDataV3(org.bouncycastle.cms.SignerInformation signerInformation, org.bouncycastle.asn1.cms.Attribute atsHashIndexAttribute, byte[] originalDocumentDigest)org.bouncycastle.asn1.cms.AttributegetAtsHashIndex(org.bouncycastle.cms.SignerInformation signerInformation, DigestAlgorithm hashIndexDigestAlgorithm)The ats-hash-index unsigned attribute provides an unambiguous imprint of the essential components of a CAdES signature for use in the archive time-stamp (see 6.4.3).org.bouncycastle.asn1.cms.AttributegetVerifiedAtsHashIndex(org.bouncycastle.cms.SignerInformation signerInformation, TimestampToken timestampToken)get the atsHash index for verification of the provided token.
-
-
-
Constructor Detail
-
CadesLevelBaselineLTATimestampExtractor
public CadesLevelBaselineLTATimestampExtractor(CAdESSignature cadesSignature)
This is the default constructor for theCadesLevelBaselineLTATimestampExtractor.- Parameters:
cadesSignature-CAdESSignaturerelated to the archive timestamp
-
CadesLevelBaselineLTATimestampExtractor
public CadesLevelBaselineLTATimestampExtractor(org.bouncycastle.cms.CMSSignedData cmsSignedData, Collection<CertificateToken> signatureCertificates, Collection<CertificateToken> timestampCertificates)
-
-
Method Detail
-
getAtsHashIndex
public org.bouncycastle.asn1.cms.Attribute getAtsHashIndex(org.bouncycastle.cms.SignerInformation signerInformation, DigestAlgorithm hashIndexDigestAlgorithm)The ats-hash-index unsigned attribute provides an unambiguous imprint of the essential components of a CAdES signature for use in the archive time-stamp (see 6.4.3). These essential components are elements of the following ASN.1 SET OF structures: unsignedAttrs, SignedData.certificates, and SignedData.crls. The ats-hash-index attribute value has the ASN.1 syntax ATSHashIndex: ATSHashIndex ::= SEQUENCE { hashIndAlgorithm AlgorithmIdentifier DEFAULT {algorithm id-sha256}, certificatesHashIndex SEQUENCE OF OCTET STRING, crlsHashIndex SEQUENCE OF OCTET STRING,- Parameters:
signerInformation-- Returns:
-
getVerifiedAtsHashIndex
public org.bouncycastle.asn1.cms.Attribute getVerifiedAtsHashIndex(org.bouncycastle.cms.SignerInformation signerInformation, TimestampToken timestampToken)get the atsHash index for verification of the provided token.- Parameters:
signerInformation-timestampToken-- Returns:
-
getArchiveTimestampDataV3
public byte[] getArchiveTimestampDataV3(org.bouncycastle.cms.SignerInformation signerInformation, org.bouncycastle.asn1.cms.Attribute atsHashIndexAttribute, byte[] originalDocumentDigest)
-
-