public interface UserRealm
SSORealm
Modifier and Type | Method and Description |
---|---|
Principal |
authenticate(String username,
Object credentials,
HttpRequest request)
Authenticate a users credentials.
|
void |
disassociate(Principal user)
Dissassociate the calling context with a Principal.
|
String |
getName() |
Principal |
getPrincipal(String username)
Get the principal for a username.
|
boolean |
isUserInRole(Principal user,
String role)
Check if the user is in a role.
|
void |
logout(Principal user)
logout a user Principal.
|
Principal |
popRole(Principal user)
Pop role from a Principal.
|
Principal |
pushRole(Principal user,
String role)
Push role onto a Principal.
|
boolean |
reauthenticate(Principal user)
Re Authenticate a Principal.
|
String getName()
Principal getPrincipal(String username)
Principal authenticate(String username, Object credentials, HttpRequest request)
username
- The username.credentials
- The user credentials, normally a String password.request
- The request to be authenticated. Additional
parameters may be extracted or set on this request as needed
for the authentication mechanism (none required for BASIC and
FORM authentication).boolean reauthenticate(Principal user)
boolean isUserInRole(Principal user, String role)
role
- A role name.void disassociate(Principal user)
user
- A UserPrincipal allocated from this realm.Principal pushRole(Principal user, String role)
user
- An existing UserPrincipal or null for an anonymous user.role
- The role to add.Principal popRole(Principal user)
user
- A UserPrincipal previously returned from pushRolevoid logout(Principal user)
user
- A Principal previously returned from this realmCopyright © 2016. All Rights Reserved.