Class SignedAppearanceText
java.lang.Object
com.itextpdf.forms.fields.properties.SignedAppearanceText
Class representing the signature text identifying the signer.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGenerates the signature description text based on the provided parameters.Returns the signing location.Returns the signing reason.Returns the signature date.Gets the name of the signer from the certificate.setLocationLine
(String location) Sets the signing location.setReasonLine
(String reason) Sets the signing reason.setSignDate
(Calendar signDate) Sets the signature date.setSignedBy
(String signedBy) Sets the name of the signer from the certificate.
-
Constructor Details
-
SignedAppearanceText
public SignedAppearanceText()Creates a newSignedAppearanceText
instance.
-
-
Method Details
-
getReasonLine
Returns the signing reason.- Returns:
- reason for signing.
-
setReasonLine
Sets the signing reason.Note, that this reason won't be passed to the signature dictionary. If none is set, value set by
PdfSigner#setReason
will be used.- Parameters:
-
reason
- signing reason. - Returns:
-
this same
SignedAppearanceText
instance.
-
getLocationLine
Returns the signing location.- Returns:
- signing location.
-
setLocationLine
Sets the signing location.Note, that this location won't be passed to the signature dictionary. If none is set, value set by
PdfSigner#setLocation
will be used.- Parameters:
-
location
- new signing location - Returns:
-
this same
SignedAppearanceText
instance
-
setSignedBy
Sets the name of the signer from the certificate.Note, that the signer name will be replaced by the one from the signing certificate during the actual signing.
- Parameters:
-
signedBy
- name of the signer - Returns:
-
this same
SignedAppearanceText
instance
-
getSignedBy
Gets the name of the signer from the certificate.- Returns:
- signedBy name of the signer
-
getSignDate
Returns the signature date.- Returns:
- the signature date
-
setSignDate
Sets the signature date.Note, that the signing date will be replaced by the one from the
PdfSigner
during the signing.- Parameters:
-
signDate
- new signature date - Returns:
-
this same
SignedAppearanceText
instance
-
generateDescriptionText
Generates the signature description text based on the provided parameters.- Returns:
- signature description
-