|
||||||||||
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.RunAsIdentity
public class 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 | |
---|---|
Object |
clone()
|
boolean |
doesUserHaveRole(Principal role)
|
boolean |
doesUserHaveRole(Set methodRoles)
True if the run-as principal has any of the method roles |
Set |
getPrincipalsSet()
Return a set with the configured run-as principal and a Group("Roles") with teh run-as roles |
Set |
getRunAsRoles()
Return a set with the configured run-as role |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class org.jboss.security.SimplePrincipal |
---|
equals, getName, hashCode |
Methods inherited from class java.lang.Object |
---|
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 Set getPrincipalsSet()
public boolean doesUserHaveRole(Principal role)
public boolean doesUserHaveRole(Set methodRoles)
public String toString()
toString
in interface Principal
toString
in class SimplePrincipal
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |