mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 01:32:34 -05:00
SQL Operations Studio Public Preview 1 (0.23) release source code
This commit is contained in:
22
src/vs/platform/credentials/common/credentials.ts
Normal file
22
src/vs/platform/credentials/common/credentials.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
||||
|
||||
export const ICredentialsService = createDecorator<ICredentialsService>('credentialsService');
|
||||
|
||||
export interface ICredentialsService {
|
||||
|
||||
_serviceBrand: any;
|
||||
|
||||
readSecret(service: string, account: string): TPromise<string | undefined>;
|
||||
|
||||
writeSecret(service: string, account: string, secret: string): TPromise<void>;
|
||||
|
||||
deleteSecret(service: string, account: string): TPromise<boolean>;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user