@API(status=STABLE)
public class AuthenticatorFactory
extends java.lang.Object
BotAuthenticator
: to authenticate the main Bot service accountOboAuthenticator
: to perform on-behalf-of authenticationConstructor and Description |
---|
AuthenticatorFactory(BdkConfig bdkConfig,
ApiClientFactory apiClientFactory) |
Modifier and Type | Method and Description |
---|---|
BotAuthenticator |
getBotAuthenticator()
Creates a new instance of a
BotAuthenticator service. |
ExtensionAppAuthenticator |
getExtensionAppAuthenticator()
Creates a new instance of an
ExtensionAppAuthenticator service. |
OboAuthenticator |
getOboAuthenticator()
Creates a new instance of an
OboAuthenticator service. |
public AuthenticatorFactory(@Nonnull BdkConfig bdkConfig, @Nonnull ApiClientFactory apiClientFactory)
@Nonnull public BotAuthenticator getBotAuthenticator() throws AuthInitializationException
BotAuthenticator
service.BotAuthenticator
instance.AuthInitializationException
@Nonnull public OboAuthenticator getOboAuthenticator() throws AuthInitializationException
OboAuthenticator
service.OboAuthenticator
instance.AuthInitializationException
@Nonnull public ExtensionAppAuthenticator getExtensionAppAuthenticator() throws AuthInitializationException
ExtensionAppAuthenticator
service.ExtensionAppAuthenticator
instance.AuthInitializationException