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

상속: ICredentialStore, ITokenStore
파일 보기 프로젝트 열기: Microsoft/Git-Credential-Manager-for-Windows

공개 프로퍼티들

프로퍼티 타입 설명
KeyComparer StringComparer

공개 메소드들

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

Deletes a credential from the cache.

DeleteToken ( TargetUri targetUri ) : void

Deletes a token from the cache.

ReadCredentials ( TargetUri targetUri ) : Credential

Reads credentials for a target URI from the credential store

ReadToken ( TargetUri targetUri ) : Token

Gets a token from the cache.

SecretCache ( string @namespace, Secret getTargetName = null ) : System
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 to the cache.

비공개 메소드들

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

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

SecretCache ( ) : System
SecretCache ( ICredentialStore credentialStore ) : System

메소드 상세

DeleteCredentials() 공개 메소드

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

DeleteToken() 공개 메소드

Deletes a token from the cache.
public DeleteToken ( TargetUri targetUri ) : void
targetUri TargetUri The key which to find and delete the token with.
리턴 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() 공개 메소드

Gets a token from the cache.
public ReadToken ( TargetUri targetUri ) : Token
targetUri TargetUri The key which to find the token.
리턴 Token

SecretCache() 공개 메소드

public SecretCache ( string @namespace, Secret getTargetName = null ) : System
@namespace string
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 to the cache.
public WriteToken ( TargetUri targetUri, Token token ) : void
targetUri TargetUri The key which to index the token by.
token Token The token to write to the cache.
리턴 void

프로퍼티 상세

KeyComparer 공개적으로 정적으로 프로퍼티

public static StringComparer KeyComparer
리턴 StringComparer