| |
|
| java.lang.Object org.mortbay.jetty.plus.jaas.JAASUserPrincipal
JAASUserPrincipal | public class JAASUserPrincipal implements Principal(Code) | | JAASUserPrincipal
Implements the JAAS version of the
org.mortbay.http.UserPrincipal interface.
version: $Id: JAASUserPrincipal.java 1001 2006-09-23 09:31:51Z janb $ author: Jan Bartel (janb) |
Inner Class :public static class RoleStack | |
JAASUserPrincipal | public JAASUserPrincipal(JAASUserRealm realm, String name)(Code) | | Constructor.
Parameters: name - the name identifying the user |
disassociate | public void disassociate()(Code) | | Clean out any pushed roles that haven't been popped
|
getName | public String getName()(Code) | | Get the name identifying the user
|
getRoles | public Group getRoles()(Code) | | Determine the roles that the LoginModule has set
A Group of Principal Principals representing the roles this user holds |
getSubject | public Subject getSubject()(Code) | | Provide access to the current Subject
|
isUserInRole | public boolean isUserInRole(String roleName)(Code) | | Check if user is in role
Parameters: roleName - role to check true or false accordint to the RoleCheckPolicy. |
popRole | public void popRole()(Code) | | Remove temporary association between user and role.
|
pushRole | public void pushRole(String roleName)(Code) | | Temporarily associate a user with a role.
Parameters: roleName - |
setRoleCheckPolicy | public void setRoleCheckPolicy(RoleCheckPolicy policy)(Code) | | Set the type of checking for isUserInRole
Parameters: policy - |
setSubject | protected void setSubject(Subject subject)(Code) | | Sets the JAAS subject for this user.
The subject contains:
- the user's credentials
- Principal for the user's roles
Parameters: subject - |
|
|
|