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 timestamp -
Constructor Summary
Constructors Constructor Description PAdESTimestampParameters()
PAdESTimestampParameters(CAdESTimestampParameters cadesTimestampParameters)
PAdESTimestampParameters(DigestAlgorithm digestAlgorithm)
-
Method Summary
Modifier and Type Method Description int
getContentSize()
Returns a length of the reserved /Contents attributeString
getFieldId()
Returns a signature/timestampFieldIdString
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 (9472bytes)void
setFieldId(String timestampFieldId)
void
setFilter(String timestampFilter)
void
setImageParameters(SignatureImageParameters timestampImageParameters)
void
setPasswordProtection(String passwordProtection)
Sets a password stringvoid
setSubFilter(String timestampSubFilter)
Methods inherited from class eu.europa.esig.dss.model.TimestampParameters
equals, getDigestAlgorithm, hashCode, setDigestAlgorithm, toString
-
Field Details
-
timestampDate
Date of the timestamp
-
-
Constructor Details
-
PAdESTimestampParameters
public PAdESTimestampParameters() -
PAdESTimestampParameters
-
PAdESTimestampParameters
-
-
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
-
getImageParameters
Description copied from interface:PAdESCommonParameters
ReturnsSignatureImageParameters
for field's visual representation- Specified by:
getImageParameters
in interfacePAdESCommonParameters
- Returns:
SignatureImageParameters
-
setImageParameters
-
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 (9472bytes) -
getSigningDate
Description copied from interface:PAdESCommonParameters
Returns a claimed signing time- Specified by:
getSigningDate
in interfacePAdESCommonParameters
- Returns:
Date
-
getFieldId
Description copied from interface:PAdESCommonParameters
Returns a signature/timestampFieldId- Specified by:
getFieldId
in interfacePAdESCommonParameters
- Returns:
String
field id
-
setFieldId
-
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
-