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
Modifier and TypeFieldDescriptionprotected PdfSignatureCache
The internal signature processing variableprotected Date
Date of the timestampFields inherited from class eu.europa.esig.dss.model.TimestampParameters
digestAlgorithm
-
Constructor Summary
ConstructorDescriptionEmpty constructorPAdESTimestampParameters
(DigestAlgorithm digestAlgorithm) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns name of an application used to create a signature/timestampint
Returns 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 valueReturnsSignatureImageParameters
for 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 valuevoid
reinit()
This method re-inits signature parameters to clean temporary settingsvoid
setAppName
(String appName) Sets signing application namevoid
setContentSize
(int timestampSize) This setter allows reserving more than the default size for a timestamp Default : 9472 bytesvoid
Sets the filtervoid
setImageParameters
(SignatureImageParameters timestampImageParameters) Sets theSignatureImageParameters
for a visual timestamp creationvoid
setPasswordProtection
(char[] passwordProtection) Sets password to the documentvoid
setSubFilter
(String timestampSubFilter) Sets the sub filterMethods inherited from class eu.europa.esig.dss.model.TimestampParameters
equals, getDigestAlgorithm, hashCode, setDigestAlgorithm, 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
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: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
-
getEncryptionAlgorithm
Description copied from interface:PAdESCommonParameters
Returns a EncryptionAlgorithm to be used to hash the signed/timestamped data- Specified by:
getEncryptionAlgorithm
in interfacePAdESCommonParameters
- Returns:
EncryptionAlgorithm
-
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 timestamp creation- Parameters:
timestampImageParameters
-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 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:PAdESCommonParameters
Returns a claimed signing time- Specified by:
getSigningDate
in interfacePAdESCommonParameters
- Returns:
Date
-
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
-
getDeterministicId
Description copied from interface:PAdESCommonParameters
Returns the deterministic identifier to be used to define a documentId on signing/timestamping, when necessary- Specified by:
getDeterministicId
in interfacePAdESCommonParameters
- Returns:
- the unique ID for the document
-
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
-
reinit
public void reinit()Description copied from interface:PAdESCommonParameters
This method re-inits signature parameters to clean temporary settings- Specified by:
reinit
in interfacePAdESCommonParameters
-