CertificateAuthenticator Classe

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

Implementazioni

public class CertificateAuthenticator
implements Authenticator

Provider di token per CertificateAppCredentials.

Riepilogo dei costruttori

Costruttore Descrizione
CertificateAuthenticator(CertificateAppCredentialsOptions withOptions, OAuthConfiguration withConfiguration)

Costruisce un autenticatore usando l'appid e certificato pkcs.

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
java.util.concurrent.CompletableFuture<IAuthenticationResult> acquireToken()

Restituisce un token.

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

CertificateAuthenticator

public CertificateAuthenticator(CertificateAppCredentialsOptions withOptions, OAuthConfiguration withConfiguration)

Costruisce un autenticatore usando appId e certificato pkcs.

Parametri:

withOptions - Opzioni per CertificateAppCredentials.
withConfiguration - The OAuthConfiguration.

Genera un'eccezione:

java.security.cert.CertificateException - Durante la creazione dell'app MSAL.
java.security.UnrecoverableKeyException - Durante la creazione dell'app MSAL.
java.security.NoSuchAlgorithmException - Durante la creazione dell'app MSAL.
java.security.KeyStoreException - Durante la creazione dell'app MSAL.
java.security.NoSuchProviderException - Durante la creazione dell'app MSAL.
java.io.IOException - Durante la creazione dell'app MSAL.

Dettagli metodo

acquireToken

public CompletableFuture acquireToken()

Restituisce un token.

Restituisce:

Risultato del token MSAL.

Si applica a