|
|||||||||
| Home >> All >> org >> mortbay >> [ jaas overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mortbay.jaas
Class JAASUserPrincipal

java.lang.Objectorg.mortbay.jaas.JAASUserPrincipal
- All Implemented Interfaces:
- java.security.Principal
- public class JAASUserPrincipal
- extends java.lang.Object
- implements java.security.Principal
- extends java.lang.Object
JAASUserPrincipal
Implements the JAAS version of the org.mortbay.http.UserPrincipal interface.
- Version:
- $Id: JAASUserPrincipal.java,v 1.4 2003/09/19 12:23:59 gregwilkins Exp $
| Nested Class Summary | |
static class |
JAASUserPrincipal.RoleStack
RoleStack |
| Field Summary | |
private static org.apache.commons.logging.Log |
log
|
private java.lang.String |
name
|
private RoleCheckPolicy |
roleCheckPolicy
|
private javax.security.auth.Subject |
subject
|
| 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 |
(package private) 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 |
protected void |
setSubject(javax.security.auth.Subject subject)
Sets the JAAS subject for this user. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
equals, hashCode, toString |
| Field Detail |
log
private static org.apache.commons.logging.Log log
subject
private javax.security.auth.Subject subject
roleCheckPolicy
private RoleCheckPolicy roleCheckPolicy
name
private java.lang.String name
| Constructor Detail |
JAASUserPrincipal
public JAASUserPrincipal(java.lang.String name)
- Constructor.
| Method Detail |
isUserInRole
boolean isUserInRole(java.lang.String roleName)
- Check if user is in role
getRoles
public java.security.acl.Group getRoles()
- Determine the roles that the LoginModule has set
setRoleCheckPolicy
public void setRoleCheckPolicy(RoleCheckPolicy policy)
- Set the type of checking for isUserInRole
pushRole
public void pushRole(java.lang.String roleName)
- Temporarily associate a user with a role.
popRole
public void popRole()
- Remove temporary association between user and role.
disassociate
public void disassociate()
- Clean out any pushed roles that haven't been popped
getName
public java.lang.String getName()
- Get the name identifying the user
- Specified by:
getNamein interfacejava.security.Principal
setSubject
protected void setSubject(javax.security.auth.Subject subject)
- Sets the JAAS subject for this user.
The subject contains:
- the user's credentials
- Principal for the user's roles
getSubject
public javax.security.auth.Subject getSubject()
- Provide access to the current Subject
|
|||||||||
| Home >> All >> org >> mortbay >> [ jaas overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.mortbay.jaas.JAASUserPrincipal