import BrowserCryptoEngine from 'token-io/src/security/engines/BrowserCryptoEngine.js'
BrowserCryptoEngine
Extends:
Static Method Summary
Static Public Methods | ||
public static |
async clearAllKeys(): * |
|
public static |
getActiveMemberId(): * |
|
public static |
setActiveMemberId(memberId: *) |
Constructor Summary
Public Constructor | ||
public |
constructor(memberId: string) Constructs the engine, using an existing member/keys if it is in localStorage |
Inherited Summary
From class KeyStoreCryptoEngine | ||
private |
_keystore: * |
|
private |
_memberId: * |
|
public |
async createSigner(level: string): Object Create a signer. |
|
public |
async createVerifier(keyId: string): Object Create a verifier. |
|
public |
async generateKey(level: string, expirationMs: number): Object Generate a key pair and store it. |
Static Public Methods
public static setActiveMemberId(memberId: *) source
Params:
Name | Type | Attribute | Description |
memberId | * |
Public Constructors
public constructor(memberId: string) source
Constructs the engine, using an existing member/keys if it is in localStorage
Override:
KeyStoreCryptoEngine#constructorParams:
Name | Type | Attribute | Description |
memberId | string | memberId of the member we want to create the engine for |