C# Class Microsoft.Alm.Authentication.SecretCache

Inheritance: ICredentialStore, ITokenStore
Mostra file Open project: Microsoft/Git-Credential-Manager-for-Windows

Public Properties

Property Type Description
KeyComparer StringComparer

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

DeleteCredentials() public method

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

DeleteToken() public method

Deletes a token from the cache.
public DeleteToken ( TargetUri targetUri ) : void
targetUri TargetUri The key which to find and delete the token with.
return void

ReadCredentials() public method

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
return Credential

ReadToken() public method

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

SecretCache() public method

public SecretCache ( string @namespace, Secret getTargetName = null ) : System
@namespace string
getTargetName Secret
return System

WriteCredentials() public method

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
return void

WriteToken() public method

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.
return void

Property Details

KeyComparer public_oe static_oe property

public static StringComparer KeyComparer
return StringComparer