@API(status=INTERNAL) public class BotAuthenticatorRsaImpl extends AbstractBotAuthenticator
Constructor and Description |
---|
BotAuthenticatorRsaImpl(BdkRetryConfig retryConfig,
java.lang.String username,
java.security.PrivateKey privateKey,
com.symphony.bdk.http.api.ApiClient loginApiClient,
com.symphony.bdk.http.api.ApiClient relayApiClient) |
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 BotAuthenticatorRsaImpl(@Nonnull BdkRetryConfig retryConfig, @Nonnull java.lang.String username, @Nonnull java.security.PrivateKey privateKey, @Nonnull com.symphony.bdk.http.api.ApiClient loginApiClient, @Nonnull com.symphony.bdk.http.api.ApiClient relayApiClient)
@Nonnull public AuthSession authenticateBot() throws AuthUnauthorizedException
AuthUnauthorizedException
protected java.lang.String retrieveSessionToken() throws AuthUnauthorizedException
AuthUnauthorizedException
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