Package eu.europa.esig.dss.pades
Class PAdESSignatureParameters
java.lang.Object
eu.europa.esig.dss.model.AbstractSerializableSignatureParameters<TP>
eu.europa.esig.dss.AbstractSignatureParameters<CAdESTimestampParameters>
eu.europa.esig.dss.cades.CAdESSignatureParameters
eu.europa.esig.dss.pades.PAdESSignatureParameters
- All Implemented Interfaces:
- SerializableSignatureParameters,- PAdESCommonParameters,- Serializable
public class PAdESSignatureParameters
extends CAdESSignatureParameters
implements PAdESCommonParameters
Parameters to create/extend a PAdES signature
- See Also:
- 
Field SummaryFields inherited from class eu.europa.esig.dss.AbstractSignatureParameterscontextFields inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParametersarchiveTimestampParameters, contentTimestampParameters, signatureTimestampParameters
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor instantiating object with default parameters
- 
Method SummaryModifier and TypeMethodDescriptionReturns name of an application used to create a signature/timestampGet the parameters for archive timestamp (Baseline-LTA)Gets the contactInfointReturns a length of the reserved /Contents attributeGet the parameters for content timestamp (Baseline-B)Gets the signature creation context (internal variable)Returns Filter valueReturnsSignatureImageParametersfor field's visual representationGets locationchar[]Returns a password used to encrypt a documentReturns an internal variable, used to cache data in order to accelerate signing processGets the permission for the PDF document modificationGets the reasonGet the parameters for signature timestamp (Baseline-T)Returns the Signer NameReturns a claimed signing timeReturns a time-zone used to define the signing timeReturns SubFilter valuebooleanReturns whether the VRI dictionary should be included to the PAdES Signature on extension within LT-level revision (DSS revision)voidsetAppName(String appName) Sets signing application namevoidsetArchiveTimestampParameters(CAdESTimestampParameters archiveTimestampParameters) Set the parameters to produce the archive timestamp (Baseline-LTA)voidsetContactInfo(String contactInfo) Sets the contactInfovoidsetContentSize(int signatureSize) This setter defines an amount of bytes to be reserved for a CMS signature contents encapsulation Default : 9472 bytesvoidsetContentTimestampParameters(CAdESTimestampParameters contentTimestampParameters) Set the parameters to produce the content timestamp (Baseline-B)voidSets the filtervoidsetImageParameters(SignatureImageParameters signatureImageParameters) Sets theSignatureImageParametersfor a visual signature creationvoidsetIncludeVRIDictionary(boolean includeVRIDictionary) Sets whether corresponding VRI dictionary should be included to the PAdES signature on extension to LT-level Default: FALSE (VRI dictionary is not included to PAdES signature)voidsetLocation(String location) Sets location (The CPU host name or physical location of the signing)voidsetPasswordProtection(char[] passwordProtection) Sets password to the documentvoidsetPasswordProtection(String passwordProtection) Deprecated.since DSS 5.12.voidsetPermission(CertificationPermission permission) Sets the permission for the PDF document modificationvoidSets the reasonvoidsetSignatureLevel(SignatureLevel signatureLevel) Set signature level.voidsetSignatureTimestampParameters(CAdESTimestampParameters signatureTimestampParameters) Set the parameters to produce the signature timestamp (Baseline-T)voidsetSignerName(String signerName) Sets the name of the signedvoidsetSigningTimeZone(TimeZone signingTimeZone) Sets a TimeZone to use for signature creation.voidsetSubFilter(String signatureSubFilter) Sets the sub filterMethods inherited from class eu.europa.esig.dss.cades.CAdESSignatureParametersgetContentHintsDescription, getContentHintsType, getContentIdentifierPrefix, getContentIdentifierSuffix, isEn319122, setContentHintsDescription, setContentHintsType, setContentIdentifierPrefix, setContentIdentifierSuffix, setEn319122Methods inherited from class eu.europa.esig.dss.AbstractSignatureParametersgetCertificateChain, getContentTimestamps, getDetachedContents, getDeterministicId, getSignedData, getSigningCertificate, reinit, setCertificateChain, setCertificateChain, setContentTimestamps, setDetachedContents, setSignedData, setSigningCertificateMethods inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParametersbLevel, equals, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getReferenceDigestAlgorithm, getSignatureAlgorithm, getSignatureLevel, getSignaturePackaging, hashCode, isCheckCertificateRevocation, isGenerateTBSWithoutCertificate, isSignWithExpiredCertificate, isSignWithNotYetValidCertificate, setBLevelParams, setCheckCertificateRevocation, setDigestAlgorithm, setEncryptionAlgorithm, setGenerateTBSWithoutCertificate, setMaskGenerationFunction, setReferenceDigestAlgorithm, setSignaturePackaging, setSignWithExpiredCertificate, setSignWithNotYetValidCertificate, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.pades.PAdESCommonParametersgetDeterministicId, getDigestAlgorithm, reinit
- 
Constructor Details- 
PAdESSignatureParameterspublic PAdESSignatureParameters()Default constructor instantiating object with default parameters
 
