Class PAdESSignature
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:
AdvancedSignature
,Serializable
public class PAdESSignature extends CAdESSignature
Implementation of AdvancedSignature for PAdES
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.DefaultAdvancedSignature
detachedContents, manifestFiles, offlineCertificateSource, providedSigningCertificateToken, referenceValidations, signatureCRLSource, signatureCryptographicVerification, signatureIdentifier, signatureOCSPSource, signaturePolicy, signatureTimestampSource, structureValidation
-
Constructor Summary
Constructors Modifier Constructor Description protected
PAdESSignature(PdfSignatureRevision pdfSignatureRevision, List<PdfRevision> documentRevisions)
The default constructor for PAdESSignature. -
Method Summary
Modifier and Type Method Description SignatureIdentifier
buildSignatureIdentifier()
Build and definessignatureIdentifier
valueSignatureCertificateSource
getCertificateSource()
Gets a certificate source which contains ALL certificates embedded in the signature.String
getContentHints()
String
getContentIdentifier()
List<AdvancedSignature>
getCounterSignatures()
Returns a list of counter signatures applied to this signatureOfflineCRLSource
getCRLSource()
Gets a CRL source which contains ALL CRLs embedded in the signature.SignatureLevel
getDataFoundUpToLevel()
This method returns the signature levelPdfDssDict
getDssDictionary()
OfflineOCSPSource
getOCSPSource()
Gets an OCSP source which contains ALL OCSP responses embedded in the signature.PdfSignatureRevision
getPdfRevision()
Retrieves a PdfRevision (PAdES) related to the current signaturePdfSignatureDictionary
getPdfSignatureDictionary()
SignatureDigestReference
getSignatureDigestReference(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.SignatureForm
getSignatureForm()
Specifies the format of the signatureSignatureLevel[]
getSignatureLevels()
SignatureProductionPlace
getSignatureProductionPlace()
Returns information about the place where the signature was generatedDate
getSigningTime()
Returns the signing time included within the signature.PAdESTimestampSource
getTimestampSource()
Gets a Signature Timestamp source which contains ALL timestamps embedded in the signature.String
getVRIKey()
Name of the related to the signature VRI dictionaryMethods inherited from class eu.europa.esig.dss.cades.validation.CAdESSignature
checkSignatureIntegrity, checkSignaturePolicy, getCertifiedSignerRoles, getClaimedSignerRoles, getCmsSignedData, getCommitmentTypeIndications, getContentType, getDAIdentifier, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getMessageDigestAlgorithms, getMessageDigestValue, getMimeType, getOriginalDocument, getPSSHashAlgorithm, getReferenceValidations, getReferenceValidations, getSignatureAlgorithm, getSignatureValue, getSignedAssertions, getSignerId, getSignerInformation, getSignerInformationStoreInfos, hasAProfile, hasBProfile, hasCProfile, hasXProfile, isCounterSignature
Methods inherited from class eu.europa.esig.dss.validation.DefaultAdvancedSignature
addExternalTimestamp, areAllSelfSignedCertificates, equals, findSignatureScope, getAllTimestamps, getArchiveTimestamps, getCandidatesForSigningCertificate, getCertificates, getCertificateSourcesExceptLastArchiveTimestamp, getCompleteCertificateSource, getCompleteCRLSource, getCompleteOCSPSource, getContainerContents, getContentTimestamps, getDetachedContents, getDocumentTimestamps, getDSSId, getId, getManifestedDocuments, getMasterSignature, getPolicyId, getProvidedSigningCertificateToken, getSignatureCryptographicVerification, getSignatureFilename, getSignatureScopes, getSignatureTimestamps, getSignatureValidationContext, getSignerRoles, getSigningCertificateToken, getStructureValidationResult, getTimestampsX1, getTimestampsX2, hashCode, hasLTAProfile, hasLTProfile, hasTProfile, isDocHashOnlyValidation, isHashOnlyValidation, prepareOfflineCertificateVerifier, prepareTimestamps, setContainerContents, setDetachedContents, setManifestFiles, setMasterSignature, setProvidedSigningCertificateToken, setSignatureFilename, toString, validateStructure
-
Constructor Details
-
PAdESSignature
protected PAdESSignature(PdfSignatureRevision pdfSignatureRevision, List<PdfRevision> documentRevisions)The default constructor for PAdESSignature.- Parameters:
pdfSignatureRevision
- a relatedPdfSignatureRevision
documentRevisions
- a list ofPdfRevision
extracted from the validating document
-
-
Method Details
-
getSignatureForm
Description copied from interface:AdvancedSignature
Specifies the format of the signature- Specified by:
getSignatureForm
in interfaceAdvancedSignature
- Overrides:
getSignatureForm
in classCAdESSignature
-
getCertificateSource
Description copied from interface:AdvancedSignature
Gets a certificate source which contains ALL certificates embedded in the signature.- Specified by:
getCertificateSource
in interfaceAdvancedSignature
- Overrides:
getCertificateSource
in classCAdESSignature
- Returns:
-
getCRLSource
Description copied from interface:AdvancedSignature
Gets a CRL source which contains ALL CRLs embedded in the signature.- Specified by:
getCRLSource
in interfaceAdvancedSignature
- Overrides:
getCRLSource
in classCAdESSignature
- Returns:
OfflineRevocationSource
-
getOCSPSource
Description copied from interface:AdvancedSignature
Gets an OCSP source which contains ALL OCSP responses embedded in the signature.- Specified by:
getOCSPSource
in interfaceAdvancedSignature
- Overrides:
getOCSPSource
in classCAdESSignature
- Returns:
OfflineRevocationSource
-
getTimestampSource
Description copied from interface:AdvancedSignature
Gets a Signature Timestamp source which contains ALL timestamps embedded in the signature.- Specified by:
getTimestampSource
in interfaceAdvancedSignature
- Overrides:
getTimestampSource
in classCAdESSignature
- Returns:
SignatureTimestampSource
-
getSigningTime
Description copied from interface:AdvancedSignature
Returns the signing time included within the signature.- Specified by:
getSigningTime
in interfaceAdvancedSignature
- Overrides:
getSigningTime
in classCAdESSignature
- Returns:
Date
representing the signing time or null
-
getSignatureProductionPlace
Description copied from interface:AdvancedSignature
Returns information about the place where the signature was generated- Specified by:
getSignatureProductionPlace
in interfaceAdvancedSignature
- Overrides:
getSignatureProductionPlace
in classCAdESSignature
- Returns:
SignatureProductionPlace
-
getContentIdentifier
- Specified by:
getContentIdentifier
in interfaceAdvancedSignature
- Overrides:
getContentIdentifier
in classCAdESSignature
- Returns:
- content identifier as
String
-
getContentHints
- Specified by:
getContentHints
in interfaceAdvancedSignature
- Overrides:
getContentHints
in classCAdESSignature
- Returns:
- content hints as
String
-
getCounterSignatures
Description copied from interface:AdvancedSignature
Returns a list of counter signatures applied to this signature- Specified by:
getCounterSignatures
in interfaceAdvancedSignature
- Overrides:
getCounterSignatures
in classCAdESSignature
- Returns:
- a
List
ofAdvancedSignatures
representing the counter signatures
-
buildSignatureIdentifier
Description copied from class:DefaultAdvancedSignature
Build and definessignatureIdentifier
value- Overrides:
buildSignatureIdentifier
in classCAdESSignature
-
getSignatureDigestReference
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:
getSignatureDigestReference
in interfaceAdvancedSignature
- Overrides:
getSignatureDigestReference
in classCAdESSignature
- Parameters:
digestAlgorithm
-DigestAlgorithm
to use- Returns:
SignatureDigestReference
-
getDataFoundUpToLevel
Description copied from interface:AdvancedSignature
This method returns the signature level- Specified by:
getDataFoundUpToLevel
in interfaceAdvancedSignature
- Overrides:
getDataFoundUpToLevel
in classCAdESSignature
- Returns:
- a value of
SignatureLevel
-
getDssDictionary
-
getSignatureLevels
- Specified by:
getSignatureLevels
in interfaceAdvancedSignature
- Overrides:
getSignatureLevels
in classCAdESSignature
- Returns:
- the list of signature levels for this type of signature, in the simple to complete order. Example: B,T,LT,LTA
-
getPdfRevision
Description copied from interface:AdvancedSignature
Retrieves a PdfRevision (PAdES) related to the current signature- Specified by:
getPdfRevision
in interfaceAdvancedSignature
- Overrides:
getPdfRevision
in classDefaultAdvancedSignature
- Returns:
PdfRevision
-
getPdfSignatureDictionary
-
getVRIKey
Name of the related to the signature VRI dictionary- Returns:
- related
String
VRI dictionary name
-