Class PdfSigner

java.lang.Object
com.codename1.pdf.PdfSigner

public final class PdfSigner extends Object

Device-side helpers for PDF signatures, over the platform crypto bridge in com.codename1.security.

A server signs with the same PdfSignature API but implements PdfSignatureProvider over the JDK; this class is the client's shortcut.

  • Method Details

    • provider

      public static PdfSignatureProvider provider(PrivateKey key, byte[]... chain)
      A provider that signs with key, an RSA or EC private key, and presents chain (DER certificates, the signer's first).
    • verify

      public static boolean verify(PdfSignatureInfo info)
      True when info is a complete, untouched signature: the digest matches, the certificate is bound to it and the signature verifies against the certificate's key. It says nothing about whether the certificate should be trusted.