Package com.symphony.bdk.core.auth
Class AuthenticatorFactory
java.lang.Object
com.symphony.bdk.core.auth.AuthenticatorFactory
Factory class that provides new instances for the main authenticators :
BotAuthenticator
: to authenticate the main Bot service accountOboAuthenticator
: to perform on-behalf-of authentication
-
Constructor Summary
ConstructorDescriptionAuthenticatorFactory
(com.symphony.bdk.core.config.model.BdkConfig bdkConfig, ApiClientFactory apiClientFactory) AuthenticatorFactory
(com.symphony.bdk.core.config.model.BdkConfig bdkConfig, ApiClientFactory apiClientFactory, ExtensionAppTokensRepository extensionAppTokensRepository) -
Method Summary
Modifier and TypeMethodDescriptionCreates a new instance of aBotAuthenticator
service.Creates a new instance of anExtensionAppAuthenticator
service.Creates a new instance of anOboAuthenticator
service.
-
Constructor Details
-
AuthenticatorFactory
public AuthenticatorFactory(@Nonnull com.symphony.bdk.core.config.model.BdkConfig bdkConfig, @Nonnull ApiClientFactory apiClientFactory) -
AuthenticatorFactory
public AuthenticatorFactory(@Nonnull com.symphony.bdk.core.config.model.BdkConfig bdkConfig, @Nonnull ApiClientFactory apiClientFactory, @Nonnull ExtensionAppTokensRepository extensionAppTokensRepository)
-
-
Method Details
-
getBotAuthenticator
Creates a new instance of aBotAuthenticator
service.- Returns:
- a new
BotAuthenticator
instance. - Throws:
AuthInitializationException
-
getOboAuthenticator
Creates a new instance of anOboAuthenticator
service.- Returns:
- a new
OboAuthenticator
instance. - Throws:
AuthInitializationException
-
getExtensionAppAuthenticator
@Nonnull public ExtensionAppAuthenticator getExtensionAppAuthenticator() throws AuthInitializationExceptionCreates a new instance of anExtensionAppAuthenticator
service.- Returns:
- a new
ExtensionAppAuthenticator
instance. - Throws:
AuthInitializationException
-