- 
- 
Method Details- 
setSignatureLevelDescription copied from class:AbstractSerializableSignatureParametersSet signature level. This field cannot be null.- Overrides:
- setSignatureLevelin class- AbstractSerializableSignatureParameters<CAdESTimestampParameters>
- Parameters:
- signatureLevel- the expected signature level
 
- 
getReasonGets the reason- Returns:
- String
 
- 
setReasonSets the reason- Parameters:
- reason-- Stringthe reason to set
 
- 
getContactInfoGets the contactInfo- Returns:
- String
 
- 
setContactInfoSets the contactInfo- Parameters:
- contactInfo-- String
 
- 
getLocationGets location- Returns:
- String
 
- 
setLocationSets location (The CPU host name or physical location of the signing)- Parameters:
- location-- String
 
- 
getSignerNameReturns the Signer Name- Returns:
- String
 
- 
setSignerNameSets the name of the signed- Parameters:
- signerName-- String
 
- 
getFilterDescription copied from interface:PAdESCommonParametersReturns Filter value- Specified by:
- getFilterin interface- PAdESCommonParameters
- Returns:
- Stringfilter
 
- 
setFilterSets the filter- Parameters:
- signatureFilter-- String
 
- 
getSubFilterDescription copied from interface:PAdESCommonParametersReturns SubFilter value- Specified by:
- getSubFilterin interface- PAdESCommonParameters
- Returns:
- StringsubFilter
 
- 
setSubFilterSets the sub filter- Parameters:
- signatureSubFilter-- String
 
- 
getAppNameDescription copied from interface:PAdESCommonParametersReturns name of an application used to create a signature/timestamp- Specified by:
- getAppNamein interface- PAdESCommonParameters
- Returns:
- String
 
- 
setAppNameSets signing application name- Parameters:
- appName-- String
 
- 
getContextDescription copied from class:AbstractSignatureParametersGets the signature creation context (internal variable)- Overrides:
- getContextin class- AbstractSignatureParameters<CAdESTimestampParameters>
- Returns:
- ProfileParameters
 
- 
getImageParametersDescription copied from interface:PAdESCommonParametersReturnsSignatureImageParametersfor field's visual representation- Specified by:
- getImageParametersin interface- PAdESCommonParameters
- Returns:
- SignatureImageParameters
 
- 
setImageParametersSets theSignatureImageParametersfor a visual signature creation- Parameters:
- signatureImageParameters-- SignatureImageParameters
 
- 
getContentSizepublic int getContentSize()Description copied from interface:PAdESCommonParametersReturns a length of the reserved /Contents attribute- Specified by:
- getContentSizein interface- PAdESCommonParameters
- Returns:
- int content size
 
- 
setContentSizepublic void setContentSize(int signatureSize) This setter defines an amount of bytes to be reserved for a CMS signature contents encapsulation Default : 9472 bytes- Parameters:
- signatureSize- /Contents parameter reserved space
 
- 
getPermissionGets the permission for the PDF document modification- Returns:
- CertificationPermission
 
- 
setPermissionSets the permission for the PDF document modification- Parameters:
- permission-- CertificationPermission
 
