C# Class Microsoft.Alm.Authentication.SecretCache

Inheritance: ICredentialStore, ITokenStore
Afficher le fichier Open project: Microsoft/Git-Credential-Manager-for-Windows

Méthodes publiques

Свойство Type Description
KeyComparer StringComparer

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

DeleteToken() public méthode

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

ReadCredentials() public méthode

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
Résultat Credential

ReadToken() public méthode

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

SecretCache() public méthode

public SecretCache ( string @namespace, Secret getTargetName = null ) : System
@namespace string
getTargetName Secret
Résultat System

WriteCredentials() public méthode

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
Résultat void

WriteToken() public méthode

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.
Résultat void

Property Details

KeyComparer public_oe static_oe property

public static StringComparer KeyComparer
Résultat StringComparer