java.lang.Object
eu.europa.esig.dss.validation.DefaultAdvancedSignature
eu.europa.esig.dss.cades.validation.CAdESSignature
eu.europa.esig.dss.pades.validation.PAdESSignature
- All Implemented Interfaces:
eu.europa.esig.dss.model.identifier.IdentifierBasedObject,eu.europa.esig.dss.validation.AdvancedSignature,Serializable
public class PAdESSignature
extends eu.europa.esig.dss.cades.validation.CAdESSignature
Implementation of AdvancedSignature for PAdES
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.DefaultAdvancedSignature
counterSignatures, detachedContents, manifestFile, offlineCertificateSource, offlineCertificateVerifier, referenceValidations, signatureCRLSource, signatureCryptographicVerification, signatureIdentifier, signatureOCSPSource, signaturePolicy, signatureTimestampSource, signingCertificateSource, structureValidationMessages -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPAdESSignature(PdfSignatureRevision pdfSignatureRevision, List<PdfRevision> documentRevisions) The default constructor for PAdESSignature. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExternalTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestamp) protected PAdESBaselineRequirementsCheckerprotected List<eu.europa.esig.dss.model.scope.SignatureScope>protected PAdESBaselineRequirementsCheckereu.europa.esig.dss.spi.SignatureCertificateSourceeu.europa.esig.dss.spi.x509.ListCertificateSourceeu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>List<eu.europa.esig.dss.validation.AdvancedSignature>eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSourceeu.europa.esig.dss.enumerations.SignatureLevelList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken>Gets the last DSS dictionary for the signatureeu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSourceeu.europa.esig.dss.model.DSSDocumentRetrieves a PdfRevision (PAdES) related to the current signatureGets thePdfSignatureDictionaryeu.europa.esig.dss.validation.SignatureDigestReferencegetSignatureDigestReference(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) TS 119 442 - V1.1.1 - Electronic Signatures and Infrastructures (ESI), ch.eu.europa.esig.dss.enumerations.SignatureFormprotected eu.europa.esig.dss.validation.SignatureIdentifierBuilderprotected eu.europa.esig.dss.model.DSSDocumentReturns a VRI creation time defined within 'TU' field of a corresponding /VRI dictionaryName of the related to the signature VRI dictionaryList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken>Returns a list of timestamps enveloped within /VRI dictionary for the current signaturebooleanChecks the presence of ArchiveTimeStamp element in the signature, what is the proof -A profile existencebooleanChecks the presence of an archive-time-stampbooleanChecks the presence of a validation databooleanChecks the presence of PKCS#7 corresponding SubFilterbooleanChecks the presence of a signature-time-stampvoidsetDssCertificateSource(eu.europa.esig.dss.spi.x509.ListCertificateSource dssCertificateSource) Sets a joint DSS/VRI Certificate SourcevoidsetDssCRLSource(eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> dssCRLSource) Sets a joint DSS/VRI CRL SourcevoidsetDssOCSPSource(eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> dssOCSPSource) Sets a joint DSS/VRI OCSP SourceMethods inherited from class eu.europa.esig.dss.cades.validation.CAdESSignature
buildSignaturePolicy, checkSignatureIntegrity, getCertifiedSignerRoles, getClaimedSignerRoles, getCmsSignedData, getCommitmentTypeIndications, getContentType, getCounterSignatureStore, getDAIdentifier, getDataToBeSignedRepresentation, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getMessageDigestAlgorithms, getMessageDigestValue, getMimeType, getReferenceValidations, getReferenceValidations, getSignatureAlgorithm, getSignaturePolicyStore, getSignatureProductionPlace, getSignatureValue, getSignedAssertions, getSignerId, getSignerInformation, getSignerInformationStoreInfos, hasBESProfile, hasCProfile, hasEPESProfile, hasExtendedTProfile, hasXLProfile, hasXProfile, isCounterSignatureMethods inherited from class eu.europa.esig.dss.validation.DefaultAdvancedSignature
addExternalEvidenceRecord, areAllSelfSignedCertificates, equals, findSignatureScope, getAllEvidenceRecords, getAllTimestamps, getArchiveTimestamps, getCandidatesForSigningCertificate, getCertificates, getContainerContents, getContentTimestamps, getCounterSignaturesCertificateSource, getCounterSignaturesCRLSource, getCounterSignaturesOCSPSource, getDetachedContents, getDetachedEvidenceRecords, getDetachedTimestamps, getDSSId, getEmbeddedEvidenceRecords, getId, getManifestFile, getMasterSignature, getSignatureCryptographicVerification, getSignatureFilename, getSignaturePolicy, getSignatureScopes, getSignatureTimestamps, getSignerRoles, getSigningCertificateToken, getStructureValidationResult, getTimestampsX1, getTimestampsX2, hasBProfile, hashCode, hasLTAProfile, hasLTProfile, hasTProfile, isDocHashOnlyValidation, isHashOnlyValidation, prepareOfflineCertificateVerifier, resetCertificateSource, resetRevocationSources, resetTimestampSource, setContainerContents, setDetachedContents, setManifestFile, setMasterSignature, setSignatureFilename, setSigningCertificateSource, toString, validateStructure
-
Constructor Details
-
PAdESSignature
protected PAdESSignature(PdfSignatureRevision pdfSignatureRevision, List<PdfRevision> documentRevisions) The default constructor for PAdESSignature.- Parameters:
pdfSignatureRevision- a relatedPdfSignatureRevisiondocumentRevisions- a list ofPdfRevisionextracted from the validating document
-
-
Method Details
-
setDssCertificateSource
public void setDssCertificateSource(eu.europa.esig.dss.spi.x509.ListCertificateSource dssCertificateSource) Sets a joint DSS/VRI Certificate Source- Parameters:
dssCertificateSource-ListCertificateSource
-
setDssCRLSource
public void setDssCRLSource(eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> dssCRLSource) Sets a joint DSS/VRI CRL Source- Parameters:
dssCRLSource-ListRevocationSource
-
setDssOCSPSource
public void setDssOCSPSource(eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> dssOCSPSource) Sets a joint DSS/VRI OCSP Source- Parameters:
dssOCSPSource-ListRevocationSource
-
getSignatureForm
public eu.europa.esig.dss.enumerations.SignatureForm getSignatureForm()- Specified by:
getSignatureFormin interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getSignatureFormin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getCertificateSource
public eu.europa.esig.dss.spi.SignatureCertificateSource getCertificateSource()- Specified by:
getCertificateSourcein interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getCertificateSourcein classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getCRLSource
public eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource getCRLSource()- Specified by:
getCRLSourcein interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getCRLSourcein classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getOCSPSource
public eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource getOCSPSource()- Specified by:
getOCSPSourcein interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getOCSPSourcein classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getCompleteCertificateSource
public eu.europa.esig.dss.spi.x509.ListCertificateSource getCompleteCertificateSource()- Specified by:
getCompleteCertificateSourcein interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getCompleteCertificateSourcein classeu.europa.esig.dss.validation.DefaultAdvancedSignature
-
getCompleteCRLSource
public eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> getCompleteCRLSource()- Specified by:
getCompleteCRLSourcein interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getCompleteCRLSourcein classeu.europa.esig.dss.validation.DefaultAdvancedSignature
-
getCompleteOCSPSource
public eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> getCompleteOCSPSource()- Specified by:
getCompleteOCSPSourcein interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getCompleteOCSPSourcein classeu.europa.esig.dss.validation.DefaultAdvancedSignature
-
getTimestampSource
- Specified by:
getTimestampSourcein interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getTimestampSourcein classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getDocumentTimestamps
- Specified by:
getDocumentTimestampsin interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getDocumentTimestampsin classeu.europa.esig.dss.validation.DefaultAdvancedSignature
-
getVRITimestamps
Returns a list of timestamps enveloped within /VRI dictionary for the current signature- Returns:
- a list of
TimestampTokens
-
findSignatureScopes
- Overrides:
findSignatureScopesin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getSigningTime
- Specified by:
getSigningTimein interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getSigningTimein classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getContentIdentifier
- Overrides:
getContentIdentifierin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getContentHints
- Overrides:
getContentHintsin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getCounterSignatures
- Specified by:
getCounterSignaturesin interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getCounterSignaturesin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getOriginalDocument
public eu.europa.esig.dss.model.DSSDocument getOriginalDocument()- Overrides:
getOriginalDocumentin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getSignerDocumentContent
protected eu.europa.esig.dss.model.DSSDocument getSignerDocumentContent()- Overrides:
getSignerDocumentContentin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getSignatureIdentifierBuilder
protected eu.europa.esig.dss.validation.SignatureIdentifierBuilder getSignatureIdentifierBuilder()- Overrides:
getSignatureIdentifierBuilderin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getSignatureDigestReference
public eu.europa.esig.dss.validation.SignatureDigestReference getSignatureDigestReference(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) TS 119 442 - V1.1.1 - Electronic Signatures and Infrastructures (ESI), ch. 5.1.4.2.1.3 XML component: In case of PAdES signatures, the input of the digest value computation shall be the result of decoding the hexadecimal string present within the Contents field of the Signature PDF dictionary enclosing one PAdES digital signature.- Specified by:
getSignatureDigestReferencein interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getSignatureDigestReferencein classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getDataFoundUpToLevel
public eu.europa.esig.dss.enumerations.SignatureLevel getDataFoundUpToLevel()- Specified by:
getDataFoundUpToLevelin interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
getDataFoundUpToLevelin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
getBaselineRequirementsChecker
- Overrides:
getBaselineRequirementsCheckerin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
createBaselineRequirementsChecker
- Overrides:
createBaselineRequirementsCheckerin classeu.europa.esig.dss.cades.validation.CAdESSignature
-
hasPKCS7Profile
public boolean hasPKCS7Profile()Checks the presence of PKCS#7 corresponding SubFilter- Returns:
- true if PKCS#7 Profile is detected
-
hasPKCS7TProfile
public boolean hasPKCS7TProfile()Checks the presence of a signature-time-stamp- Returns:
- true if PKCS#7-T Profile is detected
-
hasPKCS7LTProfile
public boolean hasPKCS7LTProfile()Checks the presence of a validation data- Returns:
- true if PKCS#7-LT Profile is detected
-
hasPKCS7LTAProfile
public boolean hasPKCS7LTAProfile()Checks the presence of an archive-time-stamp- Returns:
- true if PKCS#7-LTA Profile is detected
-
hasAProfile
public boolean hasAProfile()Checks the presence of ArchiveTimeStamp element in the signature, what is the proof -A profile existence- Overrides:
hasAProfilein classeu.europa.esig.dss.cades.validation.CAdESSignature- Returns:
- true if the -A extension is present
-
getDssDictionary
Gets the last DSS dictionary for the signature- Returns:
PdfDssDict
-
getPdfRevision
Retrieves a PdfRevision (PAdES) related to the current signature- Returns:
PdfRevision
-
getPdfSignatureDictionary
Gets thePdfSignatureDictionary- Returns:
PdfSignatureDictionary
-
getVRIKey
Name of the related to the signature VRI dictionary- Returns:
- related
StringVRI dictionary name
-
getVRICreationTime
Returns a VRI creation time defined within 'TU' field of a corresponding /VRI dictionary- Returns:
Dateof VRI dictionary creation, when present
-
addExternalTimestamp
public void addExternalTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestamp) - Specified by:
addExternalTimestampin interfaceeu.europa.esig.dss.validation.AdvancedSignature- Overrides:
addExternalTimestampin classeu.europa.esig.dss.cades.validation.CAdESSignature
-