AppCredentialsInterceptor Classe

  • java.lang.Object
    • com.microsoft.bot.connector.authentication.AppCredentialsInterceptor

Implémente

okhttp3. de l’intercepteur

public class AppCredentialsInterceptor
implements okhttp3.Interceptor

Filtre d’informations d’identification de jeton pour placer des informations d’identification de jeton dans des en-têtes de requête.

Récapitulatif du constructeur

Constructeur Description
AppCredentialsInterceptor(AppCredentials withCredentials)

Initialisez un jetonCredentialsFilter, avec des informations d’identification de jetond’identification.

Résumé de la méthode

Modificateur et type Méthode et description
okhttp3.Response intercept(Interceptor.Chain chain)

Appliquez les informations d’identification à la requête HTTP.

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

AppCredentialsInterceptor

public AppCredentialsInterceptor(AppCredentials withCredentials)

Initialisez une classe TokenCredentialsFilter avec des informations d’identification TokenCredentials.

Paramètres:

withCredentials - une instance TokenCredentials

Détails de la méthode

intercept

public Response intercept(Interceptor.Chain chain)

Appliquez les informations d’identification à la requête HTTP.

Paramètres:

chain - Chaîne d’intercepteur Okhttp3.

Retours:

Réponse modifiée.

Exception:

java.io.IOException - par le biais d’une chaîne ou d’un échec d’obtention du jeton.

S’applique à