Class PAdESTimestampSource
java.lang.Object
eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource<CAdESAttribute>
eu.europa.esig.dss.cades.validation.CAdESTimestampSource
eu.europa.esig.dss.pades.validation.PAdESTimestampSource
- All Implemented Interfaces:
TimestampSource
,Serializable
public class PAdESTimestampSource extends CAdESTimestampSource
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class eu.europa.esig.dss.cades.validation.CAdESTimestampSource
cmsSignedData, detachedDocuments, signerInformation
Fields inherited from class eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
certificateSource, crlSource, ocspSource, signatureCertificateSource, signatureCRLSource, signatureId, signatureOCSPSource, signatureScopes
-
Constructor Summary
Constructors Constructor Description PAdESTimestampSource(PAdESSignature signature, List<PdfRevision> documentRevisions)
-
Method Summary
Modifier and Type Method Description protected ArchiveTimestampType
getArchiveTimestampType(CAdESAttribute unsignedAttribute)
ReturnsArchiveTimestampType
for the givenunsignedAttribute
List<TimestampToken>
getDocumentTimestamps()
List<TimestampedReference>
getSignatureTimestampReferences()
Returns a list ofTimestampedReference
for a "signature-timestamp" elementprotected 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
makeTimestampTokens()
Populates all the lists by data found into the signatureMethods inherited from class eu.europa.esig.dss.cades.validation.CAdESTimestampSource
addEncapsulatedValuesFromTimestamp, getArchiveTimestampOtherReferences, getCertificateRefs, getCRLRefs, getEncapsulatedCertificateIdentifiers, getEncapsulatedCRLIdentifiers, getEncapsulatedOCSPIdentifiers, getIndividualContentTimestampedReferences, getOCSPRefs, getSignatureSignedDataReferences, getSignedDataReferences, getSignedSignatureProperties, getUnsignedSignatureProperties, isAllDataObjectsTimestamp, isAttrAuthoritiesCertValues, isAttributeRevocationValues, isContentTimestamp, isIndividualDataObjectsTimestamp, isSignatureTimestamp, isTimeStampValidationData, makeTimestampToken
Methods inherited from class eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
addExternalTimestamp, addReference, addReference, addReferences, addReferencesForPreviousTimestamps, createAndValidate, createReferencesForCertificates, getAllSignedDataReferences, getAllTimestamps, getArchiveTimestamps, getContentTimestamps, getSignatureTimestamps, getSigningCertificateTimestampReferences, getTimestampCertificateSources, getTimestampCertificateSourcesExceptLastArchiveTimestamp, getTimestampCRLSources, getTimestampedCertificateRefs, getTimestampedCertificateValues, getTimestampedRevocationRefs, getTimestampedRevocationValues, getTimestampOCSPSources, getTimestampsX1, getTimestampsX2, getTimestampValidationData, populateSources, validateTimestamps
-
Constructor Details
-
Method Details
-
getDocumentTimestamps
- Specified by:
getDocumentTimestamps
in interfaceTimestampSource
- Overrides:
getDocumentTimestamps
in classAbstractTimestampSource<CAdESAttribute>
-
getTimestampDataBuilder
Description copied from class:AbstractTimestampSource
Returns a relatedTimestampDataBuilder
- Overrides:
getTimestampDataBuilder
in classCAdESTimestampSource
- Returns:
TimestampDataBuilder
-
makeTimestampTokens
protected void makeTimestampTokens()Description copied from class:AbstractTimestampSource
Populates all the lists by data found into the signature- Overrides:
makeTimestampTokens
in classAbstractTimestampSource<CAdESAttribute>
-
getSignatureTimestampReferences
Description copied from class:AbstractTimestampSource
Returns a list ofTimestampedReference
for a "signature-timestamp" element- Overrides:
getSignatureTimestampReferences
in classAbstractTimestampSource<CAdESAttribute>
- Returns:
- list of
TimestampedReference
s
-
isCompleteCertificateRef
Description copied from class:AbstractTimestampSource
Determines if the givenunsignedAttribute
is an instance of "complete-certificate-ref" element- Overrides:
isCompleteCertificateRef
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-ISignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Complete Certificate Ref, FALSE otherwise
-
isAttributeCertificateRef
Description copied from class:AbstractTimestampSource
Determines if the givenunsignedAttribute
is an instance of "attribute-certificate-ref" element- Overrides:
isAttributeCertificateRef
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-ISignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an Attribute Certificate Ref, FALSE otherwise
-
isCompleteRevocationRef
Description copied from class:AbstractTimestampSource
Determines if the givenunsignedAttribute
is an instance of "complete-revocation-ref" element- Overrides:
isCompleteRevocationRef
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-ISignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Complete Revocation Ref, FALSE otherwise
-
isAttributeRevocationRef
Description copied from class:AbstractTimestampSource
Determines if the givenunsignedAttribute
is an instance of "attribute-revocation-ref" element- Overrides:
isAttributeRevocationRef
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-ISignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an Attribute Revocation Ref, FALSE otherwise
-
isRefsOnlyTimestamp
Description copied from class:AbstractTimestampSource
Determines if the givenunsignedAttribute
is an instance of "refs-only-timestamp" element- Overrides:
isRefsOnlyTimestamp
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-ISignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Refs Only TimeStamp, FALSE otherwise
-
isSigAndRefsTimestamp
Description copied from class:AbstractTimestampSource
Determines if the givenunsignedAttribute
is an instance of "sig-and-refs-timestamp" element- Overrides:
isSigAndRefsTimestamp
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-ISignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Sig And Refs TimeStamp, FALSE otherwise
-
isCertificateValues
Description copied from class:AbstractTimestampSource
Determines if the givenunsignedAttribute
is an instance of "certificate-values" element- Overrides:
isCertificateValues
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-ISignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Certificate Values, FALSE otherwise
-
isRevocationValues
Description copied from class:AbstractTimestampSource
Determines if the givenunsignedAttribute
is an instance of "revocation-values" element- Overrides:
isRevocationValues
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-ISignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is a Revocation Values, FALSE otherwise
-
isArchiveTimestamp
Description copied from class:AbstractTimestampSource
Determines if the givenunsignedAttribute
is an instance of "archive-timestamp" element- Overrides:
isArchiveTimestamp
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-ISignatureAttribute
to process- Returns:
- TRUE if the
unsignedAttribute
is an Archive TimeStamp, FALSE otherwise
-
getArchiveTimestampType
Description copied from class:AbstractTimestampSource
ReturnsArchiveTimestampType
for the givenunsignedAttribute
- Overrides:
getArchiveTimestampType
in classCAdESTimestampSource
- Parameters:
unsignedAttribute
-AbstractTimestampSource
to get archive timestamp type for
-