Package eu.europa.esig.dss.pades
Class PAdESTimestampParameters
java.lang.Object
eu.europa.esig.dss.model.TimestampParameters
eu.europa.esig.dss.cades.signature.CAdESTimestampParameters
eu.europa.esig.dss.pades.PAdESTimestampParameters
- All Implemented Interfaces:
SerializableTimestampParameters,PAdESCommonParameters,Serializable
public class PAdESTimestampParameters
extends CAdESTimestampParameters
implements PAdESCommonParameters
Parameters for a PAdES timestamp creation
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PdfSignatureCacheThe internal signature processing variableprotected DateDate of the timestampFields inherited from class eu.europa.esig.dss.model.TimestampParameters
digestAlgorithm -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructorPAdESTimestampParameters(DigestAlgorithm digestAlgorithm) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns name of an application used to create a signature/timestampintReturns a length of the reserved /Contents attributeReturns the deterministic identifier to be used to define a documentId on signing/timestamping, when necessaryReturns a EncryptionAlgorithm to be used to hash the signed/timestamped dataReturns Filter valueReturnsSignatureImageParametersfor field's visual representationchar[]Returns a password used to encrypt a documentReturns an internal variable, used to cache data in order to accelerate signing processReturns a claimed signing timeReturns SubFilter valuevoidreinit()This method re-inits signature parameters to clean temporary settingsvoidsetAppName(String appName) Sets signing application namevoidsetContentSize(int timestampSize) This setter allows reserving more than the default size for a timestamp Default : 9472 bytesvoidSets the filtervoidsetImageParameters(SignatureImageParameters timestampImageParameters) Sets theSignatureImageParametersfor a visual timestamp creationvoidsetPasswordProtection(char[] passwordProtection) Sets password to the documentvoidsetSubFilter(String timestampSubFilter) Sets the sub filterMethods inherited from class eu.europa.esig.dss.model.TimestampParameters
equals, getDigestAlgorithm, hashCode, setDigestAlgorithm, 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
-
Field Details
-
pdfSignatureCache
The internal signature processing variable -
timestampDate
Date of the timestamp
-
-
Constructor Details
-
PAdESTimestampParameters
public PAdESTimestampParameters()Empty constructor -
PAdESTimestampParameters
Default constructor- Parameters:
digestAlgorithm-DigestAlgorithm
-
-
Method Details
-
getFilter
Description copied from interface:PAdESCommonParametersReturns Filter value- Specified by:
getFilterin interfacePAdESCommonParameters- Returns:
Stringfilter
-
setFilter
-
getSubFilter
Description copied from interface:PAdESCommonParametersReturns SubFilter value- Specified by:
getSubFilterin interfacePAdESCommonParameters- Returns:
StringsubFilter
-
setSubFilter
-
getAppName
Description copied from interface:PAdESCommonParametersReturns name of an application used to create a signature/timestamp- Specified by:
getAppNamein interfacePAdESCommonParameters- Returns:
String
-
setAppName
-
getEncryptionAlgorithm
Description copied from interface:PAdESCommonParametersReturns a EncryptionAlgorithm to be used to hash the signed/timestamped data- Specified by:
getEncryptionAlgorithmin interfacePAdESCommonParameters- Returns:
EncryptionAlgorithm
-
getImageParameters
Description copied from interface:PAdESCommonParametersReturnsSignatureImageParametersfor field's visual representation- Specified by:
getImageParametersin interfacePAdESCommonParameters- Returns:
SignatureImageParameters
-
setImageParameters
Sets theSignatureImageParametersfor a visual timestamp creation- Parameters:
timestampImageParameters-SignatureImageParameters
-
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 timestampSize) This setter allows reserving more than the default size for a timestamp Default : 9472 bytes- Parameters:
timestampSize- representing the reserved space for /Context element
-
getSigningDate
Description copied from interface:PAdESCommonParametersReturns a claimed signing time- Specified by:
getSigningDatein interfacePAdESCommonParameters- Returns:
Date
-
getPasswordProtection
public char[] getPasswordProtection()Description copied from interface:PAdESCommonParametersReturns a password used to encrypt a document- Specified by:
getPasswordProtectionin 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
-
getDeterministicId
Description copied from interface:PAdESCommonParametersReturns the deterministic identifier to be used to define a documentId on signing/timestamping, when necessary- Specified by:
getDeterministicIdin interfacePAdESCommonParameters- Returns:
- the unique ID for the document
-
getPdfSignatureCache
Description copied from interface:PAdESCommonParametersReturns an internal variable, used to cache data in order to accelerate signing process- Specified by:
getPdfSignatureCachein interfacePAdESCommonParameters- Returns:
PdfSignatureCache
-
reinit
public void reinit()Description copied from interface:PAdESCommonParametersThis method re-inits signature parameters to clean temporary settings- Specified by:
reinitin interfacePAdESCommonParameters
-