# DVS
# Parameters
-
options
Objectoptions.userId
string ID of the currently logged in useroptions.server
string Server addressoptions.clientId
string Client ID for the registered platform applicationoptions.redirectURI
string Redirect URI for the registered platform applicationoptions.pinPolicy
string Whether to use the same PIN as for authenticationoptions.documentTpl
string Template for displaying the document to be signed. Has access to the properties of the object returned by parseDocumentoptions.parseDocument
function Prepare document data for the document templateoptions.defaultPinMessage
string Default message for the PIN inputoptions.showCloseButton
boolean Will display a close button in the top right corner of the modal overlay if set to trueoptions.showCancelButton
boolean Will display a cancel button in the PIN pad if set to true
# init
Initialize and set up communication for signing
# Parameters
successCb
function () Called after successful initializationerrorCb
function (Error) Called if an error occurs
# sign
Sign a document
# Parameters
-
documentData
Object -
successCb
function (Signature) Called after successful signature creation -
errorCb
function (Error) Called if an error occurs
# hasIdentity
Check if there is an identity for the user ID
# Parameters
successCb
function (Object) Called if there already is an identityerrorCb
function (Error) Called if there isn’t a created identity
# createIdentity
Create a signing identity
# Parameters
successCb
function (Object) Called after successful creation of the identityerrorCb
function (Error) Called if an error occurs
# deleteIdentity
Delete the current signing identity
# Parameters
successCb
function (Object) Called after successful deletion of the identityerrorCb
function (Error) Called if an error occurs
# Signature
Type: Object