CertificateAuthenticator Klasse

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

Implementiert

public class CertificateAuthenticator
implements Authenticator

Ein Anbieter von Token für CertificateAppCredentials.

Zusammenfassung zum Konstruktor

Konstruktor Beschreibung
CertificateAuthenticator(CertificateAppCredentialsOptions withOptions, OAuthConfiguration withConfiguration)

Erstellt einen Authenticator mithilfe des App-ID- und pkcs-Zertifikats.

Methodenzusammenfassung

Modifizierer und Typ Methode und Beschreibung
java.util.concurrent.CompletableFuture<IAuthenticationResult> acquireToken()

Gibt ein Token zurück.

Geerbte Methoden von 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

Details zum Konstruktor

CertificateAuthenticator

public CertificateAuthenticator(CertificateAppCredentialsOptions withOptions, OAuthConfiguration withConfiguration)

Erstellt einen Authenticator mit appId- und PKCs-Zertifikat.

Parameter:

withOptions - Die Optionen für CertificateAppCredentials.
withConfiguration - The OAuthConfiguration.

Löst aus:

java.security.cert.CertificateException - Während der MSAL-App-Erstellung.
java.security.UnrecoverableKeyException - Während der MSAL-App-Erstellung.
java.security.NoSuchAlgorithmException - Während der MSAL-App-Erstellung.
java.security.KeyStoreException - Während der MSAL-App-Erstellung.
java.security.NoSuchProviderException - Während der MSAL-App-Erstellung.
java.io.IOException - Während der MSAL-App-Erstellung.

Details zur Methode

acquireToken

public CompletableFuture acquireToken()

Gibt ein Token zurück.

Gibt zurück:

Das MSAL-Tokenergebnis.

Gilt für: