Package com.symphony.bdk.core.auth
Interface OboAuthenticator
- All Known Implementing Classes:
AbstractOboAuthenticator
,OboAuthenticatorCertImpl
,OboAuthenticatorRsaImpl
@API(status=STABLE)
public interface OboAuthenticator
On-behalf-of authenticator service.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticateByUserId
(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.
-
Method Details
-
authenticateByUsername
@Nonnull 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
Authenticates on behalf of a particular user using his userId.- Parameters:
userId
- Id of the user.- Returns:
- the authentication sessions.
- Throws:
AuthUnauthorizedException
-