@API(status=INTERNAL) public class BotAuthenticatorCertImpl extends AbstractBotAuthenticator
Constructor and Description |
---|
BotAuthenticatorCertImpl(BdkRetryConfig retryConfig,
java.lang.String username,
com.symphony.bdk.http.api.ApiClient sessionAuthClient,
com.symphony.bdk.http.api.ApiClient keyAuthClient) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
authenticateAndGetToken(com.symphony.bdk.http.api.ApiClient client) |
AuthSession |
authenticateBot()
Authenticates a Bot's service account.
|
protected java.lang.String |
getBotUsername() |
protected java.lang.String |
retrieveKeyManagerToken() |
protected java.lang.String |
retrieveSessionToken() |
retrieveToken
public BotAuthenticatorCertImpl(@Nonnull BdkRetryConfig retryConfig, @Nonnull java.lang.String username, @Nonnull com.symphony.bdk.http.api.ApiClient sessionAuthClient, @Nonnull com.symphony.bdk.http.api.ApiClient keyAuthClient)
@Nonnull public AuthSession authenticateBot() throws AuthUnauthorizedException
AuthUnauthorizedException
@Nonnull protected java.lang.String retrieveSessionToken() throws AuthUnauthorizedException
AuthUnauthorizedException
@Nonnull protected java.lang.String retrieveKeyManagerToken() throws AuthUnauthorizedException
AuthUnauthorizedException
protected java.lang.String authenticateAndGetToken(com.symphony.bdk.http.api.ApiClient client) throws com.symphony.bdk.http.api.ApiException
authenticateAndGetToken
in class AbstractBotAuthenticator
com.symphony.bdk.http.api.ApiException
protected java.lang.String getBotUsername()
getBotUsername
in class AbstractBotAuthenticator