2020-06-03 18:07:50 +02:00
|
|
|
abstract class KeychainServiceDriverBase {
|
|
|
|
|
2020-11-12 21:13:28 +02:00
|
|
|
private appId_: string;
|
|
|
|
private clientId_: string;
|
2020-06-03 18:07:50 +02:00
|
|
|
|
2020-11-12 21:13:28 +02:00
|
|
|
constructor(appId: string, clientId: string) {
|
2020-06-03 18:07:50 +02:00
|
|
|
this.appId_ = appId;
|
|
|
|
this.clientId_ = clientId;
|
|
|
|
}
|
|
|
|
|
2020-11-12 21:13:28 +02:00
|
|
|
get appId(): string {
|
2020-06-03 18:07:50 +02:00
|
|
|
return this.appId_;
|
|
|
|
}
|
|
|
|
|
2020-11-12 21:13:28 +02:00
|
|
|
get clientId(): string {
|
2020-06-03 18:07:50 +02:00
|
|
|
return this.clientId_;
|
|
|
|
}
|
|
|
|
|
2021-03-15 18:33:42 +02:00
|
|
|
abstract setPassword(name: string, password: string): Promise<boolean>;
|
|
|
|
abstract password(name: string): Promise<string>;
|
|
|
|
abstract deletePassword(name: string): Promise<void>;
|
2020-06-03 18:07:50 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export default KeychainServiceDriverBase;
|