Package com.symphony.bdk.core.auth.impl
Class BotAuthenticatorCertImpl
java.lang.Object
com.symphony.bdk.core.auth.impl.AbstractBotAuthenticator
com.symphony.bdk.core.auth.impl.BotAuthenticatorCertImpl
- All Implemented Interfaces:
BotAuthenticator
Bot authenticator certificate implementation.
- See Also:
-
Field Summary
Fields inherited from class com.symphony.bdk.core.auth.impl.AbstractBotAuthenticator
loginApiClient
-
Constructor Summary
ConstructorDescriptionBotAuthenticatorCertImpl
(com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig, String username, com.symphony.bdk.core.config.model.BdkCommonJwtConfig commonJwtConfig, com.symphony.bdk.http.api.ApiClient loginClient, com.symphony.bdk.http.api.ApiClient sessionAuthClient, com.symphony.bdk.http.api.ApiClient keyAuthClient) -
Method Summary
Modifier and TypeMethodDescriptionAuthenticates 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 String
protected String
protected Token
Methods inherited from class com.symphony.bdk.core.auth.impl.AbstractBotAuthenticator
isCommonJwtEnabled, retrieveAuthorizationToken, retrieveKeyManagerToken, retrieveSessionToken
-
Constructor Details
-
BotAuthenticatorCertImpl
public BotAuthenticatorCertImpl(@Nonnull com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig, @Nonnull String username, @Nonnull com.symphony.bdk.core.config.model.BdkCommonJwtConfig commonJwtConfig, @Nonnull com.symphony.bdk.http.api.ApiClient loginClient, @Nonnull com.symphony.bdk.http.api.ApiClient sessionAuthClient, @Nonnull com.symphony.bdk.http.api.ApiClient keyAuthClient)
-
-
Method Details
-
authenticateBot
Authenticates a Bot's service account.- Returns:
- the authentication session.
- Throws:
AuthUnauthorizedException
-
retrieveSessionToken
- Specified by:
retrieveSessionToken
in classAbstractBotAuthenticator
- Throws:
AuthUnauthorizedException
-
retrieveKeyManagerToken
- Specified by:
retrieveKeyManagerToken
in classAbstractBotAuthenticator
- Throws:
AuthUnauthorizedException
-
doRetrieveToken
protected Token doRetrieveToken(com.symphony.bdk.http.api.ApiClient client) throws com.symphony.bdk.http.api.ApiException Description copied from class:AbstractBotAuthenticator
Login API to retrieve a token is the same for KM and pod.- Specified by:
doRetrieveToken
in classAbstractBotAuthenticator
- Throws:
com.symphony.bdk.http.api.ApiException
-
getBotUsername
- Specified by:
getBotUsername
in classAbstractBotAuthenticator
-