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:
- Serialized Form
-
Field Summary
Fields inherited from class eu.europa.esig.dss.AbstractSignatureParameters
deterministicIdFields inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters
archiveTimestampParameters, contentTimestampParameters, signatureTimestampParameters -
Constructor Summary
Constructors Constructor Description PAdESSignatureParameters() -
Method Summary
Modifier and Type Method Description PAdESTimestampParametersgetArchiveTimestampParameters()Get the parameters for achive timestamp (Baseline-LTA)StringgetContactInfo()Gets the contactInfointgetContentSize()Returns a length of the reserved /Contents attributePAdESTimestampParametersgetContentTimestampParameters()Get the parameters for content timestamp (Baseline-B)StringgetFilter()Returns Filter valueSignatureImageParametersgetImageParameters()ReturnsSignatureImageParametersfor field's visual representationStringgetLocation()Gets locationStringgetPasswordProtection()Returns a password string used to encrypt a documentCertificationPermissiongetPermission()Gets the permission for the PDF document modificationStringgetReason()Gets the reasonPAdESTimestampParametersgetSignatureTimestampParameters()Get the parameters for signature timestamp (Baseline-T)StringgetSignerName()DategetSigningDate()Returns a claimed signing timeStringgetSubFilter()Returns SubFilter valuevoidsetArchiveTimestampParameters(CAdESTimestampParameters archiveTimestampParameters)Set the parameters to produce the archive timestamp (Baseline-LTA)voidsetContactInfo(String contactInfo)Sets the contactInfovoidsetContentSize(int signatureSize)This setter allows to reserve more than the default size for a signature (9472bytes)voidsetContentTimestampParameters(CAdESTimestampParameters contentTimestampParameters)Set the parameters to produce the content timestamp (Baseline-B)voidsetFilter(String signatureFilter)Sets the filtervoidsetImageParameters(SignatureImageParameters signatureImageParameters)Sets theSignatureImageParametersfor a visual signature creationvoidsetLocation(String location)Sets location (The CPU host name or physical location of the signing)voidsetPasswordProtection(String passwordProtection)Sets a password stringvoidsetPermission(CertificationPermission permission)Sets the permission for the PDF document modificationvoidsetReason(String reason)Sets the reasonvoidsetSignatureFieldId(String signatureFieldId)Deprecated.voidsetSignatureLevel(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 signedvoidsetSubFilter(String signatureSubFilter)Sets the sub filterMethods inherited from class eu.europa.esig.dss.cades.CAdESSignatureParameters
getContentHintsDescription, getContentHintsType, getContentIdentifierPrefix, getContentIdentifierSuffix, isEn319122, setContentHintsDescription, setContentHintsType, setContentIdentifierPrefix, setContentIdentifierSuffix, setEn319122Methods inherited from class eu.europa.esig.dss.AbstractSignatureParameters
getCertificateChain, getContentTimestamps, getDetachedContents, getDeterministicId, getSignedData, getSigningCertificate, reinitDeterministicId, setCertificateChain, setCertificateChain, setContentTimestamps, setDetachedContents, setSignedData, setSigningCertificateMethods inherited from class eu.europa.esig.dss.model.AbstractSerializableSignatureParameters
bLevel, equals, getDigestAlgorithm, getEncryptionAlgorithm, getMaskGenerationFunction, getReferenceDigestAlgorithm, getSignatureAlgorithm, getSignatureLevel, getSignaturePackaging, hashCode, isGenerateTBSWithoutCertificate, isSignWithExpiredCertificate, setBLevelParams, setDigestAlgorithm, setEncryptionAlgorithm, setGenerateTBSWithoutCertificate, setMaskGenerationFunction, setReferenceDigestAlgorithm, setSignaturePackaging, setSignWithExpiredCertificate, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.pades.PAdESCommonParameters
getDigestAlgorithm
-
Constructor Details
-
PAdESSignatureParameters
public PAdESSignatureParameters()
-
-
Method Details
-
setSignatureLevel
Description copied from class:AbstractSerializableSignatureParametersSet signature level. This field cannot be null.- Overrides:
setSignatureLevelin classAbstractSerializableSignatureParameters<CAdESTimestampParameters>- Parameters:
signatureLevel- the expected signature level
-
getReason
Gets the reason- Returns:
String
-
setReason
Sets the reason- Parameters:
reason-Stringthe reason to set
-
getContactInfo
Gets the contactInfo- Returns:
String
-
setContactInfo
Sets the contactInfo- Parameters:
contactInfo-String
-
getFilter
Description copied from interface:PAdESCommonParametersReturns Filter value- Specified by:
getFilterin interfacePAdESCommonParameters- Returns:
Stringfilter
-
setFilter
Sets the filter- Parameters:
signatureFilter-String
-
getSubFilter
Description copied from interface:PAdESCommonParametersReturns SubFilter value- Specified by:
getSubFilterin interfacePAdESCommonParameters- Returns:
StringsubFilter
-
setSubFilter
Sets the sub filter- Parameters:
signatureSubFilter-String
-
getSignerName
-
setSignerName
Sets the name of the signed- Parameters:
signerName-String
-
getImageParameters
Description copied from interface:PAdESCommonParametersReturnsSignatureImageParametersfor field's visual representation- Specified by:
getImageParametersin interfacePAdESCommonParameters- Returns:
SignatureImageParameters
-
setImageParameters
Sets theSignatureImageParametersfor a visual signature creation- Parameters:
signatureImageParameters-SignatureImageParameters
-
getLocation
Gets location- Returns:
String
-
setLocation
Sets location (The CPU host name or physical location of the signing)- Parameters:
location-String
-
setSignatureFieldId
Deprecated.The id/name of the signature field which should be signed Deprecated. UsegetImageParameters().getFieldParameters().setSignatureFieldId(signatureFieldId)- Parameters:
signatureFieldId-Stringid of a signature field to be used
-
getContentSize
public int getContentSize()Description copied from interface:PAdESCommonParametersReturns a length of the reserved /Contents attribute- Specified by:
getContentSizein interfacePAdESCommonParameters- Returns:
- int content size
-
setContentSize
public void setContentSize(int signatureSize)This setter allows to reserve more than the default size for a signature (9472bytes)- 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
Description copied from interface:PAdESCommonParametersReturns a password string used to encrypt a document- Specified by:
getPasswordProtectionin interfacePAdESCommonParameters- Returns:
Stringpassword
-
setPasswordProtection
Sets a password string- Parameters:
passwordProtection-Stringpassword to set
-
getSigningDate
Description copied from interface:PAdESCommonParametersReturns a claimed signing time- Specified by:
getSigningDatein interfacePAdESCommonParameters- Returns:
Date
-
getContentTimestampParameters
Description copied from class:AbstractSerializableSignatureParametersGet the parameters for content timestamp (Baseline-B)- Overrides:
getContentTimestampParametersin classCAdESSignatureParameters- Returns:
- the parameters to produce a content timestamp
-
setContentTimestampParameters
Description copied from class:AbstractSerializableSignatureParametersSet the parameters to produce the content timestamp (Baseline-B)- Overrides:
setContentTimestampParametersin classAbstractSerializableSignatureParameters<CAdESTimestampParameters>- Parameters:
contentTimestampParameters- the parameters to produce the content timestamp
-
getSignatureTimestampParameters
Description copied from class:AbstractSerializableSignatureParametersGet the parameters for signature timestamp (Baseline-T)- Overrides:
getSignatureTimestampParametersin classCAdESSignatureParameters- Returns:
- the parameters to produce a signature timestamp
-
setSignatureTimestampParameters
Description copied from class:AbstractSerializableSignatureParametersSet the parameters to produce the signature timestamp (Baseline-T)- Overrides:
setSignatureTimestampParametersin classAbstractSerializableSignatureParameters<CAdESTimestampParameters>- Parameters:
signatureTimestampParameters- the parameters to produce the signature timestamp
-
getArchiveTimestampParameters
Description copied from class:AbstractSerializableSignatureParametersGet the parameters for achive timestamp (Baseline-LTA)- Overrides:
getArchiveTimestampParametersin classCAdESSignatureParameters- Returns:
- the parameters to produce an archive timestamp
-
setArchiveTimestampParameters
Description copied from class:AbstractSerializableSignatureParametersSet the parameters to produce the archive timestamp (Baseline-LTA)- Overrides:
setArchiveTimestampParametersin classAbstractSerializableSignatureParameters<CAdESTimestampParameters>- Parameters:
archiveTimestampParameters- the parameters to produce the archive timestamp
-