C# Класс Microsoft.Alm.Authentication.BasicAuthentication

Facilitates basic authentication using simple username and password schemes.
Наследование: BaseAuthentication, IAuthentication
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
NtlmCredentials Credential

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Описание методов

AcquireCredentials() публичный Метод

Acquires credentials via the registered callbacks.
public AcquireCredentials ( TargetUri targetUri ) : Task
targetUri TargetUri /// The uniform resource indicator used to uniquely identify the credentials. ///
Результат Task

BasicAuthentication() публичный Метод

public BasicAuthentication ( ICredentialStore credentialStore ) : System
credentialStore ICredentialStore
Результат System

BasicAuthentication() публичный Метод

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. ///
Результат System

DeleteCredentials() публичный Метод

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. ///
Результат void

GetCredentials() публичный Метод

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. ///
Результат Credential

SetCredentials() публичный Метод

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.
Результат void

Описание свойств

NtlmCredentials публичное статическое свойство

public static Credential,Microsoft.Alm.Authentication NtlmCredentials
Результат Credential