Class PdfSigner
java.lang.Object
com.codename1.pdf.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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PdfSignatureProviderprovider(PrivateKey key, byte[]... chain) A provider that signs withkey, an RSA or EC private key, and presentschain(DER certificates, the signer's first).static booleanverify(PdfSignatureInfo info) True wheninfois a complete, untouched signature: the digest matches, the certificate is bound to it and the signature verifies against the certificate's key.
-
Method Details
-
provider
A provider that signs withkey, an RSA or EC private key, and presentschain(DER certificates, the signer's first). -
verify
True wheninfois 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.
-