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 DatetimestampDateDate 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 intgetContentSize()Returns a length of the reserved /Contents attributeStringgetFilter()Returns Filter valueSignatureImageParametersgetImageParameters()ReturnsSignatureImageParametersfor field's visual representationStringgetPasswordProtection()Returns a password string used to encrypt a documentDategetSigningDate()Returns a claimed signing timeStringgetSubFilter()Returns SubFilter valuevoidsetContentSize(int timestampSize)This setter allows to reserve more than the default size for a timestamp Default : 9472 bytesvoidsetFieldId(String timestampFieldId)Deprecated.voidsetFilter(String timestampFilter)Sets the filtervoidsetImageParameters(SignatureImageParameters timestampImageParameters)Sets theSignatureImageParametersfor a visual timestamp creationvoidsetPasswordProtection(String passwordProtection)Sets a password stringvoidsetSubFilter(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
-
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
Sets the filter- Parameters:
timestampFilter-String
-
getSubFilter
Description copied from interface:PAdESCommonParametersReturns SubFilter value- Specified by:
getSubFilterin interfacePAdESCommonParameters- Returns:
StringsubFilter
-
setSubFilter
Sets the sub filter- Parameters:
timestampSubFilter-String
-
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 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:PAdESCommonParametersReturns a claimed signing time- Specified by:
getSigningDatein 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: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
-