Package com.symphony.bdk.core.auth.impl
Class AbstractOboAuthenticator
java.lang.Object
com.symphony.bdk.core.auth.impl.AbstractOboAuthenticator
- All Implemented Interfaces:
OboAuthenticator
- Direct Known Subclasses:
OboAuthenticatorCertImpl
,OboAuthenticatorRsaImpl
@API(status=INTERNAL)
public abstract class AbstractOboAuthenticator
extends Object
implements OboAuthenticator
Abstract class to factorize the
OboAuthenticator
logic between RSA and certificate,
especially the retry logic on top of HTTP calls.-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractOboAuthenticator
(com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig, String appId) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
protected abstract String
authenticateAndRetrieveOboSessionToken
(String appSessionToken, Long userId) protected abstract String
authenticateAndRetrieveOboSessionToken
(String appSessionToken, String username) protected abstract String
protected String
protected String
retrieveOboSessionTokenByUserId
(Long userId) protected String
retrieveOboSessionTokenByUsername
(String username) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.symphony.bdk.core.auth.OboAuthenticator
authenticateByUserId, authenticateByUsername
-
Field Details
-
appId
-
-
Constructor Details
-
AbstractOboAuthenticator
protected AbstractOboAuthenticator(com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig, String appId)
-
-
Method Details
-
retrieveOboSessionTokenByUserId
protected String retrieveOboSessionTokenByUserId(@Nonnull Long userId) throws AuthUnauthorizedException - Throws:
AuthUnauthorizedException
-
retrieveOboSessionTokenByUsername
protected String retrieveOboSessionTokenByUsername(@Nonnull String username) throws AuthUnauthorizedException - Throws:
AuthUnauthorizedException
-
retrieveAppSessionToken
- Throws:
AuthUnauthorizedException
-
authenticateAndRetrieveOboSessionToken
protected abstract String authenticateAndRetrieveOboSessionToken(@Nonnull String appSessionToken, @Nonnull Long userId) throws com.symphony.bdk.http.api.ApiException - Throws:
com.symphony.bdk.http.api.ApiException
-
authenticateAndRetrieveOboSessionToken
protected abstract String authenticateAndRetrieveOboSessionToken(@Nonnull String appSessionToken, @Nonnull String username) throws com.symphony.bdk.http.api.ApiException - Throws:
com.symphony.bdk.http.api.ApiException
-
authenticateAndRetrieveAppSessionToken
protected abstract String authenticateAndRetrieveAppSessionToken() throws com.symphony.bdk.http.api.ApiException- Throws:
com.symphony.bdk.http.api.ApiException
-
getBasePath
-