Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public final class PdfSigner
- Object
- PdfSigner
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.
Methods
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). |
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. |
Inherited methods
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.