@API(status=INTERNAL) public class OboAuthenticatorRsaImpl extends AbstractOboAuthenticator
appId
Constructor and Description |
---|
OboAuthenticatorRsaImpl(BdkRetryConfig retryConfig,
java.lang.String appId,
java.security.PrivateKey appPrivateKey,
com.symphony.bdk.http.api.ApiClient loginApiClient) |
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 OboAuthenticatorRsaImpl(BdkRetryConfig retryConfig, java.lang.String appId, java.security.PrivateKey appPrivateKey, com.symphony.bdk.http.api.ApiClient loginApiClient)
@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