@API(status=INTERNAL) public abstract class AbstractOboAuthenticator extends java.lang.Object implements OboAuthenticator
OboAuthenticator
logic between RSA and certificate,
especially the retry logic on top of HTTP calls.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
appId |
Constructor and Description |
---|
AbstractOboAuthenticator(BdkRetryConfig retryConfig,
java.lang.String appId) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
authenticateAndRetrieveAppSessionToken() |
protected abstract java.lang.String |
authenticateAndRetrieveOboSessionToken(java.lang.String appSessionToken,
java.lang.Long userId) |
protected abstract java.lang.String |
authenticateAndRetrieveOboSessionToken(java.lang.String appSessionToken,
java.lang.String username) |
protected abstract java.lang.String |
getBasePath() |
protected java.lang.String |
retrieveAppSessionToken() |
protected java.lang.String |
retrieveOboSessionTokenByUserId(java.lang.Long userId) |
protected java.lang.String |
retrieveOboSessionTokenByUsername(java.lang.String username) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticateByUserId, authenticateByUsername
public AbstractOboAuthenticator(BdkRetryConfig retryConfig, java.lang.String appId)
protected java.lang.String retrieveOboSessionTokenByUserId(@Nonnull java.lang.Long userId) throws AuthUnauthorizedException
AuthUnauthorizedException
protected java.lang.String retrieveOboSessionTokenByUsername(@Nonnull java.lang.String username) throws AuthUnauthorizedException
AuthUnauthorizedException
protected java.lang.String retrieveAppSessionToken() throws AuthUnauthorizedException
AuthUnauthorizedException
protected abstract java.lang.String authenticateAndRetrieveOboSessionToken(@Nonnull java.lang.String appSessionToken, @Nonnull java.lang.Long userId) throws com.symphony.bdk.http.api.ApiException
com.symphony.bdk.http.api.ApiException
protected abstract java.lang.String authenticateAndRetrieveOboSessionToken(@Nonnull java.lang.String appSessionToken, @Nonnull java.lang.String username) throws com.symphony.bdk.http.api.ApiException
com.symphony.bdk.http.api.ApiException
protected abstract java.lang.String authenticateAndRetrieveAppSessionToken() throws com.symphony.bdk.http.api.ApiException
com.symphony.bdk.http.api.ApiException
protected abstract java.lang.String getBasePath()