This plugin implements a data signing API allowing to login and verify signature.
cordova plugin add neptune-sign-plugin
- Windows*
Errors from native libraries are logged to file 'error.log'. When an error is thrown from plugin wrapper, 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. Last boolean parameter handles detailed signing data information if 'true', and hides it if 'false'. 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]);