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