|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.security.SimplePrincipal (src)
org.jboss.security.CallerIdentity (src)
org.jboss.security.RunAsIdentity
The RunAsIdentity is a Principal that associates the run-as principal with his run-as role(s).
| Constructor Summary | |
RunAsIdentity(java.lang.String roleName,
java.lang.String principalName)
Construct an inmutable instance of a RunAsIdentity |
|
RunAsIdentity(java.lang.String roleName,
java.lang.String principalName,
java.util.Set extraRoleNames)
Construct an inmutable instance of a RunAsIdentity |
|
| Method Summary | |
boolean |
doesUserHaveRole(java.security.Principal role)
|
boolean |
doesUserHaveRole(java.util.Set methodRoles)
True if the run-as principal has any of the method roles |
java.util.Set |
getRunAsRoles()
|
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class org.jboss.security.CallerIdentity (src) |
equals, getCredential, hashCode |
| Methods inherited from class org.jboss.security.SimplePrincipal (src) |
getName |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RunAsIdentity(java.lang.String roleName,
java.lang.String principalName)
public RunAsIdentity(java.lang.String roleName,
java.lang.String principalName,
java.util.Set extraRoleNames)
| Method Detail |
public java.util.Set getRunAsRoles()
public boolean doesUserHaveRole(java.security.Principal role)
public boolean doesUserHaveRole(java.util.Set methodRoles)
public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class CallerIdentity (src)
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||