Interface KeyStoreService
interface KeyStoreService { deletePassword(service,
account): Promise<boolean>; findCredentials(service): Promise<{ account: string; password: string; }[]>; findPassword(service): Promise<undefined | string>; getPassword(service,
account): Promise<undefined | string>; setPassword(service,
account,
password): Promise<void>; } Methods
deletePassword
- deletePassword(service, account): Promise<boolean>
Parameters
- service: string
- account: string
Returns Promise<boolean>
findCredentials
- findCredentials(service): Promise<{
account: string;
password: string;
}[]> Returns Promise<{
account: string;
password: string;
}[]>
findPassword
- findPassword(service): Promise<undefined | string>
Returns Promise<undefined | string>
getPassword
- getPassword(service, account): Promise<undefined | string>
Parameters
- service: string
- account: string
Returns Promise<undefined | string>
setPassword
- setPassword(service, account, password): Promise<void>
Parameters
- service: string
- account: string
- password: string
Returns Promise<void>