Class SignedAppearanceText
- java.lang.Object
-
- com.itextpdf.forms.fields.properties.SignedAppearanceText
-
public class SignedAppearanceText extends java.lang.ObjectClass representing the signature text identifying the signer.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisSignDateSetprivate java.lang.StringlocationHolds value of property location.private java.lang.StringreasonThe reason for signing.private java.util.CalendarsignDateHolds value of property signDate.private java.lang.StringsignedByThe name of the signer from the certificate.
-
Constructor Summary
Constructors Constructor Description SignedAppearanceText()Creates a newSignedAppearanceTextinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgenerateDescriptionText()Generates the signature description text based on the provided parameters.java.lang.StringgetLocationLine()Returns the signing location.java.lang.StringgetReasonLine()Returns the signing reason.java.util.CalendargetSignDate()Returns the signature date.java.lang.StringgetSignedBy()Gets the name of the signer from the certificate.SignedAppearanceTextsetLocationLine(java.lang.String location)Sets the signing location.SignedAppearanceTextsetReasonLine(java.lang.String reason)Sets the signing reason.SignedAppearanceTextsetSignDate(java.util.Calendar signDate)Sets the signature date.SignedAppearanceTextsetSignedBy(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 newSignedAppearanceTextinstance.
-
-
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#setReasonwill be used.- Parameters:
reason- signing reason.- Returns:
- this same
SignedAppearanceTextinstance.
-
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#setLocationwill be used.- Parameters:
location- new signing location- Returns:
- this same
SignedAppearanceTextinstance
-
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
SignedAppearanceTextinstance
-
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
PdfSignerduring the signing.- Parameters:
signDate- new signature date- Returns:
- this same
SignedAppearanceTextinstance
-
generateDescriptionText
public java.lang.String generateDescriptionText()
Generates the signature description text based on the provided parameters.- Returns:
- signature description
-
-