@API(status=INTERNAL) public class BotAuthenticatorRsaImpl extends AbstractBotAuthenticator
loginApiClient
Constructor and Description |
---|
BotAuthenticatorRsaImpl(com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig,
java.lang.String username,
com.symphony.bdk.core.config.model.BdkCommonJwtConfig commonJwtConfig,
java.security.PrivateKey privateKey,
com.symphony.bdk.http.api.ApiClient loginApiClient,
com.symphony.bdk.http.api.ApiClient relayApiClient) |
Modifier and Type | Method and Description |
---|---|
AuthSession |
authenticateBot()
Authenticates a Bot's service account.
|
protected Token |
doRetrieveToken(com.symphony.bdk.http.api.ApiClient client)
Login API to retrieve a token is the same for KM and pod.
|
protected java.lang.String |
getBotUsername() |
protected java.lang.String |
retrieveKeyManagerToken() |
protected Token |
retrieveSessionToken() |
isCommonJwtEnabled, retrieveAuthorizationToken, retrieveKeyManagerToken, retrieveSessionToken
public BotAuthenticatorRsaImpl(@Nonnull com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig, @Nonnull java.lang.String username, @Nonnull com.symphony.bdk.core.config.model.BdkCommonJwtConfig commonJwtConfig, @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 Token retrieveSessionToken() throws AuthUnauthorizedException
retrieveSessionToken
in class AbstractBotAuthenticator
AuthUnauthorizedException
protected java.lang.String retrieveKeyManagerToken() throws AuthUnauthorizedException
retrieveKeyManagerToken
in class AbstractBotAuthenticator
AuthUnauthorizedException
protected Token doRetrieveToken(com.symphony.bdk.http.api.ApiClient client) throws com.symphony.bdk.http.api.ApiException
AbstractBotAuthenticator
doRetrieveToken
in class AbstractBotAuthenticator
com.symphony.bdk.http.api.ApiException
protected java.lang.String getBotUsername()
getBotUsername
in class AbstractBotAuthenticator