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
public class PAdESTimestampSource extends CAdESTimestampSource
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected List<TimestampToken>documentTimestampsThis variable contains the list of embedded document timestamps.Fields inherited from class eu.europa.esig.dss.validation.timestamp.SignatureTimestampSource
archiveTimestamps, certificateSource, contentTimestamps, crlSource, ocspSource, refsOnlyTimestamps, sigAndRefsTimestamps, signature, signatureTimestamps, unsignedPropertiesReferences -
Constructor Summary
Constructors Constructor Description PAdESTimestampSource(PAdESSignature signature, List<PdfRevision> documentRevisions)The default constructor to extract timestamps for a signature -
Method Summary
Modifier and Type Method Description protected List<AdvancedSignature>getCounterSignatures(CAdESAttribute unsignedAttribute)Extracts Counter Signatures from the givenunsignedAttributeList<TimestampToken>getDocumentTimestamps()Returns a list of incorporated document timestamps (PAdES only)protected PAdESTimestampDataBuildergetTimestampDataBuilder()Returns a relatedTimestampDataBuilderprotected 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 voidmakeTimestampTokensFromSignedAttributes()Creates TimestampTokens from all instances extracted from signed attributes (content TSTs)protected voidmakeTimestampTokensFromUnsignedAttributes()Creates TimestampTokens from found instances in unsigned propertiesMethods inherited from class eu.europa.esig.dss.cades.validation.timestamp.CAdESTimestampSource
buildSignedSignatureProperties, buildUnsignedSignatureProperties, getArchiveTimestampOtherReferences, getArchiveTimestampType, getCertificateRefs, getCounterSignatureReferences, getCRLRefs, getEncapsulatedCertificateIdentifiers, getEncapsulatedCRLIdentifiers, getEncapsulatedOCSPIdentifiers, getEncapsulatedValuesFromTimestamp, getIndividualContentTimestampedReferences, 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, getArchiveTimestampInitialReferences, getArchiveTimestamps, getContentTimestamps, getCounterSignaturesReferences, getSignatureTimestampReferences, getSignatureTimestamps, getSignedSignatureProperties, getSignerDataReferences, getSigningCertificateTimestampReferences, getTimestampCertificateSources, getTimestampCertificateSourcesExceptLastArchiveTimestamp, getTimestampCRLSources, getTimestampedCertificateRefs, getTimestampedCertificateRefs, getTimestampedCertificateValues, getTimestampedCRLRefs, getTimestampedOCSPRefs, getTimestampedRevocationRefs, getTimestampedRevocationValues, getTimestampOCSPSources, getTimestampsX1, getTimestampsX2, getTimestampValidationData, getUnsignedPropertiesReferences, getUnsignedSignatureProperties, isTimestamped, makeTimestampTokens, makeTimestampTokens, populateSources, populateSources, validateTimestampsMethods inherited from class eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
addReference, addReference, addReferences, createReferencesForCertificates, createReferencesForIdentifiers, getEncapsulatedReferencesFromTimestamps, 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
-
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
-