Package eu.europa.esig.dss.pades
Class PAdESSignatureParameters
java.lang.Object
eu.europa.esig.dss.model.AbstractSerializableSignatureParameters<CAdESTimestampParameters>
eu.europa.esig.dss.signature.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 Summary
Fields inherited from class eu.europa.esig.dss.signature.AbstractSignatureParameters
context
Fields inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters
archiveTimestampParameters, contentTimestampParameters, signatureTimestampParameters
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with default parameters -
Method Summary
Modifier and TypeMethodDescriptionReturns name of an application used to create a signature/timestampGet the parameters for archive timestamp (Baseline-LTA)Gets the contactInfoint
Returns a length of the reserved /Contents attributeGet the parameters for content timestamp (Baseline-B)Gets the signature creation context (internal variable)Returns Filter valueReturnsSignatureImageParameters
for 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 valueboolean
Returns whether the VRI dictionary should be included to the PAdES Signature on extension within LT-level revision (DSS revision)void
setAppName
(String appName) Sets signing application namevoid
setArchiveTimestampParameters
(CAdESTimestampParameters archiveTimestampParameters) Set the parameters to produce the archive timestamp (Baseline-LTA)void
setContactInfo
(String contactInfo) Sets the contactInfovoid
setContentSize
(int signatureSize) This setter defines an amount of bytes to be reserved for a CMS signature contents encapsulation Default : 9472 bytesvoid
setContentTimestampParameters
(CAdESTimestampParameters contentTimestampParameters) Set the parameters to produce the content timestamp (Baseline-B)void
Sets the filtervoid
setImageParameters
(SignatureImageParameters signatureImageParameters) Sets theSignatureImageParameters
for a visual signature creationvoid
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)void
setLocation
(String location) Sets location (The CPU host name or physical location of the signing)void
setPasswordProtection
(char[] passwordProtection) Sets password to the documentvoid
setPermission
(CertificationPermission permission) Sets the permission for the PDF document modificationvoid
Sets the reasonvoid
setSignatureLevel
(SignatureLevel signatureLevel) Set signature level.void
setSignatureTimestampParameters
(CAdESTimestampParameters signatureTimestampParameters) Set the parameters to produce the signature timestamp (Baseline-T)void
setSignerName
(String signerName) Sets the name of the signedvoid
setSigningTimeZone
(TimeZone signingTimeZone) Sets a TimeZone to use for signature creation.void
setSubFilter
(String signatureSubFilter) Sets the sub filterMethods inherited from class eu.europa.esig.dss.cades.CAdESSignatureParameters
getContentHintsDescription, getContentHintsType, getContentIdentifierPrefix, getContentIdentifierSuffix, isEn319122, setContentHintsDescription, setContentHintsType, setContentIdentifierPrefix, setContentIdentifierSuffix, setEn319122
Methods inherited from class eu.europa.esig.dss.signature.AbstractSignatureParameters
getCertificateChain, getContentTimestamps, getDetachedContents, getDeterministicId, getSignedData, getSigningCertificate, reinit, setCertificateChain, setCertificateChain, setContentTimestamps, setDetachedContents, setSignedData, setSigningCertificate
Methods inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters
bLevel, equals, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getReferenceDigestAlgorithm, getSignatureAlgorithm, getSignatureLevel, getSignaturePackaging, hashCode, isCheckCertificateRevocation, isGenerateTBSWithoutCertificate, isSignWithExpiredCertificate, isSignWithNotYetValidCertificate, setBLevelParams, setCheckCertificateRevocation, setDigestAlgorithm, setEncryptionAlgorithm, setGenerateTBSWithoutCertificate, setMaskGenerationFunction, setReferenceDigestAlgorithm, setSignaturePackaging, setSignWithExpiredCertificate, setSignWithNotYetValidCertificate, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.pades.PAdESCommonParameters
getDeterministicId, getDigestAlgorithm, getEncryptionAlgorithm, reinit
-
Constructor Details
-
PAdESSignatureParameters
public PAdESSignatureParameters()Default constructor instantiating object with default parameters
-
-
Method Details
-
setSignatureLevel
Description copied from class:AbstractSerializableSignatureParameters
Set signature level. This field cannot be null.- Overrides:
setSignatureLevel
in classAbstractSerializableSignatureParameters<CAdESTimestampParameters>
- Parameters:
signatureLevel
- the expected signature level
-
getReason
-
setReason
-
getContactInfo
-
setContactInfo
-
getLocation
-
setLocation
-
getSignerName
-
setSignerName
-
getFilter
Description copied from interface:PAdESCommonParameters
Returns Filter value- Specified by:
getFilter
in interfacePAdESCommonParameters
- Returns:
String
filter
-
setFilter
-
getSubFilter
Description copied from interface:PAdESCommonParameters
Returns SubFilter value- Specified by:
getSubFilter
in interfacePAdESCommonParameters
- Returns:
String
subFilter
-
setSubFilter
-
getAppName
Description copied from interface:PAdESCommonParameters
Returns name of an application used to create a signature/timestamp- Specified by:
getAppName
in interfacePAdESCommonParameters
- Returns:
String
-
setAppName
-
getContext
Description copied from class:AbstractSignatureParameters
Gets the signature creation context (internal variable)- Overrides:
getContext
in classAbstractSignatureParameters<CAdESTimestampParameters>
- Returns:
ProfileParameters
-
getImageParameters
Description copied from interface:PAdESCommonParameters
ReturnsSignatureImageParameters
for field's visual representation- Specified by:
getImageParameters
in interfacePAdESCommonParameters
- Returns:
SignatureImageParameters
-
setImageParameters
Sets theSignatureImageParameters
for a visual signature creation- Parameters:
signatureImageParameters
-SignatureImageParameters
-
getContentSize
public int getContentSize()Description copied from interface:PAdESCommonParameters
Returns a length of the reserved /Contents attribute- Specified by:
getContentSize
in interfacePAdESCommonParameters
- Returns:
- int content size
-
setContentSize
public 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
-
getPermission
Gets the permission for the PDF document modification- Returns:
CertificationPermission
-
setPermission
Sets the permission for the PDF document modification- Parameters:
permission
-CertificationPermission
-
getPasswordProtection
public char[] getPasswordProtection()Description copied from interface:PAdESCommonParameters
Returns a password used to encrypt a document- Specified by:
getPasswordProtection
in interfacePAdESCommonParameters
- Returns:
- char array representing a password string
-
setPasswordProtection
public void setPasswordProtection(char[] passwordProtection) Sets password to the document- Parameters:
passwordProtection
- char array representing a password of the document
-
getSigningDate
Description copied from interface:PAdESCommonParameters
Returns a claimed signing time- Specified by:
getSigningDate
in interfacePAdESCommonParameters
- Returns:
Date
-
setSigningTimeZone
-
getSigningTimeZone
-
isIncludeVRIDictionary
public 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
-
setIncludeVRIDictionary
public 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
-
getContentTimestampParameters
Description copied from class:AbstractSerializableSignatureParameters
Get the parameters for content timestamp (Baseline-B)- Overrides:
getContentTimestampParameters
in classCAdESSignatureParameters
- Returns:
- the parameters to produce a content timestamp
-
setContentTimestampParameters
Description copied from class:AbstractSerializableSignatureParameters
Set the parameters to produce the content timestamp (Baseline-B)- Overrides:
setContentTimestampParameters
in classAbstractSerializableSignatureParameters<CAdESTimestampParameters>
- Parameters:
contentTimestampParameters
- the parameters to produce the content timestamp
-
getSignatureTimestampParameters
Description copied from class:AbstractSerializableSignatureParameters
Get the parameters for signature timestamp (Baseline-T)- Overrides:
getSignatureTimestampParameters
in classCAdESSignatureParameters
- Returns:
- the parameters to produce a signature timestamp
-
setSignatureTimestampParameters
Description copied from class:AbstractSerializableSignatureParameters
Set the parameters to produce the signature timestamp (Baseline-T)- Overrides:
setSignatureTimestampParameters
in classAbstractSerializableSignatureParameters<CAdESTimestampParameters>
- Parameters:
signatureTimestampParameters
- the parameters to produce the signature timestamp
-
getArchiveTimestampParameters
Description copied from class:AbstractSerializableSignatureParameters
Get the parameters for archive timestamp (Baseline-LTA)- Overrides:
getArchiveTimestampParameters
in classCAdESSignatureParameters
- Returns:
- the parameters to produce an archive timestamp
-
setArchiveTimestampParameters
Description copied from class:AbstractSerializableSignatureParameters
Set the parameters to produce the archive timestamp (Baseline-LTA)- Overrides:
setArchiveTimestampParameters
in classAbstractSerializableSignatureParameters<CAdESTimestampParameters>
- Parameters:
archiveTimestampParameters
- the parameters to produce the archive timestamp
-
getPdfSignatureCache
Description copied from interface:PAdESCommonParameters
Returns an internal variable, used to cache data in order to accelerate signing process- Specified by:
getPdfSignatureCache
in interfacePAdESCommonParameters
- Returns:
PdfSignatureCache
-