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>
documentTimestamps
This 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 givenunsignedAttribute
List<TimestampToken>
getDocumentTimestamps()
Returns a list of incorporated document timestamps (PAdES only)protected PAdESTimestampDataBuilder
getTimestampDataBuilder()
Returns a relatedTimestampDataBuilder
protected 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
makeTimestampTokensFromSignedAttributes()
Creates TimestampTokens from all instances extracted from signed attributes (content TSTs)protected void
makeTimestampTokensFromUnsignedAttributes()
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, makeTimestampToken
Methods 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, validateTimestamps
Methods 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
-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
-
getTimestampDataBuilder
Description copied from class:SignatureTimestampSource
Returns a relatedTimestampDataBuilder
- Overrides:
getTimestampDataBuilder
in classCAdESTimestampSource
- Returns:
TimestampDataBuilder
-
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
-
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
-