mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
28 lines
744 B
TypeScript
28 lines
744 B
TypeScript
abstract class KeychainServiceDriverBase {
|
|
|
|
private appId_: string;
|
|
private clientId_: string;
|
|
|
|
public constructor(appId: string, clientId: string) {
|
|
this.appId_ = appId;
|
|
this.clientId_ = clientId;
|
|
}
|
|
|
|
public get appId(): string {
|
|
return this.appId_;
|
|
}
|
|
|
|
public get clientId(): string {
|
|
return this.clientId_;
|
|
}
|
|
|
|
public abstract readonly driverId: string;
|
|
public abstract supported(): Promise<boolean>;
|
|
public abstract setPassword(name: string, password: string): Promise<boolean>;
|
|
public abstract setPassword(name: string, password: string): Promise<boolean>;
|
|
public abstract password(name: string): Promise<string>;
|
|
public abstract deletePassword(name: string): Promise<void>;
|
|
}
|
|
|
|
export default KeychainServiceDriverBase;
|