Implements the JAAS version of the org.mortbay.http.UserPrincipal interface.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private LoginContext | |
| private String | |
| private JAASUserRealm | |
| private RoleCheckPolicy | |
| private static JAASUserPrincipal. | |
| private Subject |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected LoginContext | |
| public String | |
| public JAASUserRealm | |
| public java. | |
| public Subject | |
| public boolean | Returns: true or false accordint to the RoleCheckPolicy.role to check roleName)Check if user is in role |
| public void | |
| public void | |
| protected void | |
| public void | |
| protected void | |
| public String | toString()
Overrides java. Implements java. Principal.
|
| loginContext | back to summary |
|---|---|
| private LoginContext loginContext | |
| name | back to summary |
|---|---|
| private String name | |
| realm | back to summary |
|---|---|
| private JAASUserRealm realm | |
| roleCheckPolicy | back to summary |
|---|---|
| private RoleCheckPolicy roleCheckPolicy | |
| runAsRoles | back to summary |
|---|---|
| private static JAASUserPrincipal. | |
| subject | back to summary |
|---|---|
| private Subject subject | |
| JAASUserPrincipal | back to summary |
|---|---|
| public JAASUserPrincipal(JAASUserRealm realm, String name) Constructor.
| |
| disassociate | back to summary |
|---|---|
| public void disassociate() Clean out any pushed roles that haven't been popped | |
| getLoginContext | back to summary |
|---|---|
| protected LoginContext getLoginContext() | |
| getName | back to summary |
|---|---|
| public String getName() Implements java. Get the name identifying the user
| |
| getRealm | back to summary |
|---|---|
| public JAASUserRealm getRealm() | |
| getRoles | back to summary |
|---|---|
| public java. Determine the roles that the LoginModule has set
| |
| getSubject | back to summary |
|---|---|
| public Subject getSubject() Provide access to the current Subject | |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(String roleName) Check if user is in role
| |
| popRole | back to summary |
|---|---|
| public void popRole() Remove temporary association between user and role. | |
| pushRole | back to summary |
|---|---|
| public void pushRole(String roleName) Temporarily associate a user with a role. | |
| setLoginContext | back to summary |
|---|---|
| protected void setLoginContext(LoginContext loginContext) | |
| setRoleCheckPolicy | back to summary |
|---|---|
| public void setRoleCheckPolicy(RoleCheckPolicy policy) Set the type of checking for isUserInRole | |
| setSubject | back to summary |
|---|---|
| protected void setSubject(Subject subject) Sets the JAAS subject for this user. The subject contains:
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Doc from java. Returns a string representation of this
| |
| Modifier and Type | Field and Description |
|---|---|
| private static ThreadLocal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static boolean | |
| public static JAASRole | |
| public static void | |
| public static void |
| local | back to summary |
|---|---|
| private static ThreadLocal<T> local | |
| RoleStack | back to summary |
|---|---|
| public RoleStack() | |
| clear | back to summary |
|---|---|
| public static void clear() | |
| empty | back to summary |
|---|---|
| public static boolean empty() | |
| peek | back to summary |
|---|---|
| public static JAASRole peek() | |
| pop | back to summary |
|---|---|
| public static void pop() | |
| push | back to summary |
|---|---|
| public static void push(JAASRole role) | |