Class SignedAppearanceText

java.lang.Object
com.itextpdf.forms.fields.properties.SignedAppearanceText

public class SignedAppearanceText extends Object
Class representing the signature text identifying the signer.
  • Constructor Details

  • Method Details

    • getReasonLine

      public String getReasonLine()
      Returns the signing reason.
      Returns:
      reason for signing.
    • setReasonLine

      public SignedAppearanceText setReasonLine (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 String getLocationLine()
      Returns the signing location.
      Returns:
      signing location.
    • setLocationLine

      public SignedAppearanceText setLocationLine (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 (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 String getSignedBy()
      Gets the name of the signer from the certificate.
      Returns:
      signedBy name of the signer
    • getSignDate

      public Calendar getSignDate()
      Returns the signature date.
      Returns:
      the signature date
    • setSignDate

      public SignedAppearanceText setSignDate (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 String generateDescriptionText()
      Generates the signature description text based on the provided parameters.
      Returns:
      signature description