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
FieldsModifier and TypeFieldDescriptionprotected List<TimestampToken>This variable contains the list of embedded document timestamps.Fields inherited from class eu.europa.esig.dss.validation.timestamp.SignatureTimestampSource
archiveTimestamps, certificateSource, contentTimestamps, crlSource, detachedTimestamps, ocspSource, refsOnlyTimestamps, sigAndRefsTimestamps, signature, signatureTimestamps, unsignedPropertiesReferences -
Constructor Summary
ConstructorsConstructorDescriptionPAdESTimestampSource(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 dataTimestampedReferences from the adbe-revocationInfoArchival signed attributeprotected List<AdvancedSignature>getCounterSignatures(CAdESAttribute unsignedAttribute) Extracts Counter Signatures from the givenunsignedAttributeReturns a list of incorporated document timestamps (PAdES only)protected List<TimestampedReference>Returns a list ofTimestampedReferencefor a "signature-timestamp" elementprotected PAdESTimestampDataBuilderReturns a relatedTimestampDataBuilderprotected booleanisAdbeRevocationInfoArchival(CAdESAttribute signedAttribute) Checks if thesignedAttributeis an instance of type adbe-revocationInfoArchivalprotected booleanisArchiveTimestamp(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "archive-timestamp" elementprotected booleanisAttributeCertificateRef(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "attribute-certificate-ref" elementprotected booleanisAttributeRevocationRef(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "attribute-revocation-ref" elementprotected booleanisCertificateValues(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "certificate-values" elementprotected booleanisCompleteCertificateRef(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "complete-certificate-ref" elementprotected booleanisCompleteRevocationRef(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "complete-revocation-ref" elementprotected booleanisRefsOnlyTimestamp(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "refs-only-timestamp" elementprotected booleanisRevocationValues(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "revocation-values" elementprotected booleanisSigAndRefsTimestamp(CAdESAttribute unsignedAttribute) Determines if the givenunsignedAttributeis an instance of "sig-and-refs-timestamp" elementprotected voidCreates TimestampTokens from all instances extracted from signed attributes (content TSTs)protected voidCreates TimestampTokens from found instances in unsigned propertiesMethods 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, incorporateArchiveTimestampReferences, isAllDataObjectsTimestamp, isAttrAuthoritiesCertValues, isAttributeRevocationValues, isContentTimestamp, isCounterSignature, isIndividualDataObjectsTimestamp, isSignaturePolicyStore, isSignatureTimestamp, isTimeStampValidationData, makeTimestampTokenMethods inherited from class eu.europa.esig.dss.validation.timestamp.SignatureTimestampSource
addExternalTimestamp, createAndValidate, getAllTimestamps, 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, 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
-
Field Details
-
documentTimestamps
This variable contains the list of embedded document timestamps.
-
-
Constructor Details
-
PAdESTimestampSource
The default constructor to extract timestamps for a signature- Parameters:
signature-PAdESSignatureto extract timestamps fordocumentRevisions- a list of documentPdfRevisions
-
-
Method Details
-
getDocumentTimestamps
Description copied from interface:TimestampSourceReturns a list of incorporated document timestamps (PAdES only)- Specified by:
getDocumentTimestampsin interfaceTimestampSource- Overrides:
getDocumentTimestampsin classSignatureTimestampSource<CAdESSignature,CAdESAttribute> - Returns:
- a list of
TimestampTokens
-
getTimestampDataBuilder
Description copied from class:SignatureTimestampSourceReturns a relatedTimestampDataBuilder- Overrides:
getTimestampDataBuilderin classCAdESTimestampSource- Returns:
TimestampDataBuilder
-
makeTimestampTokensFromSignedAttributes
protected void makeTimestampTokensFromSignedAttributes()Description copied from class:SignatureTimestampSourceCreates TimestampTokens from all instances extracted from signed attributes (content TSTs)- Overrides:
makeTimestampTokensFromSignedAttributesin classSignatureTimestampSource<CAdESSignature,CAdESAttribute>
-
makeTimestampTokensFromUnsignedAttributes
protected void makeTimestampTokensFromUnsignedAttributes()Description copied from class:SignatureTimestampSourceCreates TimestampTokens from found instances in unsigned properties- Overrides:
makeTimestampTokensFromUnsignedAttributesin classSignatureTimestampSource<CAdESSignature,CAdESAttribute>
-
isCompleteCertificateRef
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "complete-certificate-ref" element- Overrides:
isCompleteCertificateRefin classCAdESTimestampSource- 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- Overrides:
isAttributeCertificateRefin classCAdESTimestampSource- 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- Overrides:
isCompleteRevocationRefin classCAdESTimestampSource- 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- Overrides:
isAttributeRevocationRefin classCAdESTimestampSource- 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- Overrides:
isRefsOnlyTimestampin classCAdESTimestampSource- 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- Overrides:
isSigAndRefsTimestampin classCAdESTimestampSource- 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- Overrides:
isCertificateValuesin classCAdESTimestampSource- 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- Overrides:
isRevocationValuesin classCAdESTimestampSource- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Revocation Values, FALSE otherwise
-
isArchiveTimestamp
Description copied from class:SignatureTimestampSourceDetermines if the givenunsignedAttributeis an instance of "archive-timestamp" element- Overrides:
isArchiveTimestampin classCAdESTimestampSource- Parameters:
unsignedAttribute-SignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis an Archive TimeStamp, FALSE otherwise
-
getSignatureTimestampReferences
Description copied from class:SignatureTimestampSourceReturns a list ofTimestampedReferencefor a "signature-timestamp" element- Overrides:
getSignatureTimestampReferencesin classSignatureTimestampSource<CAdESSignature,CAdESAttribute> - Returns:
- list of
TimestampedReferences
-
getAdbeRevocationInfoArchivalReferences
Returns a list of revocation dataTimestampedReferences from the adbe-revocationInfoArchival signed attribute- Returns:
- a list of
TimestampedReferences
-
isAdbeRevocationInfoArchival
Checks if thesignedAttributeis an instance of type adbe-revocationInfoArchival- Parameters:
signedAttribute-CAdESAttributeto check- Returns:
- TRUE if the attribute is an instance of type adbe-revocationInfoArchival, FALSE otherwise
-
getCounterSignatures
Description copied from class:SignatureTimestampSourceExtracts Counter Signatures from the givenunsignedAttribute- Overrides:
getCounterSignaturesin classCAdESTimestampSource- Parameters:
unsignedAttribute-SignatureTimestampSourcecontaining counter signatures- Returns:
- a list of
AdvancedSignaturecontaining counter signatures
-