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 protectedPAdESSignature(PdfSignatureRevision pdfSignatureRevision, List<PdfRevision> documentRevisions)The default constructor for PAdESSignature. -
Method Summary
Modifier and Type Method Description SignatureIdentifierbuildSignatureIdentifier()Build and definessignatureIdentifiervalueSignatureCertificateSourcegetCertificateSource()Gets a certificate source which contains ALL certificates embedded in the signature.StringgetContentHints()StringgetContentIdentifier()List<AdvancedSignature>getCounterSignatures()Returns a list of counter signatures applied to this signatureOfflineCRLSourcegetCRLSource()Gets a CRL source which contains ALL CRLs embedded in the signature.SignatureLevelgetDataFoundUpToLevel()This method returns the signature levelPdfDssDictgetDssDictionary()OfflineOCSPSourcegetOCSPSource()Gets an OCSP source which contains ALL OCSP responses embedded in the signature.PdfSignatureRevisiongetPdfRevision()Retrieves a PdfRevision (PAdES) related to the current signaturePdfSignatureDictionarygetPdfSignatureDictionary()SignatureDigestReferencegetSignatureDigestReference(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.SignatureFormgetSignatureForm()Specifies the format of the signatureSignatureLevel[]getSignatureLevels()SignatureProductionPlacegetSignatureProductionPlace()Returns information about the place where the signature was generatedDategetSigningTime()Returns the signing time included within the signature.PAdESTimestampSourcegetTimestampSource()Gets a Signature Timestamp source which contains ALL timestamps embedded in the signature.StringgetVRIKey()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, isCounterSignatureMethods 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 relatedPdfSignatureRevisiondocumentRevisions- a list ofPdfRevisionextracted from the validating document
-
-
Method Details
-
getSignatureForm
Description copied from interface:AdvancedSignatureSpecifies the format of the signature- Specified by:
getSignatureFormin interfaceAdvancedSignature- Overrides:
getSignatureFormin classCAdESSignature
-
getCertificateSource
Description copied from interface:AdvancedSignatureGets a certificate source which contains ALL certificates embedded in the signature.- Specified by:
getCertificateSourcein interfaceAdvancedSignature- Overrides:
getCertificateSourcein classCAdESSignature- Returns:
-
getCRLSource
Description copied from interface:AdvancedSignatureGets a CRL source which contains ALL CRLs embedded in the signature.- Specified by:
getCRLSourcein interfaceAdvancedSignature- Overrides:
getCRLSourcein classCAdESSignature- Returns:
OfflineRevocationSource
-
getOCSPSource
Description copied from interface:AdvancedSignatureGets an OCSP source which contains ALL OCSP responses embedded in the signature.- Specified by:
getOCSPSourcein interfaceAdvancedSignature- Overrides:
getOCSPSourcein classCAdESSignature- Returns:
OfflineRevocationSource
-
getTimestampSource
Description copied from interface:AdvancedSignatureGets a Signature Timestamp source which contains ALL timestamps embedded in the signature.- Specified by:
getTimestampSourcein interfaceAdvancedSignature- Overrides:
getTimestampSourcein classCAdESSignature- Returns:
SignatureTimestampSource
-
getSigningTime
Description copied from interface:AdvancedSignatureReturns the signing time included within the signature.- Specified by:
getSigningTimein interfaceAdvancedSignature- Overrides:
getSigningTimein classCAdESSignature- Returns:
Daterepresenting the signing time or null
-
getSignatureProductionPlace
Description copied from interface:AdvancedSignatureReturns information about the place where the signature was generated- Specified by:
getSignatureProductionPlacein interfaceAdvancedSignature- Overrides:
getSignatureProductionPlacein classCAdESSignature- Returns:
SignatureProductionPlace
-
getContentIdentifier
- Specified by:
getContentIdentifierin interfaceAdvancedSignature- Overrides:
getContentIdentifierin classCAdESSignature- Returns:
- content identifier as
String
-
getContentHints
- Specified by:
getContentHintsin interfaceAdvancedSignature- Overrides:
getContentHintsin classCAdESSignature- Returns:
- content hints as
String
-
getCounterSignatures
Description copied from interface:AdvancedSignatureReturns a list of counter signatures applied to this signature- Specified by:
getCounterSignaturesin interfaceAdvancedSignature- Overrides:
getCounterSignaturesin classCAdESSignature- Returns:
- a
ListofAdvancedSignaturesrepresenting the counter signatures
-
buildSignatureIdentifier
Description copied from class:DefaultAdvancedSignatureBuild and definessignatureIdentifiervalue- Overrides:
buildSignatureIdentifierin 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:
getSignatureDigestReferencein interfaceAdvancedSignature- Overrides:
getSignatureDigestReferencein classCAdESSignature- Parameters:
digestAlgorithm-DigestAlgorithmto use- Returns:
SignatureDigestReference
-
getDataFoundUpToLevel
Description copied from interface:AdvancedSignatureThis method returns the signature level- Specified by:
getDataFoundUpToLevelin interfaceAdvancedSignature- Overrides:
getDataFoundUpToLevelin classCAdESSignature- Returns:
- a value of
SignatureLevel
-
getDssDictionary
-
getSignatureLevels
- Specified by:
getSignatureLevelsin interfaceAdvancedSignature- Overrides:
getSignatureLevelsin 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:AdvancedSignatureRetrieves a PdfRevision (PAdES) related to the current signature- Specified by:
getPdfRevisionin interfaceAdvancedSignature- Overrides:
getPdfRevisionin classDefaultAdvancedSignature- Returns:
PdfRevision
-
getPdfSignatureDictionary
-
getVRIKey
Name of the related to the signature VRI dictionary- Returns:
- related
StringVRI dictionary name
-