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
counterSignatures, detachedContents, manifestFile, offlineCertificateSource, referenceValidations, signatureCRLSource, signatureCryptographicVerification, signatureIdentifier, signatureOCSPSource, signaturePolicy, signatureTimestampSource, signingCertificateSource, structureValidationMessages -
Constructor Summary
Constructors Modifier Constructor Description protectedPAdESSignature(PdfSignatureRevision pdfSignatureRevision, List<PdfRevision> documentRevisions)The default constructor for PAdESSignature. -
Method Summary
Modifier and Type Method Description SignatureCertificateSourcegetCertificateSource()Gets a certificate source which contains ALL certificates embedded in the signature.StringgetContentHints()Gets Content HintsStringgetContentIdentifier()Gets ContentIdentifier StringList<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()Gets the last DSS dictionary for the signatureOfflineOCSPSourcegetOCSPSource()Gets an OCSP source which contains ALL OCSP responses embedded in the signature.PdfSignatureRevisiongetPdfRevision()Retrieves a PdfRevision (PAdES) related to the current signaturePdfSignatureDictionarygetPdfSignatureDictionary()Gets thePdfSignatureDictionarySignatureDigestReferencegetSignatureDigestReference(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 signatureprotected SignatureIdentifierBuildergetSignatureIdentifierBuilder()Returns a builder to define and build a signature IdDategetSigningTime()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 dictionarybooleanhasLTAProfile()Checks if the LTA-level is present in the signaturebooleanhasTProfile()Checks if the T-level is present in the signatureMethods inherited from class eu.europa.esig.dss.cades.validation.CAdESSignature
checkSignatureIntegrity, getCertifiedSignerRoles, getClaimedSignerRoles, getCmsSignedData, getCommitmentTypeIndications, getContentType, getCounterSignatureStore, getDAIdentifier, getDataToBeSignedRepresentation, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getMessageDigestAlgorithms, getMessageDigestValue, getMimeType, getOriginalDocument, getReferenceValidations, getReferenceValidations, getSignatureAlgorithm, getSignaturePolicy, getSignaturePolicyStore, getSignatureProductionPlace, 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, getCounterSignaturesCertificateSource, getCounterSignaturesCRLSource, getCounterSignaturesOCSPSource, getDetachedContents, getDocumentTimestamps, getDSSId, getId, getManifestFile, getMasterSignature, getSignatureCryptographicVerification, getSignatureFilename, getSignatureScopes, getSignatureTimestamps, getSignatureValidationContext, getSignerRoles, getSigningCertificateToken, getStructureValidationResult, getTimestampsX1, getTimestampsX2, hashCode, hasLTProfile, isDocHashOnlyValidation, isHashOnlyValidation, prepareCounterSignatures, prepareOfflineCertificateVerifier, prepareTimestamps, 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
-
getSignatureForm
Description copied from interface:AdvancedSignatureSpecifies the format of the signature- Specified by:
getSignatureFormin interfaceAdvancedSignature- Overrides:
getSignatureFormin classCAdESSignature- Returns:
SignatureForm
-
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:
SignatureCertificateSource
-
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
-
getContentIdentifier
Description copied from class:CAdESSignatureGets ContentIdentifier String- Overrides:
getContentIdentifierin classCAdESSignature- Returns:
- content identifier as
String
-
getContentHints
Description copied from class:CAdESSignatureGets Content Hints- 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
-
getSignatureIdentifierBuilder
Description copied from class:DefaultAdvancedSignatureReturns a builder to define and build a signature Id- Overrides:
getSignatureIdentifierBuilderin classCAdESSignature- Returns:
SignatureIdentifierBuilder
-
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
-
hasTProfile
public boolean hasTProfile()Description copied from class:DefaultAdvancedSignatureChecks if the T-level is present in the signature- Overrides:
hasTProfilein classDefaultAdvancedSignature- Returns:
- TRUE if the T-level is present, FALSE otherwise
-
hasLTAProfile
public boolean hasLTAProfile()Description copied from class:DefaultAdvancedSignatureChecks if the LTA-level is present in the signature- Overrides:
hasLTAProfilein classDefaultAdvancedSignature- Returns:
- TRUE if the LTA-level is present, FALSE otherwise
-
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
-