Package com.pspdfkit.signatures
Object SigningManager
-
- All Implemented Interfaces:
public class SigningManager
SigningManager provides a public API to digitally sign documents with either PAdES advanced digital signatures or basic CMS signatures (see DigitalSignatureType)
Use TrustedKeyStore to add trusted certificates for signature validation.
-
-
Field Summary
Fields Modifier and Type Field Description public final static SigningManager
INSTANCE
-
Method Summary
Modifier and Type Method Description final Unit
signDocument(Context context, SignerOptions signerOptions, SuspendFunction2<ByteArray, String, ByteArray> customSigning, Function1<Throwable, Unit> onFailure, Function0<Unit> onSuccess)
signDocument provides functionality to insert a digital signature in a document final Unit
signDocument(Context context, SignerOptions signerOptions, DigitalSignatureType type, SuspendFunction2<ByteArray, String, ByteArray> customSigning, Function1<Throwable, Unit> onFailure, Function0<Unit> onSuccess)
signDocument provides functionality to insert a digital signature in a document -
-
Method Detail
-
signDocument
final Unit signDocument(Context context, SignerOptions signerOptions, SuspendFunction2<ByteArray, String, ByteArray> customSigning, Function1<Throwable, Unit> onFailure, Function0<Unit> onSuccess)
signDocument provides functionality to insert a digital signature in a document
- Parameters:
signerOptions
- contains various configurations needed for the signing.customSigning
- if you want custom signing behaviour, add it here.onFailure
- is called when any exception is thrownonSuccess
- provides a callback where customer can use com.pspdfkit.signatures.SignerOptions.outputDataProvider as a result param.
-
signDocument
@Deprecated(message = "Since 2024.4. `Type` is set via SignerOptions.", replaceWith = @ReplaceWith(imports = {}, expression = "signDocument(Context, SignerOptions, (suspend (ByteArray, String) -> ByteArray)?, (Throwable) -> Unit,() -> Unit)")) final Unit signDocument(Context context, SignerOptions signerOptions, DigitalSignatureType type, SuspendFunction2<ByteArray, String, ByteArray> customSigning, Function1<Throwable, Unit> onFailure, Function0<Unit> onSuccess)
signDocument provides functionality to insert a digital signature in a document
- Parameters:
signerOptions
- contains various configurations needed for the signing.type
- can be either BASIC or CADES (default) (unused - use SignerOptions.type instead).customSigning
- if you want custom signing behaviour, add it here.onFailure
- is called when any exception is thrownonSuccess
- provides a callback where customer can use com.pspdfkit.signatures.SignerOptions.outputDataProvider as a result param.
-
-
-
-