|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.mortbay.jaas.JAASUserRealm
JAASUserRealm
| Constructor Summary | |
JAASUserRealm()
Constructor. |
|
JAASUserRealm(java.lang.String name)
Constructor. |
|
| Method Summary | |
UserPrincipal |
authenticate(java.lang.String username,
java.lang.Object credentials,
HttpRequest request)
Authenticate a user. |
void |
disassociate(UserPrincipal user)
Removes any auth info associated with eg. |
java.lang.String |
getName()
Get the name of the realm. |
void |
logout(UserPrincipal user)
Logout a previously logged in user. |
UserPrincipal |
popRole(UserPrincipal user)
Remove a role temporarily granted to a user. |
UserPrincipal |
pushRole(UserPrincipal user,
java.lang.String role)
Temporarily adds a role to a user. |
void |
setCallbackHandler(AbstractCallbackHandler handler)
Set up a specifc CallbackHandler. |
void |
setLoginModuleName(java.lang.String name)
Set the name to use to index into the config file of LoginModules. |
void |
setName(java.lang.String name)
Set the name of the realm |
void |
setRoleCheckPolicy(RoleCheckPolicy policy)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JAASUserRealm()
public JAASUserRealm(java.lang.String name)
name - the name of the realm| Method Detail |
public java.lang.String getName()
getName in interface UserRealmpublic void setName(java.lang.String name)
name - a String valuepublic void setLoginModuleName(java.lang.String name)
name - a String valuepublic void setCallbackHandler(AbstractCallbackHandler handler)
handler - an AbstractCallbackHandler valuepublic void setRoleCheckPolicy(RoleCheckPolicy policy)
public UserPrincipal authenticate(java.lang.String username,
java.lang.Object credentials,
HttpRequest request)
authenticate in interface UserRealmusername - provided by the user at logincredentials - provided by the user at loginrequest - a HttpRequest value
public void disassociate(UserPrincipal user)
disassociate in interface UserRealmuser - a UserPrincipal to disassociate
public UserPrincipal pushRole(UserPrincipal user,
java.lang.String role)
pushRole in interface UserRealmuser - the UserPrincipal to which to add the rolerole - the role name
public UserPrincipal popRole(UserPrincipal user)
popRole in interface UserRealmuser - the UserPrincipal from whom to remove the role
public void logout(UserPrincipal user)
logout in interface UserRealmuser - an UserPrincipal value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||