mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 17:23:05 -05:00
20 lines
971 B
TypeScript
20 lines
971 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
|
|
|
export const ICredentialsService = createDecorator<ICredentialsService>('ICredentialsService');
|
|
|
|
export interface ICredentialsService {
|
|
|
|
_serviceBrand: undefined;
|
|
|
|
getPassword(service: string, account: string): Promise<string | null>;
|
|
setPassword(service: string, account: string, password: string): Promise<void>;
|
|
deletePassword(service: string, account: string): Promise<boolean>;
|
|
findPassword(service: string): Promise<string | null>;
|
|
findCredentials(service: string): Promise<Array<{ account: string, password: string }>>;
|
|
}
|