public static final class

SignatureOptions.Builder

extends Object
java.lang.Object
   ↳ com.pspdfkit.ui.signatures.SignatureOptions.Builder

Class Overview

A helper class used for building the SignatureOptions.

Summary

Public Constructors
Builder()
Public Methods
SignatureOptions build()
Build the SignatureOptions object from the provided properties.
SignatureOptions.Builder defaultSigner(String signerIdentifier)
Defines the default signer to be selected when signing a document.
SignatureOptions.Builder signatureCertificateSelectionMode(SignatureCertificateSelectionMode certificateSelectionMode)
Defines if the user should be able to select certificates for digitally signing a document, when creating a new signature.
SignatureOptions.Builder signaturePickerOrientation(SignaturePickerOrientation orientation)
Sets the orientation to use for the signature picker.
SignatureOptions.Builder signatureSavingStrategy(SignatureSavingStrategy savingStrategy)
Defines if a signature should be saved after creation.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public SignatureOptions build ()

Build the SignatureOptions object from the provided properties.

Returns

public SignatureOptions.Builder defaultSigner (String signerIdentifier)

Defines the default signer to be selected when signing a document.

Parameters
signerIdentifier Identifier string with which the signer was registered in SignatureManager, or null to have no default signer.

public SignatureOptions.Builder signatureCertificateSelectionMode (SignatureCertificateSelectionMode certificateSelectionMode)

Defines if the user should be able to select certificates for digitally signing a document, when creating a new signature. Defaults to IF_AVAILABLE.

Parameters
certificateSelectionMode Signature certificate selection mode to be used.

public SignatureOptions.Builder signaturePickerOrientation (SignaturePickerOrientation orientation)

Sets the orientation to use for the signature picker. Defaults to AUTOMATIC.

Parameters
orientation The orientation to use for the signature picker.

public SignatureOptions.Builder signatureSavingStrategy (SignatureSavingStrategy savingStrategy)

Defines if a signature should be saved after creation. Defaults to SAVE_IF_SELECTED.

Parameters
savingStrategy Signature strategy to apply to saving signatures.