11.4 SDK

BSN provides a Java version SDK, which implements signature, verification, communication and other methods, so Java developers can quickly make API calls through the SDK.

1. Steps to Use

1) Download the SDK source code and compile and package it as a jar named did-sdk-1.0.jar;

2) Add the did-sdk-1.0.jar to the classpath directory of the project project;

3) Create an instance of DidClient:

  DidClient didClient = new DidClient(URL,PROJECTID,TOKEN);

4) Call the method in the SDK, as follows:

  DidDataWrapper didData = didClient.createDid(true);

2. Specifications

  • Timestamp

    The format of the time is a string in the form of yyyy-MM-dd HH:mm:ss, for example: 2021-05-25 12:30:59 means May 25, 2021 at 12:30:59.

  • Exception

    A runtime exception “RuntimeException" is thrown when there is a runtime error.

3. Function Description

The methods in the SDK can be divided into four categories according to their functional properties: DID, issuer, credential and privacy area, and each method is described below.

© 2019-2021 Red Date (Hong Kong) Technology Limited. all right reserved,powered by GitbookFile Modify: 2022-05-05 16:00:00

results matching ""

    No results matching ""

    results matching ""

      No results matching ""