- 
setPasswordProtectionDeprecated.since DSS 5.12. Use#setPasswordBinaries(passwordProtection.toCharArray())Sets a password string- Parameters:
- passwordProtection-- Stringpassword to set
 
- 
getPasswordProtectionpublic char[] getPasswordProtection()Description copied from interface:PAdESCommonParametersReturns a password used to encrypt a document- Specified by:
- getPasswordProtectionin interface- PAdESCommonParameters
- Returns:
- char array representing a password string
 
- 
setPasswordProtectionpublic void setPasswordProtection(char[] passwordProtection) Sets password to the document- Parameters:
- passwordProtection- char array representing a password of the document
 
- 
getSigningDateDescription copied from interface:PAdESCommonParametersReturns a claimed signing time- Specified by:
- getSigningDatein interface- PAdESCommonParameters
- Returns:
- Date
 
- 
setSigningTimeZoneSets a TimeZone to use for signature creation. Will be used to define a signingTime within a PDF entry with key /M. Default: TimeZone.getDefault()- Parameters:
- signingTimeZone-- TimeZone
 
- 
getSigningTimeZoneReturns a time-zone used to define the signing time- Returns:
- TimeZone
 
- 
isIncludeVRIDictionarypublic boolean isIncludeVRIDictionary()Returns whether the VRI dictionary should be included to the PAdES Signature on extension within LT-level revision (DSS revision)- Returns:
- whether the corresponding VRI dictionary should be included on signature extension
 
- 
setIncludeVRIDictionarypublic void setIncludeVRIDictionary(boolean includeVRIDictionary) Sets whether corresponding VRI dictionary should be included to the PAdES signature on extension to LT-level Default: FALSE (VRI dictionary is not included to PAdES signature)- Parameters:
- includeVRIDictionary- whether corresponding VRI dictionary should be included to the PAdES signature on extension
 
- 
getContentTimestampParametersDescription copied from class:AbstractSerializableSignatureParametersGet the parameters for content timestamp (Baseline-B)- Overrides:
- getContentTimestampParametersin class- CAdESSignatureParameters
- Returns:
- the parameters to produce a content timestamp
 
- 
setContentTimestampParametersDescription copied from class:AbstractSerializableSignatureParametersSet the parameters to produce the content timestamp (Baseline-B)- Overrides:
- setContentTimestampParametersin class- AbstractSerializableSignatureParameters<CAdESTimestampParameters>
- Parameters:
- contentTimestampParameters- the parameters to produce the content timestamp
 
- 
getSignatureTimestampParametersDescription copied from class:AbstractSerializableSignatureParametersGet the parameters for signature timestamp (Baseline-T)- Overrides:
- getSignatureTimestampParametersin class- CAdESSignatureParameters
- Returns:
- the parameters to produce a signature timestamp
 
- 
setSignatureTimestampParametersDescription copied from class:AbstractSerializableSignatureParametersSet the parameters to produce the signature timestamp (Baseline-T)- Overrides:
- setSignatureTimestampParametersin class- AbstractSerializableSignatureParameters<CAdESTimestampParameters>
- Parameters:
- signatureTimestampParameters- the parameters to produce the signature timestamp
 
- 
getArchiveTimestampParametersDescription copied from class:AbstractSerializableSignatureParametersGet the parameters for archive timestamp (Baseline-LTA)- Overrides:
- getArchiveTimestampParametersin class- CAdESSignatureParameters
- Returns:
- the parameters to produce an archive timestamp
 
- 
setArchiveTimestampParametersDescription copied from class:AbstractSerializableSignatureParametersSet the parameters to produce the archive timestamp (Baseline-LTA)- Overrides:
- setArchiveTimestampParametersin class- AbstractSerializableSignatureParameters<CAdESTimestampParameters>
- Parameters:
- archiveTimestampParameters- the parameters to produce the archive timestamp
 
- 
getPdfSignatureCacheDescription copied from interface:PAdESCommonParametersReturns an internal variable, used to cache data in order to accelerate signing process- Specified by:
- getPdfSignatureCachein interface- PAdESCommonParameters
- Returns:
- PdfSignatureCache
 
 
-