import UnsecuredFileKeyStore from '@token-io/tpp/src/security/engines/UnsecuredFileKeyStore.js'
UnsecuredFileKeyStore
Static Method Summary
Static Public Methods | ||
public static |
Get the ID of the most recently active member. |
|
public static |
setActiveMemberId(memberId: string) Keep track of the ID of the most recently active member. |
|
public static |
setDirRoot(dirRoot: *) |
Method Summary
Public Methods | ||
public |
Look up a key by memberId and keyId. |
|
public |
async getByLevel(memberId: string, level: string): Object Look up a key by memberId and level. |
|
public |
Return list of member's keys. |
|
public |
Store a key pair. |
Private Methods | ||
private |
async _loadMember(memberId: string): Object Load a member's keys. |
|
private |
async _saveMember(memberId: string, member: Object) Save a member's keys. |
Static Public Methods
public static setActiveMemberId(memberId: string) source
Keep track of the ID of the most recently active member.
Params:
Name | Type | Attribute | Description |
memberId | string | ID of member |
public static setDirRoot(dirRoot: *) source
Params:
Name | Type | Attribute | Description |
dirRoot | * |
Public Methods
public async getById(memberId: string, keyId: string): Object source
Look up a key by memberId and keyId.
public async getByLevel(memberId: string, level: string): Object source
Look up a key by memberId and level.
public async listKeys(memberId: string): Object source
Return list of member's keys.
Params:
Name | Type | Attribute | Description |
memberId | string | ID of member |