Interface SignatureField

All Superinterfaces:
FormField

public non-sealed interface SignatureField extends FormField
Signature Form Field 签名表单字段

Features | 主要功能:

  • Signature status check - 签名状态检查
  • Signer name, date, reason, and location access - 签名者名称、日期、原因和位置访问

Usage Examples | 使用示例:

SignatureField sig = (SignatureField) form.getField("signature1");
if (sig.isSigned()) {
    String signer = sig.getSignerName();
    String date = sig.getSignDate();
}

Security | 安全性:

  • Thread-safe: Depends on implementation - 线程安全: 取决于实现
  • Null-safe: Depends on implementation — getters may return null if not signed - 空值安全: 取决于实现 — 未签名时获取方法可能返回空
Since:
JDK 25, opencode-base-pdf V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Method Details

    • getType

      default FormField.FieldType getType()
      Description copied from interface: FormField
      Gets field type 获取字段类型
      Specified by:
      getType in interface FormField
      Returns:
      field type | 字段类型
    • isSigned

      boolean isSigned()
      Checks if signed 检查是否已签名
      Returns:
      true if signed | 如果已签名返回 true
    • getSignerName

      String getSignerName()
      Gets signer name 获取签名者名称
      Returns:
      signer name, or null if not signed | 签名者名称,如果未签名则返回 null
    • getSignDate

      String getSignDate()
      Gets sign date as string 获取签名日期字符串
      Returns:
      sign date, or null if not signed | 签名日期,如果未签名则返回 null
    • getReason

      String getReason()
      Gets signing reason 获取签名原因
      Returns:
      reason, or null | 原因,或 null
    • getLocation

      String getLocation()
      Gets signing location 获取签名位置
      Returns:
      location, or null | 位置,或 null