RestUserToken Classe

  • java.lang.Object
    • com.microsoft.bot.connector.rest.RestUserToken

Implementazioni

public class RestUserToken
implements UserToken

Un'istanza di questa classe fornisce l'accesso a tutte le operazioni definite in UserTokens.

Riepilogo dei costruttori

Costruttore Descrizione
RestUserToken(Retrofit withRetrofit, RestOAuthClient withClient)

Inizializza un'istanza di Token diutenteImpl.

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
java.util.concurrent.CompletableFuture<TokenResponse> exchangeToken(String userId, String connectionName, String channelId, TokenExchangeRequest exchangeRequest)
java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,TokenResponse>> getAadTokens(String userId, String connectionName, AadResourceUrls aadResourceUrls)
java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,TokenResponse>> getAadTokens(String userId, String connectionName, AadResourceUrls aadResourceUrls, String channelId)
java.util.concurrent.CompletableFuture<TokenResponse> getToken(String userId, String connectionName)
java.util.concurrent.CompletableFuture<TokenResponse> getToken(String userId, String connectionName, String channelId, String code)
java.util.concurrent.CompletableFuture<java.util.List<TokenStatus>> getTokenStatus(String userId)
java.util.concurrent.CompletableFuture<java.util.List<TokenStatus>> getTokenStatus(String userId, String channelId, String include)
java.util.concurrent.CompletableFuture<java.lang.Void> sendEmulateOAuthCards(boolean emulateOAuthCards)

Inviare una scheda OAuth fittizia quando il bot viene usato nell'emulatore per i test senza recuperare un token reale.

java.util.concurrent.CompletableFuture<java.lang.Object> signOut(String userId)
java.util.concurrent.CompletableFuture<java.lang.Object> signOut(String userId, String connectionName, String channelId)

Metodi ereditati da 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

Dettagli costruttore

RestUserToken

public RestUserToken(Retrofit withRetrofit, RestOAuthClient withClient)

Inizializza un'istanza di UserTokensImpl.

Parametri:

withRetrofit - l'istanza di Retrofit costruita da un Generatore di Builder.
withClient - istanza del client del servizio contenente questa classe di operazione.

Dettagli metodo

exchangeToken

public CompletableFuture exchangeToken(String userId, String connectionName, String channelId, TokenExchangeRequest exchangeRequest)

Parametri:

userId - valore String
connectionName - valore String
channelId - valore String
exchangeRequest - TokenExchangeRequest

Restituisce:

osservabile all'oggetto TokenResponse

getAadTokens

public CompletableFuture> getAadTokens(String userId, String connectionName, AadResourceUrls aadResourceUrls)

Parametri:

userId - valore String
connectionName - valore String
aadResourceUrls - valore di AadResourceUrls

Restituisce:

osservabile all'oggetto String<Map, TokenResponse>

getAadTokens

public CompletableFuture> getAadTokens(String userId, String connectionName, AadResourceUrls aadResourceUrls, String channelId)

Parametri:

userId - valore String
connectionName - valore String
aadResourceUrls - valore di AadResourceUrls
channelId - valore String

Restituisce:

osservabile all'oggetto String<Map, TokenResponse>

getToken

public CompletableFuture getToken(String userId, String connectionName)

Parametri:

userId - valore String
connectionName - valore String

Restituisce:

osservabile all'oggetto TokenResponse

getToken

public CompletableFuture getToken(String userId, String connectionName, String channelId, String code)

Parametri:

userId - valore String
connectionName - valore String
channelId - valore String
code - valore String

Restituisce:

osservabile all'oggetto TokenResponse

getTokenStatus

public CompletableFuture> getTokenStatus(String userId)

Parametri:

userId - valore String

Restituisce:

osservabile all'oggetto List<TokenStatus>

getTokenStatus

public CompletableFuture> getTokenStatus(String userId, String channelId, String include)

Parametri:

userId - valore String
channelId - valore String
include - valore String

Restituisce:

osservabile all'oggetto List<TokenStatus>

sendEmulateOAuthCards

public CompletableFuture sendEmulateOAuthCards(boolean emulateOAuthCards)

Inviare una scheda OAuth fittizia quando il bot viene usato nell'emulatore per i test senza recuperare un token reale.

Parametri:

emulateOAuthCards - Indica se l'emulatore deve emulare la scheda OAuth.

Restituisce:

Attività che rappresenta il lavoro in coda da eseguire.

signOut

public CompletableFuture signOut(String userId)

Parametri:

userId - valore String

Restituisce:

osservabile all'oggetto Object

signOut

public CompletableFuture signOut(String userId, String connectionName, String channelId)

Parametri:

userId - valore String
connectionName - valore String
channelId - valore String

Restituisce:

osservabile all'oggetto Object

Si applica a