|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserRealm
User Realm. This interface should be specialized to provide specific user lookup and authentication using arbitrary methods. For SSO implementation sof UserRealm should also implement SSORealm.
SSORealm
Method Summary | |
---|---|
Principal |
authenticate(String username,
Object credentials,
Request 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. |
Method Detail |
---|
String getName()
Principal getPrincipal(String username)
Principal authenticate(String username, Object credentials, Request 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 pushRole
void logout(Principal user)
user
- A Principal previously returned from this realm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |