Class: ClaimIssuerService

ClaimIssuerService(backendUrl, appIdopt, appSecretopt)

new ClaimIssuerService(backendUrl, appIdopt, appSecretopt)

A base implementation of the issuer API. Specific issuer APIs will derive from this.
Parameters:
Name Type Attributes Description
backendUrl String The base backend URL
appId String <optional>
Application ID, without this only unauthorized APIs can be used
appSecret String <optional>
Application shared secret, without this only unauthorized APIs can be used
Source:

Methods

deleteAllClaims() → {Promise.<boolean>}

Delete all the claims for the default credential.
Source:
Throws:
Throws Error if request failed
Type
Error
Returns:
Promise returning true if success
Type
Promise.<boolean>

deleteClaims(requestIdString) → {Promise.<boolean>}

Delete the claim(s) for the request identified by the given requestID.
Parameters:
Name Type Description
requestIdString String The requestID that was provided during a prior call to the issuer-specific `requestClaims` API.
Source:
Throws:
Throws Error if request failed
Type
Error
Returns:
Promise returning true if success
Type
Promise.<boolean>

getClaims(requestIdString, pubkeyopt) → {Promise.<Array.<String>>}

Get the claim(s) for the request identified by the given requestID.
Parameters:
Name Type Attributes Description
requestIdString String The requestID that was provided during a prior call to the issuer-specific `issueClaims` API.
pubkey String <optional>
Only issuer needs to provide user's public key to get the claim
Source:
Returns:
Promise containing PEM array
Type
Promise.<Array.<String>>

issueClaims(requestInfo) → {Promise.<boolean>}

Request to issue claims with the specified attributes and optional document images.
Parameters:
Name Type Description
requestInfo RequestInfo The RequestInfo structure.
Source:
Returns:
Promise returning true if success
Type
Promise.<boolean>

requestImageClaims(requestInfo) → {Promise.<boolean>}

Parameters:
Name Type Description
requestInfo RequestInfo The RequestInfo structure.
Deprecated:
  • Use `issueClaims` Request to issue claims with the specified attributes and optional document images.
Source:
Returns:
Promise returning true if success
Type
Promise.<boolean>