@API(status=INTERNAL) public abstract class AbstractBotAuthenticator extends java.lang.Object implements BotAuthenticator
BotAuthenticator
logic between RSA and certificate,
especially the retry logic on top of HTTP calls.Modifier and Type | Field and Description |
---|---|
protected com.symphony.bdk.http.api.ApiClient |
loginApiClient |
Modifier | Constructor and Description |
---|---|
protected |
AbstractBotAuthenticator(com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig,
com.symphony.bdk.core.config.model.BdkCommonJwtConfig commonJwtConfig,
com.symphony.bdk.http.api.ApiClient loginApiClient) |
Modifier and Type | Method and Description |
---|---|
protected abstract Token |
doRetrieveToken(com.symphony.bdk.http.api.ApiClient client)
Login API to retrieve a token is the same for KM and pod.
|
protected abstract java.lang.String |
getBotUsername() |
boolean |
isCommonJwtEnabled() |
protected java.lang.String |
retrieveAuthorizationToken(java.lang.String sessionToken) |
protected abstract java.lang.String |
retrieveKeyManagerToken() |
protected java.lang.String |
retrieveKeyManagerToken(com.symphony.bdk.http.api.ApiClient client) |
protected abstract Token |
retrieveSessionToken() |
protected Token |
retrieveSessionToken(com.symphony.bdk.http.api.ApiClient client) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticateBot
protected AbstractBotAuthenticator(com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig, @Nonnull com.symphony.bdk.core.config.model.BdkCommonJwtConfig commonJwtConfig, @Nonnull com.symphony.bdk.http.api.ApiClient loginApiClient)
protected abstract java.lang.String retrieveKeyManagerToken() throws AuthUnauthorizedException
AuthUnauthorizedException
protected java.lang.String retrieveKeyManagerToken(com.symphony.bdk.http.api.ApiClient client) throws AuthUnauthorizedException
AuthUnauthorizedException
protected abstract Token retrieveSessionToken() throws AuthUnauthorizedException
AuthUnauthorizedException
protected Token retrieveSessionToken(com.symphony.bdk.http.api.ApiClient client) throws AuthUnauthorizedException
AuthUnauthorizedException
protected abstract Token doRetrieveToken(com.symphony.bdk.http.api.ApiClient client) throws com.symphony.bdk.http.api.ApiException
com.symphony.bdk.http.api.ApiException
protected java.lang.String retrieveAuthorizationToken(java.lang.String sessionToken) throws AuthUnauthorizedException
AuthUnauthorizedException
protected abstract java.lang.String getBotUsername()
public boolean isCommonJwtEnabled()