C# 클래스 Microsoft.Alm.Authentication.SecretStore

Interface to secure secrets storage which indexes values by target and utilizes the operating system keychain / secrets vault.
상속: BaseSecureStore, ICredentialStore, ITokenStore
파일 보기 프로젝트 열기: Microsoft/Git-Credential-Manager-for-Windows 1 사용 예제들

공개 메소드들

메소드 설명
DeleteCredentials ( TargetUri targetUri ) : void

Deletes credentials for target URI from the credential store

DeleteToken ( TargetUri targetUri ) : void

Deletes the token for target URI from the token store

PurgeCredentials ( ) : void

Purges all credentials from the store.

ReadCredentials ( TargetUri targetUri ) : Credential

Reads credentials for a target URI from the credential store

ReadToken ( TargetUri targetUri ) : Token

Reads a token for a target URI from the token store

SecretStore ( string @namespace, ICredentialStore credentialCache = null, ITokenStore tokenCache = null, Secret getTargetName = null ) : System

Creates a new SecretStore backed by the operating system keychain / secrets vault.

WriteCredentials ( TargetUri targetUri, Credential credentials ) : void

Writes credentials for a target URI to the credential store

WriteToken ( TargetUri targetUri, Token token ) : void

Writes a token for a target URI to the token store

보호된 메소드들

메소드 설명
GetTargetName ( TargetUri targetUri ) : string

Formats a TargetName string based on the TargetUri base on the format started by git-credential-winstore

메소드 상세

DeleteCredentials() 공개 메소드

Deletes credentials for target URI from the credential store
public DeleteCredentials ( TargetUri targetUri ) : void
targetUri TargetUri The URI of the target for which credentials are being deleted
리턴 void

DeleteToken() 공개 메소드

Deletes the token for target URI from the token store
public DeleteToken ( TargetUri targetUri ) : void
targetUri TargetUri The URI of the target for which the token is being deleted
리턴 void

GetTargetName() 보호된 메소드

Formats a TargetName string based on the TargetUri base on the format started by git-credential-winstore
protected GetTargetName ( TargetUri targetUri ) : string
targetUri TargetUri Uri of the target
리턴 string

PurgeCredentials() 공개 메소드

Purges all credentials from the store.
public PurgeCredentials ( ) : void
리턴 void

ReadCredentials() 공개 메소드

Reads credentials for a target URI from the credential store
public ReadCredentials ( TargetUri targetUri ) : Credential
targetUri TargetUri The URI of the target for which credentials are being read
리턴 Credential

ReadToken() 공개 메소드

Reads a token for a target URI from the token store
public ReadToken ( TargetUri targetUri ) : Token
targetUri TargetUri The URI of the target for which a token is being read
리턴 Token

SecretStore() 공개 메소드

Creates a new SecretStore backed by the operating system keychain / secrets vault.
public SecretStore ( string @namespace, ICredentialStore credentialCache = null, ITokenStore tokenCache = null, Secret getTargetName = null ) : System
@namespace string
credentialCache ICredentialStore /// (optional) Write-through, read-first cache. Default cache is used if a custom cache is /// not provided. ///
tokenCache ITokenStore /// (optional) Write-through, read-first cache. Default cache is used if a custom cache is /// not provided. ///
getTargetName Secret
리턴 System

WriteCredentials() 공개 메소드

Writes credentials for a target URI to the credential store
public WriteCredentials ( TargetUri targetUri, Credential credentials ) : void
targetUri TargetUri The URI of the target for which credentials are being stored
credentials Credential The credentials to be stored
리턴 void

WriteToken() 공개 메소드

Writes a token for a target URI to the token store
public WriteToken ( TargetUri targetUri, Token token ) : void
targetUri TargetUri The URI of the target for which a token is being stored
token Token The token to be stored
리턴 void