DAS React Native Client

Reference Application for Web

The Web Reference Application for the DAS React Native Client SDK looks like this:

image2022-2-10_9-41-11.png

Click the headings to expand and collapse the different sections to focus on the sections of relevance. Each section prepares for or performs a function with the DAS Client SDK or to the DAS service via the Gateway.

Initialization and Session Management

To create a new Session that can be used in subsequent operations, enter the URL or the contents of the OpVault and click OPEN.  

image2022-2-10_9-45-17.png

Challenge

To obtain the challenge that secures communication with the backend, click GET CHALLENGE.

image2022-2-10_9-48-2.png

Authentication with the Messaging Gateway

The URL of the Gateway and the authorization token along with the previously obtained token are displayed; click AUTHENTICATE to confirm the Device Id and Model are authenticated correctly.

image2022-2-10_9-51-5.png

Secure Key Exchange

Once authorized, click SECURE EXCHANGE to perform key exchange via the Gateway on behalf of the DAS service.

image2022-2-10_15-21-11.png

License import

To import the encrypted session rights obtained from the key exchange, click IMPORT LICENSE.

image2022-2-10_9-51-35.png

Preparing for Encryption

To produce an Initialization Vector to use with the encryption functions, click GENERATE IV.  Enter the characters of the message to be encrypted to turn them into an ArrayBuffer and click STRING TO BUFFER.

  • To obtain the encrypted ArrayBuffer, click ENCRYPT IT.

  • To decrypt it back to the original input, click DECRYPT IT.

image2022-2-10_9-52-39.png

Signature and verification

To generate the signature click SIGN IT, and VERIFY IT to prove the signature is correct.

image2022-2-10_9-53-17.png