|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.jaas.JAASUserPrincipal
JAASUserPrincipal
Implements the JAAS version of the org.mortbay.http.UserPrincipal interface.
Nested Class Summary | |
static class |
JAASUserPrincipal.RoleStack
RoleStack |
Constructor Summary | |
JAASUserPrincipal(java.lang.String name)
Constructor. |
Method Summary | |
void |
disassociate()
Clean out any pushed roles that haven't been popped |
java.lang.String |
getName()
Get the name identifying the user |
java.security.acl.Group |
getRoles()
Determine the roles that the LoginModule has set |
javax.security.auth.Subject |
getSubject()
Provide access to the current Subject |
boolean |
isAuthenticated()
Is this user authenticated |
boolean |
isUserInRole(java.lang.String roleName)
Check if user is in role |
void |
popRole()
Remove temporary association between user and role. |
void |
pushRole(java.lang.String roleName)
Temporarily associate a user with a role. |
void |
setRoleCheckPolicy(RoleCheckPolicy policy)
Set the type of checking for isUserInRole |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
equals, hashCode, toString |
Constructor Detail |
public JAASUserPrincipal(java.lang.String name)
name
- the name identifying the userMethod Detail |
public boolean isAuthenticated()
isAuthenticated
in interface UserPrincipal
public boolean isUserInRole(java.lang.String roleName)
isUserInRole
in interface UserPrincipal
roleName
- role to check
public java.security.acl.Group getRoles()
public void setRoleCheckPolicy(RoleCheckPolicy policy)
policy
- public void pushRole(java.lang.String roleName)
roleName
- public void popRole()
public void disassociate()
public java.lang.String getName()
getName
in interface java.security.Principal
public javax.security.auth.Subject getSubject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |