Skip to main content

Signature with electronic seal

Since version 3.5.0, the plugin can seal the biometric signature online, with the electronic seal of the trust service provider, through the signature server. See Signature types.

1. Configure the server​

Call configureSignatureServer before every signature:

MobbSignAPI.configureSignatureServer(
SIGNATURE_SERVER_HOST,
SIGNATURE_SERVER_AUTHORIZATION,
SIGNATURE_SERVER_CLIENT_ID,
SIGNATURE_SERVER_USER_TOKEN,
onSuccess,
onError,
);
ParameterDescription
SIGNATURE_SERVER_HOSTURL of the signature server.
SIGNATURE_SERVER_AUTHORIZATIONToken that authorises your app to make online signatures.
SIGNATURE_SERVER_CLIENT_IDYour identifier as a MobbSign client.
SIGNATURE_SERVER_USER_TOKENToken of the user, for integrations that require it. Pass "" otherwise.

Mobbeel provides these values for your project.

2. Configure the signature​

Also before every signature, configure the type of the next signature:

const config = new SignatureConfiguration();
config.signatureType = 'BIOMETRIC_WITH_CERTIFICATE';
config.timestampToSignature = true;
MobbSignAPI.configureNextSignature(config, onSuccess, onError);
PropertyDescription
signatureTypeBIOMETRIC_WITH_CERTIFICATE seals the biometric signature online.
timestampToSignatureAdds a timestamp to the signature. Default: false.

Recover a stored document​

If the online signature fails — because of a connection error or a server problem — the document is stored in a local database of the app. The onErrorOccurred listener receives its internalDocumentId.

Load the document again to retry the signature or add more signatures. It is restored with all its signatures, ready to be signed online:

MobbSignAPI.loadPDFDocumentInternallyStored(internalDocumentId, onSuccess, onError);