C# Class Microsoft.Alm.Authentication.BasicAuthentication

Facilitates basic authentication using simple username and password schemes.
Inheritance: BaseAuthentication, IAuthentication
Mostra file Open project: Microsoft/Git-Credential-Manager-for-Windows

Public Properties

Property Type Description
NtlmCredentials Credential

Private Properties

Property Type Description

Public Methods

Method Description
AcquireCredentials ( TargetUri targetUri ) : Task

Acquires credentials via the registered callbacks.

BasicAuthentication ( ICredentialStore credentialStore ) : System
BasicAuthentication ( ICredentialStore credentialStore, NtlmSupport ntlmSupport, AcquireCredentialsDelegate acquireCredentialsCallback, AcquireResultDelegate acquireResultCallback ) : System

Creates a new BasicAuthentication object with an underlying credential store.

DeleteCredentials ( TargetUri targetUri ) : void

Deletes a Credential from the storage used by the authentication object.

GetCredentials ( TargetUri targetUri ) : Credential

Gets a Credential from the storage used by the authentication object.

SetCredentials ( TargetUri targetUri, Credential credentials ) : void

Sets a Credential in the storage used by the authentication object.

Method Details

AcquireCredentials() public method

Acquires credentials via the registered callbacks.
public AcquireCredentials ( TargetUri targetUri ) : Task
targetUri TargetUri /// The uniform resource indicator used to uniquely identify the credentials. ///
return Task

BasicAuthentication() public method

public BasicAuthentication ( ICredentialStore credentialStore ) : System
credentialStore ICredentialStore
return System

BasicAuthentication() public method

Creates a new BasicAuthentication object with an underlying credential store.
public BasicAuthentication ( ICredentialStore credentialStore, NtlmSupport ntlmSupport, AcquireCredentialsDelegate acquireCredentialsCallback, AcquireResultDelegate acquireResultCallback ) : System
credentialStore ICredentialStore /// The to delegate to. ///
ntlmSupport NtlmSupport /// The level of NTLM support to be provided by this instance. /// If `` is used, the /// `` and `` /// will be ignored by ``. ///
acquireCredentialsCallback AcquireCredentialsDelegate /// (optional) delegate for acquiring credentials. ///
acquireResultCallback AcquireResultDelegate /// (optional) delegate for notification of acquisition results. ///
return System

DeleteCredentials() public method

Deletes a Credential from the storage used by the authentication object.
public DeleteCredentials ( TargetUri targetUri ) : void
targetUri TargetUri /// The uniform resource indicator used to uniquely identify the credentials. ///
return void

GetCredentials() public method

Gets a Credential from the storage used by the authentication object.
public GetCredentials ( TargetUri targetUri ) : Credential
targetUri TargetUri /// The uniform resource indicator used to uniquely identify the credentials. ///
return Credential

SetCredentials() public method

Sets a Credential in the storage used by the authentication object.
public SetCredentials ( TargetUri targetUri, Credential credentials ) : void
targetUri TargetUri /// The uniform resource indicator used to uniquely identify the credentials. ///
credentials Credential The value to be stored.
return void

Property Details

NtlmCredentials public_oe static_oe property

public static Credential,Microsoft.Alm.Authentication NtlmCredentials
return Credential