Class PAdESSignature
java.lang.Object
eu.europa.esig.dss.pades.validation.PAdESSignature
- All Implemented Interfaces:
Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<eu.europa.esig.dss.spi.signature.AdvancedSignature> protected List<eu.europa.esig.dss.model.DSSDocument> protected eu.europa.esig.dss.model.ManifestFileprotected eu.europa.esig.dss.spi.SignatureCertificateSourceprotected List<eu.europa.esig.dss.model.ReferenceValidation> protected eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSourceprotected eu.europa.esig.dss.model.signature.SignatureCryptographicVerificationprotected eu.europa.esig.dss.spi.signature.identifier.SignatureIdentifierprotected eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSourceprotected eu.europa.esig.dss.model.signature.SignaturePolicyprotected eu.europa.esig.dss.spi.x509.tsp.TimestampSourceprotected eu.europa.esig.dss.spi.x509.CertificateSource -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPAdESSignature(PdfSignatureRevision pdfSignatureRevision, List<PdfRevision> documentRevisions) The default constructor for PAdESSignature. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExternalEvidenceRecord(eu.europa.esig.dss.spi.x509.evidencerecord.EvidenceRecord arg0) voidaddExternalTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestamp) booleanprotected eu.europa.esig.dss.model.signature.SignaturePolicyvoidprotected PAdESBaselineRequirementsCheckercreateBaselineRequirementsChecker(eu.europa.esig.dss.spi.validation.CertificateVerifier certificateVerifier) booleanprotected List<eu.europa.esig.dss.model.scope.SignatureScope> List<eu.europa.esig.dss.spi.x509.evidencerecord.EvidenceRecord> List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> protected PAdESBaselineRequirementsCheckereu.europa.esig.dss.spi.x509.CandidatesForSigningCertificateList<eu.europa.esig.dss.model.x509.CertificateToken> eu.europa.esig.dss.spi.SignatureCertificateSourceList<eu.europa.esig.dss.model.signature.SignerRole> List<eu.europa.esig.dss.model.signature.SignerRole> eu.europa.esig.dss.cms.CMSgetCMS()List<eu.europa.esig.dss.model.signature.CommitmentTypeIndication> eu.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.model.DSSDocument> List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> List<eu.europa.esig.dss.spi.signature.AdvancedSignature> protected eu.europa.esig.dss.spi.x509.ListCertificateSourceprotected eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> protected eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> protected org.bouncycastle.cms.SignerInformationStoreeu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSourceeu.europa.esig.dss.enumerations.SignatureLeveleu.europa.esig.dss.model.DigestList<eu.europa.esig.dss.model.DSSDocument> List<eu.europa.esig.dss.spi.x509.evidencerecord.EvidenceRecord> List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> eu.europa.esig.dss.enumerations.DigestAlgorithmList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Gets the last DSS dictionary for the signatureeu.europa.esig.dss.spi.signature.identifier.SignatureIdentifiergetDSSId()List<eu.europa.esig.dss.spi.x509.evidencerecord.EvidenceRecord> eu.europa.esig.dss.enumerations.EncryptionAlgorithmgetId()eu.europa.esig.dss.model.ManifestFileeu.europa.esig.dss.spi.signature.AdvancedSignatureSet<eu.europa.esig.dss.enumerations.DigestAlgorithm> byte[]eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSourceeu.europa.esig.dss.model.DSSDocumentRetrieves a PdfRevision (PAdES) related to the current signatureGets thePdfSignatureDictionaryList<eu.europa.esig.dss.model.ReferenceValidation> List<eu.europa.esig.dss.model.ReferenceValidation> getReferenceValidations(org.bouncycastle.cms.SignerInformation arg0) eu.europa.esig.dss.enumerations.SignatureAlgorithmeu.europa.esig.dss.model.signature.SignatureCryptographicVerificationeu.europa.esig.dss.model.signature.SignatureDigestReferencegetSignatureDigestReference(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.eu.europa.esig.dss.enumerations.SignatureFormprotected eu.europa.esig.dss.spi.signature.identifier.SignatureIdentifierBuildereu.europa.esig.dss.model.signature.SignaturePolicyeu.europa.esig.dss.model.SignaturePolicyStoreeu.europa.esig.dss.model.signature.SignatureProductionPlaceList<eu.europa.esig.dss.model.scope.SignatureScope> List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> byte[]List<eu.europa.esig.dss.model.signature.SignerRole> protected eu.europa.esig.dss.model.DSSDocumentorg.bouncycastle.cms.SignerIdorg.bouncycastle.cms.SignerInformationSet<eu.europa.esig.dss.spi.x509.SignerIdentifier> List<eu.europa.esig.dss.model.signature.SignerRole> eu.europa.esig.dss.model.x509.CertificateTokenList<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> List<eu.europa.esig.dss.spi.x509.tsp.TimestampToken> Returns 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 existencebooleanbooleanbooleanbooleanbooleanbooleaninthashCode()booleanbooleanbooleanChecks if the LTV-level is present in the signaturebooleanChecks 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-stampbooleanbooleanbooleanvoidinitBaselineRequirementsChecker(eu.europa.esig.dss.spi.validation.CertificateVerifier arg0) booleanbooleanbooleanvoidvoidvoidvoidsetContainerContents(List<eu.europa.esig.dss.model.DSSDocument> arg0) voidsetDetachedContents(List<eu.europa.esig.dss.model.DSSDocument> arg0) voidsetDssCertificateSource(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 SourcevoidsetFilename(String arg0) voidsetManifestFile(eu.europa.esig.dss.model.ManifestFile arg0) voidsetMasterSignature(eu.europa.esig.dss.spi.signature.AdvancedSignature arg0) voidsetSigningCertificateSource(eu.europa.esig.dss.spi.x509.CertificateSource arg0) toString()
-
Field Details
-
detachedContents
-
manifestFile
protected eu.europa.esig.dss.model.ManifestFile manifestFile -
referenceValidations
-
signatureCryptographicVerification
protected eu.europa.esig.dss.model.signature.SignatureCryptographicVerification signatureCryptographicVerification -
structureValidationMessages
-
signingCertificateSource
protected eu.europa.esig.dss.spi.x509.CertificateSource signingCertificateSource -
offlineCertificateSource
protected eu.europa.esig.dss.spi.SignatureCertificateSource offlineCertificateSource -
signatureCRLSource
protected eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource signatureCRLSource -
signatureOCSPSource
protected eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource signatureOCSPSource -
signatureTimestampSource
protected eu.europa.esig.dss.spi.x509.tsp.TimestampSource signatureTimestampSource -
counterSignatures
-
signaturePolicy
protected eu.europa.esig.dss.model.signature.SignaturePolicy signaturePolicy -
signatureIdentifier
protected eu.europa.esig.dss.spi.signature.identifier.SignatureIdentifier signatureIdentifier
-
-
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() -
getCertificateSource
public eu.europa.esig.dss.spi.SignatureCertificateSource getCertificateSource() -
getCRLSource
public eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource getCRLSource() -
getOCSPSource
public eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource getOCSPSource() -
getCompleteCertificateSource
public eu.europa.esig.dss.spi.x509.ListCertificateSource getCompleteCertificateSource() -
getCompleteCRLSource
public eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> getCompleteCRLSource() -
getCompleteOCSPSource
public eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> getCompleteOCSPSource() -
getTimestampSource
-
getDocumentTimestamps
-
getVRITimestamps
Returns a list of timestamps enveloped within /VRI dictionary for the current signature- Returns:
- a list of
TimestampTokens
-
findSignatureScopes
-
getSigningTime
-
getContentIdentifier
-
getContentHints
-
getCounterSignatures
-
getOriginalDocument
public eu.europa.esig.dss.model.DSSDocument getOriginalDocument() -
getSignerDocumentContent
protected eu.europa.esig.dss.model.DSSDocument getSignerDocumentContent() -
getSignatureIdentifierBuilder
protected eu.europa.esig.dss.spi.signature.identifier.SignatureIdentifierBuilder getSignatureIdentifierBuilder() -
getSignatureDigestReference
public eu.europa.esig.dss.model.signature.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. -
hasLTVProfile
public boolean hasLTVProfile()Checks if the LTV-level is present in the signature- Returns:
- TRUE if the LTV-level is present, FALSE otherwise
-
getDataFoundUpToLevel
public eu.europa.esig.dss.enumerations.SignatureLevel getDataFoundUpToLevel() -
getBaselineRequirementsChecker
-
createBaselineRequirementsChecker
protected PAdESBaselineRequirementsChecker createBaselineRequirementsChecker(eu.europa.esig.dss.spi.validation.CertificateVerifier certificateVerifier) -
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- 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
-
getVRICreationTime
-
addExternalTimestamp
public void addExternalTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestamp) -
getSignerId
public org.bouncycastle.cms.SignerId getSignerId() -
buildSignaturePolicy
protected eu.europa.esig.dss.model.signature.SignaturePolicy buildSignaturePolicy() -
getSignaturePolicyStore
public eu.europa.esig.dss.model.SignaturePolicyStore getSignaturePolicyStore() -
getCMS
public eu.europa.esig.dss.cms.CMS getCMS() -
getSignatureProductionPlace
public eu.europa.esig.dss.model.signature.SignatureProductionPlace getSignatureProductionPlace() -
getCommitmentTypeIndications
public List<eu.europa.esig.dss.model.signature.CommitmentTypeIndication> getCommitmentTypeIndications() -
getSignedAssertions
-
getClaimedSignerRoles
-
getCertifiedSignerRoles
-
getEncryptionAlgorithm
public eu.europa.esig.dss.enumerations.EncryptionAlgorithm getEncryptionAlgorithm() -
getDigestAlgorithm
public eu.europa.esig.dss.enumerations.DigestAlgorithm getDigestAlgorithm() -
getSignatureAlgorithm
public eu.europa.esig.dss.enumerations.SignatureAlgorithm getSignatureAlgorithm() -
checkSignatureIntegrity
public void checkSignatureIntegrity() -
getReferenceValidations
public List<eu.europa.esig.dss.model.ReferenceValidation> getReferenceValidations(org.bouncycastle.cms.SignerInformation arg0) -
getReferenceValidations
-
getDataToBeSignedRepresentation
public eu.europa.esig.dss.model.Digest getDataToBeSignedRepresentation() -
getMessageDigestAlgorithms
-
getMessageDigestValue
public byte[] getMessageDigestValue() -
getContentType
-
getMimeType
-
getSignerInformation
public org.bouncycastle.cms.SignerInformation getSignerInformation() -
getSignatureValue
public byte[] getSignatureValue() -
isCounterSignature
public boolean isCounterSignature() -
getCounterSignatureStore
protected org.bouncycastle.cms.SignerInformationStore getCounterSignatureStore() -
getDAIdentifier
-
getSignerInformationStoreInfos
-
setSigningCertificateSource
public void setSigningCertificateSource(eu.europa.esig.dss.spi.x509.CertificateSource arg0) -
getFilename
-
setFilename
-
getDetachedContents
-
setDetachedContents
-
getContainerContents
-
setContainerContents
-
getManifestFile
public eu.europa.esig.dss.model.ManifestFile getManifestFile() -
setManifestFile
public void setManifestFile(eu.europa.esig.dss.model.ManifestFile arg0) -
getDSSId
public eu.europa.esig.dss.spi.signature.identifier.SignatureIdentifier getDSSId() -
getId
-
getCounterSignaturesCertificateSource
protected eu.europa.esig.dss.spi.x509.ListCertificateSource getCounterSignaturesCertificateSource() -
getCounterSignaturesCRLSource
protected eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> getCounterSignaturesCRLSource() -
getCounterSignaturesOCSPSource
protected eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> getCounterSignaturesOCSPSource() -
resetCertificateSource
public void resetCertificateSource() -
resetRevocationSources
public void resetRevocationSources() -
resetTimestampSource
public void resetTimestampSource() -
getCandidatesForSigningCertificate
public eu.europa.esig.dss.spi.x509.CandidatesForSigningCertificate getCandidatesForSigningCertificate() -
initBaselineRequirementsChecker
public void initBaselineRequirementsChecker(eu.europa.esig.dss.spi.validation.CertificateVerifier arg0) -
getCertificates
-
setMasterSignature
public void setMasterSignature(eu.europa.esig.dss.spi.signature.AdvancedSignature arg0) -
getMasterSignature
public eu.europa.esig.dss.spi.signature.AdvancedSignature getMasterSignature() -
getSignatureCryptographicVerification
public eu.europa.esig.dss.model.signature.SignatureCryptographicVerification getSignatureCryptographicVerification() -
getSignerRoles
-
getSigningCertificateToken
public eu.europa.esig.dss.model.x509.CertificateToken getSigningCertificateToken() -
getStructureValidationResult
-
validateStructure
-
getSignatureScopes
-
getContentTimestamps
-
getSignatureTimestamps
-
getTimestampsX1
-
getTimestampsX2
-
getArchiveTimestamps
-
getDetachedTimestamps
-
getAllTimestamps
-
getEmbeddedEvidenceRecords
-
addExternalEvidenceRecord
public void addExternalEvidenceRecord(eu.europa.esig.dss.spi.x509.evidencerecord.EvidenceRecord arg0) -
getDetachedEvidenceRecords
-
getAllEvidenceRecords
-
getSignaturePolicy
public eu.europa.esig.dss.model.signature.SignaturePolicy getSignaturePolicy() -
hasBProfile
public boolean hasBProfile() -
hasTProfile
public boolean hasTProfile() -
hasLTProfile
public boolean hasLTProfile() -
hasLTAProfile
public boolean hasLTAProfile() -
hasBESProfile
public boolean hasBESProfile() -
hasEPESProfile
public boolean hasEPESProfile() -
hasExtendedTProfile
public boolean hasExtendedTProfile() -
hasCProfile
public boolean hasCProfile() -
hasXProfile
public boolean hasXProfile() -
hasXLProfile
public boolean hasXLProfile() -
hasERSProfile
public boolean hasERSProfile() -
areAllSelfSignedCertificates
public boolean areAllSelfSignedCertificates() -
isDocHashOnlyValidation
public boolean isDocHashOnlyValidation() -
isHashOnlyValidation
public boolean isHashOnlyValidation() -
equals
-
hashCode
-
toString
-