CertificateAuthenticator クラス

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

実装

public class CertificateAuthenticator
implements Authenticator

CertificateAppCredentials のトークンのプロバイダー。

コンストラクターの概要

コンストラクター 説明
CertificateAuthenticator(CertificateAppCredentialsOptions withOptions, OAuthConfiguration withConfiguration)

アプリID と pkcs 証明書を使用して Authenticator を構築します。

メソッドの概要

修飾子と型 メソッドと説明
java.util.concurrent.CompletableFuture<IAuthenticationResult> acquireToken()

トークンを返します。

メソッドの継承元: 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

コンストラクターの詳細

CertificateAuthenticator

public CertificateAuthenticator(CertificateAppCredentialsOptions withOptions, OAuthConfiguration withConfiguration)

appId と pkcs 証明書を使用して Authenticator を構築します。

パラメーター:

withOptions - CertificateAppCredentials のオプション。
withConfiguration - OAuthConfiguration。

スロー:

java.security.cert.CertificateException - MSAL アプリの作成時。
java.security.UnrecoverableKeyException - MSAL アプリの作成時。
java.security.NoSuchAlgorithmException - MSAL アプリの作成時。
java.security.KeyStoreException - MSAL アプリの作成時。
java.security.NoSuchProviderException - MSAL アプリの作成時。
java.io.IOException - MSAL アプリの作成時。

メソッドの詳細

acquireToken

public CompletableFuture acquireToken()

トークンを返します。

戻り値:

MSAL トークンの結果。

適用対象