title | description |
---|---|
SignPlugin |
Sign data, login and verify signature. |
This plugin implements a data signing API allowing to login and verify signature.
cordova plugin add neptune-sign-plugin
- Windows*
When an error is thrown, one of these messages will be used:
ERRORS |
---|
Unable to sign data. No result from method call |
Unable to sign data. Inner exception on sign data operation |
Unable to login. No result from method call |
Unable to login. Inner exception on login operation |
Unable to verify signature. No result from method call |
Unable to verify signature. Inner exception on verify signature operation |
The File plugin allows you to sign data. On success it creates 'signed.sgn' file with data signature. The code snippets in this section demonstrate this task:
cordova.plugins.SignPlugin.signPIV(success, errorstop, [signer, datatosign, true]);
The File plugin allows you to sign data. On success it creates 'login.sgn' file. The code snippets in this section demonstrate this task:
cordova.plugins.SignPlugin.loginPIV(success, errorstop, [signer]);
The File plugin allows you to verify signed data. On success it creates 'result.vrf' file with 'true' or 'false' as result inside. The code snippets in this section demonstrate this task:
cordova.plugins.SignPlugin.verifyPIV(success, errorstop, [signer, signeddata, signature]);