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 Details

    • appId

      protected final String 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

      protected String retrieveAppSessionToken() throws AuthUnauthorizedException
      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

      protected abstract String getBasePath()