Package com.symphony.bdk.core.auth.impl
Class OboAuthenticatorCertImpl
java.lang.Object
com.symphony.bdk.core.auth.impl.AbstractOboAuthenticator
com.symphony.bdk.core.auth.impl.OboAuthenticatorCertImpl
- All Implemented Interfaces:
OboAuthenticator
OBO Certificate authenticator implementation
- See Also:
-
Field Summary
Fields inherited from class com.symphony.bdk.core.auth.impl.AbstractOboAuthenticator
appId
-
Constructor Summary
ConstructorDescriptionOboAuthenticatorCertImpl
(com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig, String appId, com.symphony.bdk.http.api.ApiClient sessionAuthClient) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
authenticateAndRetrieveOboSessionToken
(String appSessionToken, Long userId) protected String
authenticateAndRetrieveOboSessionToken
(String appSessionToken, String username) authenticateByUserId
(Long userId) Authenticates on behalf of a particular user using his userId.authenticateByUsername
(String username) Authenticates on-behalf-of a particular user using his username.protected String
Methods inherited from class com.symphony.bdk.core.auth.impl.AbstractOboAuthenticator
retrieveAppSessionToken, retrieveOboSessionTokenByUserId, retrieveOboSessionTokenByUsername
-
Constructor Details
-
OboAuthenticatorCertImpl
public OboAuthenticatorCertImpl(com.symphony.bdk.core.config.model.BdkRetryConfig retryConfig, String appId, com.symphony.bdk.http.api.ApiClient sessionAuthClient)
-
-
Method Details
-
authenticateByUsername
@Nonnull public AuthSession authenticateByUsername(@Nonnull String username) throws AuthUnauthorizedException Authenticates on-behalf-of a particular user using his username.- Parameters:
username
- Username of the user.- Returns:
- the authentication session.
- Throws:
AuthUnauthorizedException
-
authenticateByUserId
@Nonnull public AuthSession authenticateByUserId(@Nonnull Long userId) throws AuthUnauthorizedException Authenticates on behalf of a particular user using his userId.- Parameters:
userId
- Id of the user.- Returns:
- the authentication sessions.
- Throws:
AuthUnauthorizedException
-
authenticateAndRetrieveOboSessionToken
protected String authenticateAndRetrieveOboSessionToken(@Nonnull String appSessionToken, @Nonnull Long userId) throws com.symphony.bdk.http.api.ApiException - Specified by:
authenticateAndRetrieveOboSessionToken
in classAbstractOboAuthenticator
- Throws:
com.symphony.bdk.http.api.ApiException
-
authenticateAndRetrieveOboSessionToken
protected String authenticateAndRetrieveOboSessionToken(@Nonnull String appSessionToken, @Nonnull String username) throws com.symphony.bdk.http.api.ApiException - Specified by:
authenticateAndRetrieveOboSessionToken
in classAbstractOboAuthenticator
- Throws:
com.symphony.bdk.http.api.ApiException
-
authenticateAndRetrieveAppSessionToken
protected String authenticateAndRetrieveAppSessionToken() throws com.symphony.bdk.http.api.ApiException- Specified by:
authenticateAndRetrieveAppSessionToken
in classAbstractOboAuthenticator
- Throws:
com.symphony.bdk.http.api.ApiException
-
getBasePath
- Specified by:
getBasePath
in classAbstractOboAuthenticator
-