Class SignedAppearanceText
- java.lang.Object
-
- com.itextpdf.forms.fields.properties.SignedAppearanceText
-
public class SignedAppearanceText extends java.lang.Object
Class representing the signature text identifying the signer.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isSignDateSet
private java.lang.String
location
Holds value of property location.private java.lang.String
reason
The reason for signing.private java.util.Calendar
signDate
Holds value of property signDate.private java.lang.String
signedBy
The name of the signer from the certificate.
-
Constructor Summary
Constructors Constructor Description SignedAppearanceText()
Creates a newSignedAppearanceText
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
generateDescriptionText()
Generates the signature description text based on the provided parameters.java.lang.String
getLocationLine()
Returns the signing location.java.lang.String
getReasonLine()
Returns the signing reason.java.util.Calendar
getSignDate()
Returns the signature date.java.lang.String
getSignedBy()
Gets the name of the signer from the certificate.SignedAppearanceText
setLocationLine(java.lang.String location)
Sets the signing location.SignedAppearanceText
setReasonLine(java.lang.String reason)
Sets the signing reason.SignedAppearanceText
setSignDate(java.util.Calendar signDate)
Sets the signature date.SignedAppearanceText
setSignedBy(java.lang.String signedBy)
Sets the name of the signer from the certificate.
-
-
-
Field Detail
-
reason
private java.lang.String reason
The reason for signing.
-
location
private java.lang.String location
Holds value of property location.
-
signedBy
private java.lang.String signedBy
The name of the signer from the certificate.
-
signDate
private java.util.Calendar signDate
Holds value of property signDate.
-
isSignDateSet
private boolean isSignDateSet
-
-
Constructor Detail
-
SignedAppearanceText
public SignedAppearanceText()
Creates a newSignedAppearanceText
instance.
-
-
Method Detail
-
getReasonLine
public java.lang.String getReasonLine()
Returns the signing reason.- Returns:
- reason for signing.
-
setReasonLine
public SignedAppearanceText setReasonLine(java.lang.String reason)
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
public java.lang.String getLocationLine()
Returns the signing location.- Returns:
- signing location.
-
setLocationLine
public SignedAppearanceText setLocationLine(java.lang.String location)
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
public SignedAppearanceText setSignedBy(java.lang.String signedBy)
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
public java.lang.String getSignedBy()
Gets the name of the signer from the certificate.- Returns:
- signedBy name of the signer
-
getSignDate
public java.util.Calendar getSignDate()
Returns the signature date.- Returns:
- the signature date
-
setSignDate
public SignedAppearanceText setSignDate(java.util.Calendar signDate)
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
public java.lang.String generateDescriptionText()
Generates the signature description text based on the provided parameters.- Returns:
- signature description
-
-