Class PAdESTimestampSource
java.lang.Object
eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
eu.europa.esig.dss.validation.timestamp.SignatureTimestampSource<CAdESSignature,CAdESAttribute>
eu.europa.esig.dss.cades.validation.timestamp.CAdESTimestampSource
eu.europa.esig.dss.pades.validation.timestamp.PAdESTimestampSource
- All Implemented Interfaces:
TimestampSource
,Serializable
Extracts timestamps from a PAdES document
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<TimestampToken>
This variable contains the list of embedded document timestamps.protected List<TimestampToken>
This variable contains the list of embedded /VRI timestamps corresponding to the signature.Fields inherited from class eu.europa.esig.dss.validation.timestamp.SignatureTimestampSource
archiveTimestamps, certificateSource, contentTimestamps, crlSource, detachedTimestamps, ocspSource, refsOnlyTimestamps, sigAndRefsTimestamps, signature, signatureTimestamps, unsignedPropertiesReferences
-
Constructor Summary
ConstructorDescriptionPAdESTimestampSource
(PAdESSignature signature, List<PdfRevision> documentRevisions) The default constructor to extract timestamps for a signature -
Method Summary
Modifier and TypeMethodDescriptionprotected List<TimestampedReference>
Returns a list of revocation dataTimestampedReference
s from the adbe-revocationInfoArchival signed attributeReturns a list of all incorporated timestampsprotected List<AdvancedSignature>
getCounterSignatures
(CAdESAttribute unsignedAttribute) Extracts Counter Signatures from the givenunsignedAttribute
Returns a list of incorporated document timestamps (PAdES only)protected List<TimestampedReference>
Returns a list ofTimestampedReference
for a "signature-timestamp" elementReturns a list of incorporated /VRI timestamps for the corresponding signatureprotected boolean
isAdbeRevocationInfoArchival
(CAdESAttribute signedAttribute) Checks if thesignedAttribute
is an instance of type adbe-revocationInfoArchivalprotected boolean
isArchiveTimestamp
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "archive-timestamp" elementprotected boolean
isAttributeCertificateRef
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "attribute-certificate-ref" elementprotected boolean
isAttributeRevocationRef
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "attribute-revocation-ref" elementprotected boolean
isCertificateValues
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "certificate-values" elementprotected boolean
isCompleteCertificateRef
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "complete-certificate-ref" elementprotected boolean
isCompleteRevocationRef
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "complete-revocation-ref" elementprotected boolean
isRefsOnlyTimestamp
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "refs-only-timestamp" elementprotected boolean
isRevocationValues
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "revocation-values" elementprotected boolean
isSigAndRefsTimestamp
(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttribute
is an instance of "sig-and-refs-timestamp" elementprotected void
Creates TimestampTokens from all instances extracted from signed attributes (content TSTs)protected void
Creates TimestampTokens from found instances in unsigned propertiesprotected void
Validates list of all timestamps present in the sourceMethods inherited from class eu.europa.esig.dss.cades.validation.timestamp.CAdESTimestampSource
buildCRLIdentifiers, buildOCSPIdentifiers, buildSignedSignatureProperties, buildUnsignedSignatureProperties, getArchiveTimestampOtherReferences, getArchiveTimestampType, getCertificateRefs, getCounterSignatureReferences, getCRLRefs, getEncapsulatedCertificateIdentifiers, getEncapsulatedCRLIdentifiers, getEncapsulatedOCSPIdentifiers, getOCSPRefs, getSignatureSignedDataReferences, getTimestampMessageImprintDigestBuilder, getTimestampMessageImprintDigestBuilder, incorporateArchiveTimestampReferences, isAllDataObjectsTimestamp, isAttrAuthoritiesCertValues, isAttributeRevocationValues, isContentTimestamp, isCounterSignature, isIndividualDataObjectsTimestamp, isSignaturePolicyStore, isSignatureTimestamp, isTimeStampValidationData, makeTimestampToken
Methods inherited from class eu.europa.esig.dss.validation.timestamp.SignatureTimestampSource
addExternalTimestamp, createAndValidate, getAllTimestampsExceptLastArchiveTimestamp, getArchiveTimestamps, getContentTimestamps, getCounterSignaturesReferences, getDetachedTimestamps, getEncapsulatedReferencesFromTimestamps, getKeyInfoReferences, getSignatureTimestamps, getSignedSignatureProperties, getSignerDataReferences, getSignerDataTimestampedReferences, getSigningCertificateTimestampReferences, getTimestampCertificateSources, getTimestampCertificateSourcesExceptLastArchiveTimestamp, getTimestampCRLSources, getTimestampedCertificateRefs, getTimestampedCertificateValues, getTimestampedRevocationRefs, getTimestampedRevocationValues, getTimestampOCSPSources, getTimestampsX1, getTimestampsX2, getTimestampValidationData, getUnsignedPropertiesReferences, getUnsignedSignatureProperties, isTimestamped, makeTimestampTokens, makeTimestampTokens, makeTimestampTokens, populateSources, populateSources
Methods 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
-
Field Details
-
documentTimestamps
This variable contains the list of embedded document timestamps. -
vriTimestamps
This variable contains the list of embedded /VRI timestamps corresponding to the signature.
-
-
Constructor Details
-
PAdESTimestampSource
The default constructor to extract timestamps for a signature- Parameters:
signature
-PAdESSignature
to extract timestamps fordocumentRevisions
- a list of documentPdfRevision
s
-
-
Method Details
-
getDocumentTimestamps
Description copied from interface:TimestampSource
Returns a list of incorporated document timestamps (PAdES only)- Specified by:
getDocumentTimestamps
in interfaceTimestampSource
- Overrides:
getDocumentTimestamps
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Returns:
- a list of
TimestampToken
s
-
getVriTimestamps
Returns a list of incorporated /VRI timestamps for the corresponding signature- Returns:
- a list of
TimestampToken
s
-
getAllTimestamps
Description copied from interface:TimestampSource
Returns a list of all incorporated timestamps- Specified by:
getAllTimestamps
in interfaceTimestampSource
- Overrides:
getAllTimestamps
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Returns:
- a list of
TimestampToken
s
-
makeTimestampTokensFromSignedAttributes
protected void makeTimestampTokensFromSignedAttributes()Description copied from class:SignatureTimestampSource
Creates TimestampTokens from all instances extracted from signed attributes (content TSTs)- Overrides:
makeTimestampTokensFromSignedAttributes
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute>
-
makeTimestampTokensFromUnsignedAttributes
protected void makeTimestampTokensFromUnsignedAttributes()Description copied from class:SignatureTimestampSource
Creates TimestampTokens from found instances in unsigned properties- Overrides:
makeTimestampTokensFromUnsignedAttributes
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute>
-
isCompleteCertificateRef
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "complete-certificate-ref" element- Overrides:
isCompleteCertificateRef
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Complete Certificate Ref, FALSE otherwise
-
isAttributeCertificateRef
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "attribute-certificate-ref" element- Overrides:
isAttributeCertificateRef
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an Attribute Certificate Ref, FALSE otherwise
-
isCompleteRevocationRef
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "complete-revocation-ref" element- Overrides:
isCompleteRevocationRef
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Complete Revocation Ref, FALSE otherwise
-
isAttributeRevocationRef
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "attribute-revocation-ref" element- Overrides:
isAttributeRevocationRef
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an Attribute Revocation Ref, FALSE otherwise
-
isRefsOnlyTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "refs-only-timestamp" element- Overrides:
isRefsOnlyTimestamp
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Refs Only TimeStamp, FALSE otherwise
-
isSigAndRefsTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "sig-and-refs-timestamp" element- Overrides:
isSigAndRefsTimestamp
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Sig And Refs TimeStamp, FALSE otherwise
-
isCertificateValues
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "certificate-values" element- Overrides:
isCertificateValues
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Certificate Values, FALSE otherwise
-
isRevocationValues
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "revocation-values" element- Overrides:
isRevocationValues
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Revocation Values, FALSE otherwise
-
isArchiveTimestamp
Description copied from class:SignatureTimestampSource
Determines if the givenunsignedAttribute
is an instance of "archive-timestamp" element- Overrides:
isArchiveTimestamp
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an Archive TimeStamp, FALSE otherwise
-
validateTimestamps
protected void validateTimestamps()Description copied from class:SignatureTimestampSource
Validates list of all timestamps present in the source- Overrides:
validateTimestamps
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute>
-
getSignatureTimestampReferences
Description copied from class:SignatureTimestampSource
Returns a list ofTimestampedReference
for a "signature-timestamp" element- Overrides:
getSignatureTimestampReferences
in classSignatureTimestampSource<CAdESSignature,
CAdESAttribute> - Returns:
- list of
TimestampedReference
s
-
getAdbeRevocationInfoArchivalReferences
Returns a list of revocation dataTimestampedReference
s from the adbe-revocationInfoArchival signed attribute- Returns:
- a list of
TimestampedReference
s
-
isAdbeRevocationInfoArchival
Checks if thesignedAttribute
is an instance of type adbe-revocationInfoArchival- Parameters:
signedAttribute
-CAdESAttribute
to check- Returns:
- TRUE if the attribute is an instance of type adbe-revocationInfoArchival, FALSE otherwise
-
getCounterSignatures
Description copied from class:SignatureTimestampSource
Extracts Counter Signatures from the givenunsignedAttribute
- Overrides:
getCounterSignatures
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-SignatureTimestampSource
containing counter signatures- Returns:
- a list of
AdvancedSignature
containing counter signatures
-