BasicAuthenticationCredentials Classe

  • java.lang.Object
    • com.microsoft.bot.restclient.credentials.BasicAuthenticationCredentials

Implémente

public class BasicAuthenticationCredentials
implements ServiceClientCredentials

Informations d’identification d’authentification de base à utiliser avec un client de service REST.

Récapitulatif du constructeur

Constructeur Description
BasicAuthenticationCredentials(String withUserName, String withPassword)

Instancie une nouvelle information d’authentification de base.

Résumé de la méthode

Modificateur et type Méthode et description
void applyCredentialsFilter(OkHttpClient.Builder clientBuilder)

Appliquez les informations d’identification au générateur de client HTTP.

protected java.lang.String getPassword()
java.lang.String getUserName()

Méthodes héritées de java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Détails du constructeur

BasicAuthenticationCredentials

public BasicAuthenticationCredentials(String withUserName, String withPassword)

Instancie une nouvelle information d’authentification de base.

Paramètres:

withUserName - nom d’utilisateur d’authentification de base
withPassword - mot de passe d’authentification de base

Détails de la méthode

applyCredentialsFilter

public void applyCredentialsFilter(OkHttpClient.Builder clientBuilder)

Appliquez les informations d’identification au générateur de client HTTP.

Paramètres:

clientBuilder - le constructeur pour la création d’un OkHttpClient

getPassword

protected String getPassword()

Retours:

le mot de passe des informations d’identification

getUserName

public String getUserName()

Retours:

nom d’utilisateur des informations d’identification

S’applique à