|
||||||||||
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()
|
|
JAASUserRealm(java.lang.String name)
|
Method Summary | |
UserPrincipal |
authenticate(java.lang.String username,
java.lang.Object credentials,
HttpRequest request)
Authenticate a users credentials. |
void |
disassociate(UserPrincipal user)
Dissassociate the calling context with a Principal. |
java.lang.String |
getName()
|
UserPrincipal |
popRole(UserPrincipal user)
Pop role from a Principal. |
UserPrincipal |
pushRole(UserPrincipal user,
java.lang.String role)
Push role onto a Principal. |
void |
setCallbackHandler(AbstractCallbackHandler handler)
|
void |
setLoginModuleName(java.lang.String name)
|
void |
setName(java.lang.String name)
|
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)
Method Detail |
public java.lang.String getName()
getName
in interface UserRealm
public void setName(java.lang.String name)
public void setLoginModuleName(java.lang.String name)
public void setCallbackHandler(AbstractCallbackHandler handler)
public void setRoleCheckPolicy(RoleCheckPolicy policy)
public UserPrincipal authenticate(java.lang.String username, java.lang.Object credentials, HttpRequest request)
UserRealm
authenticate
in interface UserRealm
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 void disassociate(UserPrincipal user)
UserRealm
disassociate
in interface UserRealm
user
- A UserPrincipal allocated from this realm.public UserPrincipal pushRole(UserPrincipal user, java.lang.String role)
UserRealm
pushRole
in interface UserRealm
user
- An existing UserPrincipal or null for an anonymous user.role
- The role to add.
public UserPrincipal popRole(UserPrincipal user)
UserRealm
popRole
in interface UserRealm
user
- A UserPrincipal previously returned from pushRole
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |