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:
SignatureTimestampSource,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, signerInformationFields inherited from class eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
certificatePool, crlSource, ocspSource, signatureCertificateSource, signatureCRLSource, signatureId, signatureOCSPSource, signatureScopes, timestampCertificateSource -
Constructor Summary
Constructors Constructor Description PAdESTimestampSource(PAdESSignature signature, CertificatePool certificatePool) -
Method Summary
Modifier and Type Method Description protected ArchiveTimestampTypegetArchiveTimestampType(CAdESAttribute unsignedAttribute)ReturnsArchiveTimestampTypefor the givenunsignedAttributeList<TimestampToken>getDocumentTimestamps()protected List<TimestampedReference>getSignatureTimestampReferences()Returns a list ofTimestampedReferencefor a "signature-timestamp" elementprotected 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 voidmakeTimestampTokens()Populates all the lists by data found into the signatureMethods inherited from class eu.europa.esig.dss.cades.validation.CAdESTimestampSource
addEncapsulatedValuesFromTimestamp, getCertificateRefDigests, getEncapsulatedCertificateIdentifiers, getEncapsulatedCRLIdentifiers, getEncapsulatedOCSPIdentifiers, getIndividualContentTimestampedReferences, getRevocationRefCRLDigests, getRevocationRefOCSPDigests, getSignatureSignedDataReferences, getSignedDataReferences, getSignedSignatureProperties, getUnsignedSignatureProperties, isAllDataObjectsTimestamp, isContentTimestamp, isIndividualDataObjectsTimestamp, isSignatureTimestamp, isTimeStampValidationData, makeTimestampTokenMethods inherited from class eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
addExternalTimestamp, addReference, addReferences, addReferencesForPreviousTimestamps, createAndValidate, createReferencesForCertificates, getAllContentTimestampReferences, getAllTimestamps, getArchiveTimestamps, getCertificateMapWithinTimestamps, getCertificates, getContentTimestamps, getSignatureTimestamps, getSigningCertificateTimestampReferences, getTimestampCRLSources, getTimestampedCertificateRefs, getTimestampedCertificateValues, getTimestampedRevocationRefs, getTimestampedRevocationValues, getTimestampOCSPSources, getTimestampsX1, getTimestampsX2, getTimestampValidationData, populateTimestampCertificateSource, validateTimestamps
-
Constructor Details
-
Method Details
-
getDocumentTimestamps
- Specified by:
getDocumentTimestampsin interfaceSignatureTimestampSource- Overrides:
getDocumentTimestampsin classAbstractTimestampSource<CAdESAttribute>
-
getTimestampDataBuilder
Description copied from class:AbstractTimestampSourceReturns a relatedTimestampDataBuilder- Overrides:
getTimestampDataBuilderin classCAdESTimestampSource- Returns:
TimestampDataBuilder
-
makeTimestampTokens
protected void makeTimestampTokens()Description copied from class:AbstractTimestampSourcePopulates all the lists by data found into the signature- Overrides:
makeTimestampTokensin classAbstractTimestampSource<CAdESAttribute>
-
getSignatureTimestampReferences
Description copied from class:AbstractTimestampSourceReturns a list ofTimestampedReferencefor a "signature-timestamp" element- Overrides:
getSignatureTimestampReferencesin classAbstractTimestampSource<CAdESAttribute>- Returns:
- list of
TimestampedReferences
-
isCompleteCertificateRef
Description copied from class:AbstractTimestampSourceDetermines if the givenunsignedAttributeis an instance of "complete-certificate-ref" element- Overrides:
isCompleteCertificateRefin classCAdESTimestampSource- Parameters:
unsignedAttribute-ISignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Complete Certificate Ref, FALSE otherwise
-
isAttributeCertificateRef
Description copied from class:AbstractTimestampSourceDetermines if the givenunsignedAttributeis an instance of "attribute-certificate-ref" element- Overrides:
isAttributeCertificateRefin classCAdESTimestampSource- Parameters:
unsignedAttribute-ISignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis an Attribute Certificate Ref, FALSE otherwise
-
isCompleteRevocationRef
Description copied from class:AbstractTimestampSourceDetermines if the givenunsignedAttributeis an instance of "complete-revocation-ref" element- Overrides:
isCompleteRevocationRefin classCAdESTimestampSource- Parameters:
unsignedAttribute-ISignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Complete Revocation Ref, FALSE otherwise
-
isAttributeRevocationRef
Description copied from class:AbstractTimestampSourceDetermines if the givenunsignedAttributeis an instance of "attribute-revocation-ref" element- Overrides:
isAttributeRevocationRefin classCAdESTimestampSource- Parameters:
unsignedAttribute-ISignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis an Attribute Revocation Ref, FALSE otherwise
-
isRefsOnlyTimestamp
Description copied from class:AbstractTimestampSourceDetermines if the givenunsignedAttributeis an instance of "refs-only-timestamp" element- Overrides:
isRefsOnlyTimestampin classCAdESTimestampSource- Parameters:
unsignedAttribute-ISignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Refs Only TimeStamp, FALSE otherwise
-
isSigAndRefsTimestamp
Description copied from class:AbstractTimestampSourceDetermines if the givenunsignedAttributeis an instance of "sig-and-refs-timestamp" element- Overrides:
isSigAndRefsTimestampin classCAdESTimestampSource- Parameters:
unsignedAttribute-ISignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Sig And Refs TimeStamp, FALSE otherwise
-
isCertificateValues
Description copied from class:AbstractTimestampSourceDetermines if the givenunsignedAttributeis an instance of "certificate-values" element- Overrides:
isCertificateValuesin classCAdESTimestampSource- Parameters:
unsignedAttribute-ISignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Certificate Values, FALSE otherwise
-
isRevocationValues
Description copied from class:AbstractTimestampSourceDetermines if the givenunsignedAttributeis an instance of "revocation-values" element- Overrides:
isRevocationValuesin classCAdESTimestampSource- Parameters:
unsignedAttribute-ISignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis a Revocation Values, FALSE otherwise
-
isArchiveTimestamp
Description copied from class:AbstractTimestampSourceDetermines if the givenunsignedAttributeis an instance of "archive-timestamp" element- Overrides:
isArchiveTimestampin classCAdESTimestampSource- Parameters:
unsignedAttribute-ISignatureAttributeto process- Returns:
- TRUE if the
unsignedAttributeis an Archive TimeStamp, FALSE otherwise
-
getArchiveTimestampType
Description copied from class:AbstractTimestampSourceReturnsArchiveTimestampTypefor the givenunsignedAttribute- Overrides:
getArchiveTimestampTypein classCAdESTimestampSource- Parameters:
unsignedAttribute-AbstractTimestampSourceto get archive timestamp type for
-