Truststore API
This module is still in BETA (3.8.0)
Sample code uses ES6 language features such as arrow functions and promises. For compatibility with IE11, code written with these features must be either transpiled using tools like Babel or refactored accordingly using callbacks.
Introduction
TBD
Interface
Models
All model information can be found in the Token typings model page
Get Truststore container object
Initialise a Trust1Connector client:
Get the container service:
Call a function for the container:
Certificates
Exposes all the certificates publicly available on the store.
this has the capabilities to return multiple certificates if the store has multiple of any type.
Fetching Certificate information
Below you can find all the functions to retrieve a specific type of certificates
Response:
You can also fetch all the certificates, separated by type, at once
Sign Data
On MacOS it is not possible to provide a pin yet, this will be resolved in a later version
Truststore pop-up for mac will open a session on the Keychain
To get the certificates necessary for signature validation in your back-end:
Sign Hash
When the web or native application is responsible for showing the password input, the following request is used to sign a given hash:
Response is a base64 encoded signed hash:
Authenticate Data
On MacOS it is not possible to provide a pin yet, this will be resolved in a later version
Truststore pop-up for mac will open a session on the Keychain
To get the certificates necessary for signature validation in your back-end:
Authenticate Hash
When the web or native application is responsible for showing the password input, the following request is used to sign a given hash:
Response is a base64 encoded signed hash:
Bulk Signing
Bulk signing is not active yet for Truststore, this will be released in a later update.
It is possible to bulk sign data without having to re-enter the PIN by adding an optional bulk
parameter set to true
to the request. Subsequent sign requests will not require the PIN to be re-entered until a request with bulk
being set to false
is sent, or the Bulk Sign Reset method is called.
When using bulk signing, great care must be taken to validate that the first signature request was successful prior to sending subsequent requests. Failing to do this will likely result in the card being blocked.
Bulk PIN Reset
The PIN set for bulk signing can be reset by calling this method.
Response will look like:
Verify PIN
This is not available on MacOS, will be implemented in a later update
Verify PIN without pin-pad
When the web or native application is responsible for showing the password input, the following request is used to verify a card holder PIN:
Response:
Last updated