Class XAdESTimestampSource
java.lang.Object
eu.europa.esig.dss.spi.validation.timestamp.AbstractTimestampSource
eu.europa.esig.dss.spi.validation.timestamp.SignatureTimestampSource<XAdESSignature, XAdESAttribute>
eu.europa.esig.dss.xades.validation.timestamp.XAdESTimestampSource
- All Implemented Interfaces:
TimestampSource, Serializable
The timestamp source for a XAdES signature
- See Also:
-
Field Summary
Fields inherited from class SignatureTimestampSource
archiveTimestamps, certificateSource, contentTimestamps, crlSource, detachedEvidenceRecords, detachedTimestamps, embeddedEvidenceRecords, ocspSource, refsOnlyTimestamps, sigAndRefsTimestamps, signature, signatureTimestamps, unsignedPropertiesReferences -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SignatureProperties<XAdESAttribute> Creates the 'signed-signature-properties' element of the signatureprotected SignatureProperties<XAdESAttribute> Creates the 'unsigned-signature-properties' element of the signaturegetArchiveTimestampData(DigestAlgorithm digestAlgorithm, String canonicalizationMethod) Returns message-imprint digest for an ArchiveTimeStampprotected List<TimestampedReference> getArchiveTimestampReferences(List<TimestampToken> previousTimestamps) Returns a list of time-stamped references for an archival time-stampprotected ArchiveTimestampTypegetArchiveTimestampType(XAdESAttribute unsignedAttribute) ReturnsArchiveTimestampTypefor the givenunsignedAttributeprotected List<CertificateRef> getCertificateRefs(XAdESAttribute unsignedAttribute) Returns a list ofCertificateRefs from the givenunsignedAttributeprotected List<AdvancedSignature> getCounterSignatures(XAdESAttribute unsignedAttribute) Extracts Counter Signatures from the givenunsignedAttributegetCRLRefs(XAdESAttribute unsignedAttribute) Returns a list of CRL revocation refs from the givenunsignedAttributeprotected List<Identifier> getEncapsulatedCertificateIdentifiers(XAdESAttribute unsignedAttribute) Returns a list ofIdentifiers obtained from the givenunsignedAttributegetEncapsulatedCRLIdentifiers(XAdESAttribute unsignedAttribute) Returns a list ofCRLBinarys obtained from the givenunsignedAttributeprotected List<OCSPResponseBinary> getEncapsulatedOCSPIdentifiers(XAdESAttribute unsignedAttribute) Returns a list ofOCSPResponseBinarys obtained from the givenunsignedAttributegetOCSPRefs(XAdESAttribute unsignedAttribute) Returns a list of OCSP revocation refs from the givenunsignedAttributegetSignatureTimestampMessageDigest(DigestAlgorithm digestAlgorithm, String canonicalizationMethod) Returns message-imprint digest for a SignatureTimestampprotected List<TimestampedReference> Returns a list ofTimestampedReferencefor a "signature-timestamp" elementprotected XAdESTimestampMessageDigestBuildergetTimestampMessageImprintDigestBuilder(DigestAlgorithm digestAlgorithm) Returns aTimestampMessageDigestBuilderto compute message digest with the providedDigestAlgorithmprotected XAdESTimestampMessageDigestBuildergetTimestampMessageImprintDigestBuilder(TimestampToken timestampToken) Returns a relatedTimestampMessageDigestBuilderprotected List<SignatureScope> getTimestampScopes(TimestampToken timestampToken) Generates timestamp token scopesgetTimestampX1MessageDigest(DigestAlgorithm digestAlgorithm, String canonicalizationMethod, boolean en319132) Returns message-imprint digest for a SigAndRefsTimestampgetTimestampX2MessageDigest(DigestAlgorithm digestAlgorithm, String canonicalizationMethod, boolean en319132) Returns message-imprint digest for a RefsOnlyTimestampprotected booleanisAllDataObjectsTimestamp(XAdESAttribute signedAttribute) Determines if the givensignedAttributeis an instance of "data-objects-timestamp" element NOTE: Applicable only for XAdESprotected booleanisAnyValidationData(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "any-validation-data" elementprotected booleanisArchiveTimestamp(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "archive-timestamp" elementprotected booleanisAttrAuthoritiesCertValues(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "AttrAuthoritiesCertValues" elementprotected booleanisAttributeCertificateRef(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "attribute-certificate-ref" elementprotected booleanisAttributeRevocationRef(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "attribute-revocation-ref" elementprotected booleanisAttributeRevocationValues(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "AttributeRevocationValues" elementprotected booleanisCertificateValues(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "certificate-values" elementprotected booleanisCompleteCertificateRef(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "complete-certificate-ref" elementprotected booleanisCompleteRevocationRef(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "complete-revocation-ref" elementprotected booleanisContentTimestamp(XAdESAttribute signedAttribute) Determines if the givensignedAttributeis an instance of "content-timestamp" element NOTE: Applicable only for CAdESprotected booleanisCounterSignature(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "counter-signature" elementprotected booleanisEvidenceRecord(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "evidence-record" elementprotected booleanisIndividualDataObjectsTimestamp(XAdESAttribute signedAttribute) Determines if the givensignedAttributeis an instance of "individual-data-objects-timestamp" element NOTE: Applicable only for XAdESprotected booleanisRefsOnlyTimestamp(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "refs-only-timestamp" elementprotected booleanisRevocationValues(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "revocation-values" elementprotected booleanisSigAndRefsTimestamp(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "sig-and-refs-timestamp" elementprotected booleanisSignaturePolicyStore(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "signature-policy-store" elementprotected booleanisSignatureTimestamp(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "signature-timestamp" elementprotected booleanisTimeStampValidationData(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "timestamp-validation-data" elementprotected booleanisValidationDataReferences(XAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "references" elementprotected List<EvidenceRecord> makeEvidenceRecords(XAdESAttribute signatureAttribute, List<TimestampedReference> references) Creates a list of evidence records from the providedsignatureAttributeprotected TimestampTokenmakeTimestampToken(XAdESAttribute signatureAttribute, TimestampType timestampType, List<TimestampedReference> references) Creates a timestamp token from the providedsignatureAttributeprotected List<TimestampToken> makeTimestampTokens(XAdESAttribute signatureAttribute, TimestampType timestampType, List<TimestampedReference> references) Creates timestamp tokens from the providedsignatureAttributewith a given list ofTimestampedReferencesMethods inherited from class SignatureTimestampSource
addExternalEvidenceRecord, addExternalTimestamp, createAndValidate, getAllEvidenceRecords, getAllTimestamps, getAllTimestampsExceptLastArchiveTimestamp, getAnyValidationData, getArchiveTimestamps, getAttributeOrder, getContentTimestamps, getCounterSignatureReferences, getCounterSignaturesReferences, getDetachedEvidenceRecords, getDetachedTimestamps, getDocumentTimestamps, getEmbeddedEvidenceRecords, getEncapsulatedReferencesFromEvidenceRecords, getEncapsulatedReferencesFromTimestamps, getKeyInfoReferences, getSignatureReference, getSignatureSignedDataReferences, getSignatureTimestamps, getSignedSignatureProperties, getSignerDataReferences, getSigningCertificateTimestampReferences, getTimestampCertificateSources, getTimestampCertificateSourcesExceptLastArchiveTimestamp, getTimestampCRLSources, getTimestampedCertificateRefs, getTimestampedCertificateValues, getTimestampedRevocationRefs, getTimestampedRevocationValues, getTimestampOCSPSources, getTimestampsX1, getTimestampsX2, getTimestampValidationData, getUnsignedPropertiesReferences, getUnsignedSignatureProperties, getValidationDataReferences, incorporateArchiveTimestampReferences, isTimestamped, makeTimestampTokens, makeTimestampTokens, makeTimestampTokensFromSignedAttributes, makeTimestampTokensFromUnsignedAttributes, populateSources, populateSources, populateSources, validateTimestampsMethods inherited from class AbstractTimestampSource
addReference, addReference, addReferences, createReferenceForCertificate, createReferenceForIdentifier, createReferencesForCertificateRefs, createReferencesForCertificates, createReferencesForCRLBinaries, createReferencesForCRLRefs, createReferencesForIdentifiers, createReferencesForOCSPBinaries, createReferencesForOCSPBinary, createReferencesForOCSPRefs, getEncapsulatedValuesFromEvidenceRecord, getEncapsulatedValuesFromTimestamp, getReferencesFromEvidenceRecord, getReferencesFromTimestamp, getSignerDataTimestampedReferences, processEmbeddedEvidenceRecords, processEvidenceRecordTimestamps
-
Constructor Details
-
XAdESTimestampSource
Default constructor- Parameters:
signature-XAdESSignature
-
-
Method Details
-
buildSignedSignatureProperties
Description copied from class:SignatureTimestampSourceCreates the 'signed-signature-properties' element of the signature- Specified by:
buildSignedSignaturePropertiesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Returns:
SignatureProperties
-
buildUnsignedSignatureProperties
Description copied from class:SignatureTimestampSourceCreates the 'unsigned-signature-properties' element of the signature- Specified by:
buildUnsignedSignaturePropertiesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Returns:
SignatureProperties
-
getTimestampMessageImprintDigestBuilder
protected XAdESTimestampMessageDigestBuilder getTimestampMessageImprintDigestBuilder(DigestAlgorithm digestAlgorithm) Description copied from class:SignatureTimestampSourceReturns aTimestampMessageDigestBuilderto compute message digest with the providedDigestAlgorithm- Specified by:
getTimestampMessageImprintDigestBuilderin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
digestAlgorithm-DigestAlgorithmto use for message-digest computation- Returns:
TimestampMessageDigestBuilder
-
getTimestampMessageImprintDigestBuilder
protected XAdESTimestampMessageDigestBuilder getTimestampMessageImprintDigestBuilder(TimestampToken timestampToken) Description copied from class:SignatureTimestampSourceReturns a relatedTimestampMessageDigestBuilder- Specified by:
getTimestampMessageImprintDigestBuilderin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
timestampToken-TimestampTokento get message-imprint digest builder for- Returns:
TimestampMessageDigestBuilder
-
getSignatureTimestampMessageDigest
public DSSMessageDigest getSignatureTimestampMessageDigest(DigestAlgorithm digestAlgorithm, String canonicalizationMethod) Returns message-imprint digest for a SignatureTimestamp- Parameters:
digestAlgorithm-DigestAlgorithmto be used for message-digest computationcanonicalizationMethod-Stringcanonicalization method to use- Returns:
DSSMessageDigest
-
getTimestampX1MessageDigest
public DSSMessageDigest getTimestampX1MessageDigest(DigestAlgorithm digestAlgorithm, String canonicalizationMethod, boolean en319132) Returns message-imprint digest for a SigAndRefsTimestamp- Parameters:
digestAlgorithm-DigestAlgorithmto be used for message-digest computationcanonicalizationMethod-Stringcanonicalization method to useen319132- defines if the timestamp shall be created accordingly to ETSI EN 319 132-1 (SigAndRefsTimestampV2)- Returns:
DSSMessageDigest
-
getTimestampX2MessageDigest
public DSSMessageDigest getTimestampX2MessageDigest(DigestAlgorithm digestAlgorithm, String canonicalizationMethod, boolean en319132) Returns message-imprint digest for a RefsOnlyTimestamp- Parameters:
digestAlgorithm-DigestAlgorithmto be used for message-digest computationcanonicalizationMethod-Stringcanonicalization method to useen319132- defines if the timestamp shall be created accordingly to ETSI EN 319 132-1 (RefsOnlyTimestampV2)- Returns:
DSSMessageDigest
-
getArchiveTimestampData
public DSSMessageDigest getArchiveTimestampData(DigestAlgorithm digestAlgorithm, String canonicalizationMethod) Returns message-imprint digest for an ArchiveTimeStamp- Parameters:
digestAlgorithm-DigestAlgorithmto be used for message-digest computationcanonicalizationMethod-Stringcanonicalization method to use- Returns:
DSSMessageDigest
-
isContentTimestamp
Description copied from class:SignatureTimestampSourceDetermines if the givensignedAttributeis an instance of "content-timestamp" element NOTE: Applicable only for CAdES- Specified by:
isContentTimestampin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
signedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Data Objects Timestamp, FALSE otherwise
-
isAllDataObjectsTimestamp
Description copied from class:SignatureTimestampSourceDetermines if the givensignedAttributeis an instance of "data-objects-timestamp" element NOTE: Applicable only for XAdES- Specified by:
isAllDataObjectsTimestampin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
signedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Data Objects Timestamp, FALSE otherwise
-
isIndividualDataObjectsTimestamp
Description copied from class:SignatureTimestampSourceDetermines if the givensignedAttributeis an instance of "individual-data-objects-timestamp" element NOTE: Applicable only for XAdES- Specified by:
isIndividualDataObjectsTimestampin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
signedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Data Objects Timestamp, FALSE otherwise
-
isSignatureTimestamp
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "signature-timestamp" element- Specified by:
isSignatureTimestampin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Signature Timestamp, FALSE otherwise
-
isCompleteCertificateRef
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "complete-certificate-ref" element- Specified by:
isCompleteCertificateRefin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Complete Certificate Ref, FALSE otherwise
-
isAttributeCertificateRef
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "attribute-certificate-ref" element- Specified by:
isAttributeCertificateRefin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis an Attribute Certificate Ref, FALSE otherwise
-
isCompleteRevocationRef
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "complete-revocation-ref" element- Specified by:
isCompleteRevocationRefin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Complete Revocation Ref, FALSE otherwise
-
isAttributeRevocationRef
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "attribute-revocation-ref" element- Specified by:
isAttributeRevocationRefin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis an Attribute Revocation Ref, FALSE otherwise
-
isRefsOnlyTimestamp
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "refs-only-timestamp" element- Specified by:
isRefsOnlyTimestampin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Refs Only TimeStamp, FALSE otherwise
-
isSigAndRefsTimestamp
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "sig-and-refs-timestamp" element- Specified by:
isSigAndRefsTimestampin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Sig And Refs TimeStamp, FALSE otherwise
-
isCertificateValues
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "certificate-values" element- Specified by:
isCertificateValuesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Certificate Values, FALSE otherwise
-
isRevocationValues
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "revocation-values" element- Specified by:
isRevocationValuesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Revocation Values, FALSE otherwise
-
isAttrAuthoritiesCertValues
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "AttrAuthoritiesCertValues" element- Specified by:
isAttrAuthoritiesCertValuesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis an AttrAuthoritiesCertValues, FALSE otherwise
-
isAttributeRevocationValues
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "AttributeRevocationValues" element- Specified by:
isAttributeRevocationValuesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis an AttributeRevocationValues, FALSE otherwise
-
isArchiveTimestamp
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "archive-timestamp" element- Specified by:
isArchiveTimestampin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis an Archive TimeStamp, FALSE otherwise
-
isTimeStampValidationData
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "timestamp-validation-data" element- Specified by:
isTimeStampValidationDatain classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto process- Returns:
- TRUE if the
unsignedAttributeis a TimeStamp Validation Data, FALSE otherwise
-
isAnyValidationData
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "any-validation-data" element- Specified by:
isAnyValidationDatain classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto process- Returns:
- TRUE if the
unsignedAttributeis a Validation Data, FALSE otherwise
-
isValidationDataReferences
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "references" element- Specified by:
isValidationDataReferencesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto process- Returns:
- TRUE if the
unsignedAttributeis a Validation Data References, FALSE otherwise
-
isCounterSignature
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "counter-signature" element- Specified by:
isCounterSignaturein classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto process- Returns:
- TRUE if the
unsignedAttributeis a Counter signature, FALSE otherwise
-
isSignaturePolicyStore
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "signature-policy-store" element- Specified by:
isSignaturePolicyStorein classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto process- Returns:
- TRUE if the
unsignedAttributeis a Counter signature, FALSE otherwise
-
isEvidenceRecord
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "evidence-record" element- Specified by:
isEvidenceRecordin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto process- Returns:
- TRUE if the
unsignedAttributeis an evidence record, FALSE otherwise
-
makeTimestampTokens
protected List<TimestampToken> makeTimestampTokens(XAdESAttribute signatureAttribute, TimestampType timestampType, List<TimestampedReference> references) Description copied from class:SignatureTimestampSourceCreates timestamp tokens from the providedsignatureAttributewith a given list ofTimestampedReferences- Overrides:
makeTimestampTokensin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
signatureAttribute-SignatureAttributeto create timestamp fromtimestampType- a targetTimestampTypereferences- list ofTimestampedReferences covered by the current timestamp- Returns:
- a list of
TimestampTokens
-
makeEvidenceRecords
protected List<EvidenceRecord> makeEvidenceRecords(XAdESAttribute signatureAttribute, List<TimestampedReference> references) Description copied from class:SignatureTimestampSourceCreates a list of evidence records from the providedsignatureAttribute- Specified by:
makeEvidenceRecordsin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
signatureAttribute-SignatureAttributeto create evidence records fromreferences- list ofTimestampedReferences covered by the current evidence record(s)- Returns:
- a list of
EvidenceRecords
-
getTimestampScopes
Description copied from class:SignatureTimestampSourceGenerates timestamp token scopes- Overrides:
getTimestampScopesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
timestampToken-TimestampTokento get timestamp sources for- Returns:
- a list of
SignatureScopes
-
makeTimestampToken
protected TimestampToken makeTimestampToken(XAdESAttribute signatureAttribute, TimestampType timestampType, List<TimestampedReference> references) Description copied from class:SignatureTimestampSourceCreates a timestamp token from the providedsignatureAttribute- Specified by:
makeTimestampTokenin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
signatureAttribute-SignatureAttributeto create timestamp fromtimestampType- a targetTimestampTypereferences- list ofTimestampedReferences covered by the current timestamp- Returns:
TimestampToken
-
getArchiveTimestampReferences
protected List<TimestampedReference> getArchiveTimestampReferences(List<TimestampToken> previousTimestamps) Description copied from class:SignatureTimestampSourceReturns a list of time-stamped references for an archival time-stamp- Overrides:
getArchiveTimestampReferencesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
previousTimestamps- a list of previousTimestampTokens- Returns:
- a list of
TimestampedReferences
-
getSignatureTimestampReferences
Description copied from class:SignatureTimestampSourceReturns a list ofTimestampedReferencefor a "signature-timestamp" element- Overrides:
getSignatureTimestampReferencesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Returns:
- list of
TimestampedReferences
-
getCertificateRefs
Description copied from class:SignatureTimestampSourceReturns a list ofCertificateRefs from the givenunsignedAttribute- Specified by:
getCertificateRefsin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto get certRefs from- Returns:
- list of
CertificateRefs
-
getCRLRefs
Description copied from class:SignatureTimestampSourceReturns a list of CRL revocation refs from the givenunsignedAttribute- Specified by:
getCRLRefsin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto get CRLRef- Returns:
- list of
CRLRefs
-
getOCSPRefs
Description copied from class:SignatureTimestampSourceReturns a list of OCSP revocation refs from the givenunsignedAttribute- Specified by:
getOCSPRefsin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto get OCSPRefs from- Returns:
- list of
OCSPRefs
-
getEncapsulatedCertificateIdentifiers
Description copied from class:SignatureTimestampSourceReturns a list ofIdentifiers obtained from the givenunsignedAttribute- Specified by:
getEncapsulatedCertificateIdentifiersin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto get certificate identifiers from- Returns:
- list of
Identifiers
-
getEncapsulatedCRLIdentifiers
Description copied from class:SignatureTimestampSourceReturns a list ofCRLBinarys obtained from the givenunsignedAttribute- Specified by:
getEncapsulatedCRLIdentifiersin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto get CRL identifiers from- Returns:
- list of
CRLBinarys
-
getEncapsulatedOCSPIdentifiers
Description copied from class:SignatureTimestampSourceReturns a list ofOCSPResponseBinarys obtained from the givenunsignedAttribute- Specified by:
getEncapsulatedOCSPIdentifiersin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto get OCSP identifiers from- Returns:
- list of
OCSPResponseBinarys
-
getArchiveTimestampType
Description copied from class:SignatureTimestampSourceReturnsArchiveTimestampTypefor the givenunsignedAttribute- Specified by:
getArchiveTimestampTypein classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAto get archive timestamp type for- Returns:
ArchiveTimestampType
-
getCounterSignatures
Description copied from class:SignatureTimestampSourceExtracts Counter Signatures from the givenunsignedAttribute- Specified by:
getCounterSignaturesin classSignatureTimestampSource<XAdESSignature, XAdESAttribute>- Parameters:
unsignedAttribute-SAcontaining counter signatures- Returns:
- a list of
AdvancedSignaturecontaining counter signatures
-