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
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected Date
timestampDate
Date of the timestampFields inherited from class eu.europa.esig.dss.model.TimestampParameters
digestAlgorithm
-
Constructor Summary
Constructors Constructor Description PAdESTimestampParameters()
Empty constructorPAdESTimestampParameters(DigestAlgorithm digestAlgorithm)
Default constructor -
Method Summary
Modifier and Type Method Description int
getContentSize()
Returns a length of the reserved /Contents attributeString
getFilter()
Returns Filter valueSignatureImageParameters
getImageParameters()
ReturnsSignatureImageParameters
for field's visual representationString
getPasswordProtection()
Returns a password string used to encrypt a documentDate
getSigningDate()
Returns a claimed signing timeString
getSubFilter()
Returns SubFilter valuevoid
setContentSize(int timestampSize)
This setter allows to reserve more than the default size for a timestamp Default : 9472 bytesvoid
setFieldId(String timestampFieldId)
Deprecated.void
setFilter(String timestampFilter)
Sets the filtervoid
setImageParameters(SignatureImageParameters timestampImageParameters)
Sets theSignatureImageParameters
for a visual timestamp creationvoid
setPasswordProtection(String passwordProtection)
Sets a password stringvoid
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
-
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
Sets the filter- Parameters:
timestampFilter
-String
-
getSubFilter
Description copied from interface:PAdESCommonParameters
Returns SubFilter value- Specified by:
getSubFilter
in interfacePAdESCommonParameters
- Returns:
String
subFilter
-
setSubFilter
Sets the sub filter- Parameters:
timestampSubFilter
-String
-
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 to reserve 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
-
setFieldId
Deprecated.Sets signature field id where the timestamp will be placed on Deprecated. UsegetImageParameters().getFieldParameters().setFieldId()
- Parameters:
timestampFieldId
-String
-
getPasswordProtection
Description copied from interface:PAdESCommonParameters
Returns a password string used to encrypt a document- Specified by:
getPasswordProtection
in interfacePAdESCommonParameters
- Returns:
String
password
-
setPasswordProtection
Sets a password string- Parameters:
passwordProtection
-String
password to set
-