CertificateAuthenticator Class

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

Implements

public class CertificateAuthenticator
implements Authenticator

A provider of tokens for CertificateAppCredentials.

Constructor Summary

Constructor Description
CertificateAuthenticator(CertificateAppCredentialsOptions withOptions, OAuthConfiguration withConfiguration)

Constructs an Authenticator using appId and pkcs certificate.

Method Summary

Modifier and Type Method and Description
java.util.concurrent.CompletableFuture<IAuthenticationResult> acquireToken()

Returns a token.

Methods inherited from 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

Constructor Details

CertificateAuthenticator

public CertificateAuthenticator(CertificateAppCredentialsOptions withOptions, OAuthConfiguration withConfiguration)

Constructs an Authenticator using appId and pkcs certificate.

Parameters:

withOptions - The options for CertificateAppCredentials.
withConfiguration - The OAuthConfiguration.

Throws:

java.security.cert.CertificateException - During MSAL app creation.
java.security.UnrecoverableKeyException - During MSAL app creation.
java.security.NoSuchAlgorithmException - During MSAL app creation.
java.security.KeyStoreException - During MSAL app creation.
java.security.NoSuchProviderException - During MSAL app creation.
java.io.IOException - During MSAL app creation.

Method Details

acquireToken

public CompletableFuture acquireToken()

Returns a token.

Returns:

The MSAL token result.

Applies to