@API(status=INTERNAL) public class OboAuthenticatorCertImpl extends AbstractOboAuthenticator
appId
Constructor and Description |
---|
OboAuthenticatorCertImpl(BdkRetryConfig retryConfig,
java.lang.String appId,
com.symphony.bdk.http.api.ApiClient sessionAuthClient) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
authenticateAndRetrieveAppSessionToken() |
protected java.lang.String |
authenticateAndRetrieveOboSessionToken(java.lang.String appSessionToken,
java.lang.Long userId) |
protected java.lang.String |
authenticateAndRetrieveOboSessionToken(java.lang.String appSessionToken,
java.lang.String username) |
AuthSession |
authenticateByUserId(java.lang.Long userId)
Authenticates on behalf of a particular user using his userId.
|
AuthSession |
authenticateByUsername(java.lang.String username)
Authenticates on-behalf-of a particular user using his username.
|
protected java.lang.String |
getBasePath() |
retrieveAppSessionToken, retrieveOboSessionTokenByUserId, retrieveOboSessionTokenByUsername
public OboAuthenticatorCertImpl(BdkRetryConfig retryConfig, java.lang.String appId, com.symphony.bdk.http.api.ApiClient sessionAuthClient)
@Nonnull public AuthSession authenticateByUsername(@Nonnull java.lang.String username) throws AuthUnauthorizedException
username
- Username of the user.AuthUnauthorizedException
@Nonnull public AuthSession authenticateByUserId(@Nonnull java.lang.Long userId) throws AuthUnauthorizedException
userId
- Id of the user.AuthUnauthorizedException
protected java.lang.String authenticateAndRetrieveOboSessionToken(@Nonnull java.lang.String appSessionToken, @Nonnull java.lang.Long userId) throws com.symphony.bdk.http.api.ApiException
authenticateAndRetrieveOboSessionToken
in class AbstractOboAuthenticator
com.symphony.bdk.http.api.ApiException
protected java.lang.String authenticateAndRetrieveOboSessionToken(@Nonnull java.lang.String appSessionToken, @Nonnull java.lang.String username) throws com.symphony.bdk.http.api.ApiException
authenticateAndRetrieveOboSessionToken
in class AbstractOboAuthenticator
com.symphony.bdk.http.api.ApiException
protected java.lang.String authenticateAndRetrieveAppSessionToken() throws com.symphony.bdk.http.api.ApiException
authenticateAndRetrieveAppSessionToken
in class AbstractOboAuthenticator
com.symphony.bdk.http.api.ApiException
protected java.lang.String getBasePath()
getBasePath
in class AbstractOboAuthenticator