@API(status=STABLE)
public interface OboAuthenticator
Modifier and Type | Method and Description |
---|---|
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.
|
@Nonnull AuthSession authenticateByUsername(@Nonnull java.lang.String username) throws AuthUnauthorizedException
username
- Username of the user.AuthUnauthorizedException
@Nonnull AuthSession authenticateByUserId(@Nonnull java.lang.Long userId) throws AuthUnauthorizedException
userId
- Id of the user.AuthUnauthorizedException