|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public String getName()
public Principal getPrincipal(String username)
public 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).
public boolean reauthenticate(Principal user)
public boolean isUserInRole(Principal user, String role)
role
- A role name.
public void disassociate(Principal user)
user
- A UserPrincipal allocated from this realm.public Principal pushRole(Principal user, String role)
user
- An existing UserPrincipal or null for an anonymous user.role
- The role to add.
public Principal popRole(Principal user)
user
- A UserPrincipal previously returned from pushRole
public 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 |