Class XAdESTimestampSource
java.lang.Object
eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
eu.europa.esig.dss.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 eu.europa.esig.dss.validation.timestamp.SignatureTimestampSource
archiveTimestamps, certificateSource, contentTimestamps, crlSource, detachedEvidenceRecords, detachedTimestamps, embeddedEvidenceRecords, ocspSource, refsOnlyTimestamps, sigAndRefsTimestamps, signature, signatureTimestamps, unsignedPropertiesReferences -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SignatureProperties<XAdESAttribute> protected SignatureProperties<XAdESAttribute> eu.europa.esig.dss.model.DSSMessageDigestgetArchiveTimestampData(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, String canonicalizationMethod) Returns message-imprint digest for an ArchiveTimeStampprotected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> getArchiveTimestampReferences(List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> previousTimestamps) protected eu.europa.esig.dss.enumerations.ArchiveTimestampTypegetArchiveTimestampType(XAdESAttribute unsignedAttribute) protected List<eu.europa.esig.dss.spi.x509.CertificateRef> getCertificateRefs(XAdESAttribute unsignedAttribute) protected List<AdvancedSignature> getCounterSignatures(XAdESAttribute unsignedAttribute) protected List<eu.europa.esig.dss.spi.x509.revocation.crl.CRLRef> getCRLRefs(XAdESAttribute unsignedAttribute) protected List<eu.europa.esig.dss.model.identifier.Identifier> getEncapsulatedCertificateIdentifiers(XAdESAttribute unsignedAttribute) protected List<eu.europa.esig.dss.crl.CRLBinary> getEncapsulatedCRLIdentifiers(XAdESAttribute unsignedAttribute) protected List<eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPResponseBinary> getEncapsulatedOCSPIdentifiers(XAdESAttribute unsignedAttribute) protected List<eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPRef> getOCSPRefs(XAdESAttribute unsignedAttribute) eu.europa.esig.dss.model.DSSMessageDigestgetSignatureTimestampMessageDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, String canonicalizationMethod) Returns message-imprint digest for a SignatureTimestampprotected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> protected XAdESTimestampMessageDigestBuildergetTimestampMessageImprintDigestBuilder(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) protected XAdESTimestampMessageDigestBuildergetTimestampMessageImprintDigestBuilder(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken) protected List<eu.europa.esig.dss.model.scope.SignatureScope> getTimestampScopes(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken) eu.europa.esig.dss.model.DSSMessageDigestgetTimestampX1MessageDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, String canonicalizationMethod, boolean en319132) Returns message-imprint digest for a SigAndRefsTimestampeu.europa.esig.dss.model.DSSMessageDigestgetTimestampX2MessageDigest(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, String canonicalizationMethod, boolean en319132) Returns message-imprint digest for a RefsOnlyTimestampprotected booleanisAllDataObjectsTimestamp(XAdESAttribute signedAttribute) protected booleanisArchiveTimestamp(XAdESAttribute unsignedAttribute) protected booleanisAttrAuthoritiesCertValues(XAdESAttribute unsignedAttribute) protected booleanisAttributeCertificateRef(XAdESAttribute unsignedAttribute) protected booleanisAttributeRevocationRef(XAdESAttribute unsignedAttribute) protected booleanisAttributeRevocationValues(XAdESAttribute unsignedAttribute) protected booleanisCertificateValues(XAdESAttribute unsignedAttribute) protected booleanisCompleteCertificateRef(XAdESAttribute unsignedAttribute) protected booleanisCompleteRevocationRef(XAdESAttribute unsignedAttribute) protected booleanisContentTimestamp(XAdESAttribute signedAttribute) protected booleanisCounterSignature(XAdESAttribute unsignedAttribute) protected booleanisEvidenceRecord(XAdESAttribute unsignedAttribute) protected booleanisIndividualDataObjectsTimestamp(XAdESAttribute signedAttribute) protected booleanisRefsOnlyTimestamp(XAdESAttribute unsignedAttribute) protected booleanisRevocationValues(XAdESAttribute unsignedAttribute) protected booleanisSigAndRefsTimestamp(XAdESAttribute unsignedAttribute) protected booleanisSignaturePolicyStore(XAdESAttribute unsignedAttribute) protected booleanisSignatureTimestamp(XAdESAttribute unsignedAttribute) protected booleanisTimeStampValidationData(XAdESAttribute unsignedAttribute) protected List<EvidenceRecord> makeEvidenceRecords(XAdESAttribute signatureAttribute, List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> references) protected eu.europa.esig.dss.spi.x509.tsp.TimestampTokenmakeTimestampToken(XAdESAttribute signatureAttribute, eu.europa.esig.dss.enumerations.TimestampType timestampType, List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> references) protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> makeTimestampTokens(XAdESAttribute signatureAttribute, eu.europa.esig.dss.enumerations.TimestampType timestampType, List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> references) Methods inherited from class eu.europa.esig.dss.validation.timestamp.SignatureTimestampSource
addExternalEvidenceRecord, addExternalTimestamp, createAndValidate, getAllEvidenceRecords, getAllTimestamps, getAllTimestampsExceptLastArchiveTimestamp, getArchiveTimestamps, getAttributeOrder, getContentTimestamps, getCounterSignatureReferences, getCounterSignaturesReferences, getDetachedEvidenceRecords, getDetachedTimestamps, getDocumentTimestamps, getEmbeddedEvidenceRecords, getEncapsulatedReferencesFromTimestamps, getKeyInfoReferences, getSignatureReference, getSignatureSignedDataReferences, getSignatureTimestamps, getSignedSignatureProperties, getSignerDataReferences, getSigningCertificateTimestampReferences, getTimestampCertificateSources, getTimestampCertificateSourcesExceptLastArchiveTimestamp, getTimestampCRLSources, getTimestampedCertificateRefs, getTimestampedCertificateValues, getTimestampedRevocationRefs, getTimestampedRevocationValues, getTimestampOCSPSources, getTimestampsX1, getTimestampsX2, getTimestampValidationData, getUnsignedPropertiesReferences, getUnsignedSignatureProperties, incorporateArchiveTimestampReferences, isTimestamped, makeTimestampTokens, makeTimestampTokens, makeTimestampTokensFromSignedAttributes, makeTimestampTokensFromUnsignedAttributes, populateSources, populateSources, populateSources, validateTimestampsMethods inherited from class eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
addReference, addReference, addReferences, createReferenceForCertificate, createReferenceForIdentifier, createReferencesForCertificateRefs, createReferencesForCertificates, createReferencesForCRLBinaries, createReferencesForCRLRefs, createReferencesForIdentifiers, createReferencesForOCSPBinaries, createReferencesForOCSPBinary, createReferencesForOCSPRefs, getEncapsulatedValuesFromTimestamp, getReferencesFromTimestamp, getSignerDataTimestampedReferences
-
Constructor Details
-
XAdESTimestampSource
Default constructor- Parameters:
signature-XAdESSignature
-
-
Method Details
-
buildSignedSignatureProperties
- Specified by:
buildSignedSignaturePropertiesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
buildUnsignedSignatureProperties
- Specified by:
buildUnsignedSignaturePropertiesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getTimestampMessageImprintDigestBuilder
protected XAdESTimestampMessageDigestBuilder getTimestampMessageImprintDigestBuilder(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) - Specified by:
getTimestampMessageImprintDigestBuilderin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getTimestampMessageImprintDigestBuilder
protected XAdESTimestampMessageDigestBuilder getTimestampMessageImprintDigestBuilder(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken) - Specified by:
getTimestampMessageImprintDigestBuilderin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getSignatureTimestampMessageDigest
public eu.europa.esig.dss.model.DSSMessageDigest getSignatureTimestampMessageDigest(eu.europa.esig.dss.enumerations.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 eu.europa.esig.dss.model.DSSMessageDigest getTimestampX1MessageDigest(eu.europa.esig.dss.enumerations.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 eu.europa.esig.dss.model.DSSMessageDigest getTimestampX2MessageDigest(eu.europa.esig.dss.enumerations.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 eu.europa.esig.dss.model.DSSMessageDigest getArchiveTimestampData(eu.europa.esig.dss.enumerations.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
- Specified by:
isContentTimestampin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isAllDataObjectsTimestamp
- Specified by:
isAllDataObjectsTimestampin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isIndividualDataObjectsTimestamp
- Specified by:
isIndividualDataObjectsTimestampin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isSignatureTimestamp
- Specified by:
isSignatureTimestampin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isCompleteCertificateRef
- Specified by:
isCompleteCertificateRefin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isAttributeCertificateRef
- Specified by:
isAttributeCertificateRefin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isCompleteRevocationRef
- Specified by:
isCompleteRevocationRefin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isAttributeRevocationRef
- Specified by:
isAttributeRevocationRefin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isRefsOnlyTimestamp
- Specified by:
isRefsOnlyTimestampin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isSigAndRefsTimestamp
- Specified by:
isSigAndRefsTimestampin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isCertificateValues
- Specified by:
isCertificateValuesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isRevocationValues
- Specified by:
isRevocationValuesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isAttrAuthoritiesCertValues
- Specified by:
isAttrAuthoritiesCertValuesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isAttributeRevocationValues
- Specified by:
isAttributeRevocationValuesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isArchiveTimestamp
- Specified by:
isArchiveTimestampin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isTimeStampValidationData
- Specified by:
isTimeStampValidationDatain classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isCounterSignature
- Specified by:
isCounterSignaturein classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isSignaturePolicyStore
- Specified by:
isSignaturePolicyStorein classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
isEvidenceRecord
- Specified by:
isEvidenceRecordin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
makeTimestampTokens
protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> makeTimestampTokens(XAdESAttribute signatureAttribute, eu.europa.esig.dss.enumerations.TimestampType timestampType, List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> references) - Overrides:
makeTimestampTokensin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
makeEvidenceRecords
protected List<EvidenceRecord> makeEvidenceRecords(XAdESAttribute signatureAttribute, List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> references) - Specified by:
makeEvidenceRecordsin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getTimestampScopes
protected List<eu.europa.esig.dss.model.scope.SignatureScope> getTimestampScopes(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken) - Overrides:
getTimestampScopesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
makeTimestampToken
protected eu.europa.esig.dss.spi.x509.tsp.TimestampToken makeTimestampToken(XAdESAttribute signatureAttribute, eu.europa.esig.dss.enumerations.TimestampType timestampType, List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> references) - Specified by:
makeTimestampTokenin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getArchiveTimestampReferences
protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> getArchiveTimestampReferences(List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> previousTimestamps) - Overrides:
getArchiveTimestampReferencesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getSignatureTimestampReferences
protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> getSignatureTimestampReferences()- Overrides:
getSignatureTimestampReferencesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getCertificateRefs
protected List<eu.europa.esig.dss.spi.x509.CertificateRef> getCertificateRefs(XAdESAttribute unsignedAttribute) - Specified by:
getCertificateRefsin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getCRLRefs
protected List<eu.europa.esig.dss.spi.x509.revocation.crl.CRLRef> getCRLRefs(XAdESAttribute unsignedAttribute) - Specified by:
getCRLRefsin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getOCSPRefs
protected List<eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPRef> getOCSPRefs(XAdESAttribute unsignedAttribute) - Specified by:
getOCSPRefsin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getEncapsulatedCertificateIdentifiers
protected List<eu.europa.esig.dss.model.identifier.Identifier> getEncapsulatedCertificateIdentifiers(XAdESAttribute unsignedAttribute) - Specified by:
getEncapsulatedCertificateIdentifiersin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getEncapsulatedCRLIdentifiers
protected List<eu.europa.esig.dss.crl.CRLBinary> getEncapsulatedCRLIdentifiers(XAdESAttribute unsignedAttribute) - Specified by:
getEncapsulatedCRLIdentifiersin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getEncapsulatedOCSPIdentifiers
protected List<eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPResponseBinary> getEncapsulatedOCSPIdentifiers(XAdESAttribute unsignedAttribute) - Specified by:
getEncapsulatedOCSPIdentifiersin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getArchiveTimestampType
protected eu.europa.esig.dss.enumerations.ArchiveTimestampType getArchiveTimestampType(XAdESAttribute unsignedAttribute) - Specified by:
getArchiveTimestampTypein classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-
getCounterSignatures
- Specified by:
getCounterSignaturesin classSignatureTimestampSource<XAdESSignature,XAdESAttribute>
-