|
||||||||||
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<String> extraRoleNames)
Construct an inmutable instance of a RunAsIdentity |
Method Summary | ||
---|---|---|
Object |
clone()
|
|
boolean |
doesUserHaveRole(Principal role)
|
|
boolean |
doesUserHaveRole(Set<Principal> methodRoles)
True if the run-as principal has any of the method roles |
|
|
getIdentity()
|
|
Set<Principal> |
getPrincipalsSet()
Return a set with the configured run-as principal and a Group("Roles") with the run-as roles |
|
|
getProof()
|
|
Set<Principal> |
getRunAsRoles()
Return a set with the configured run-as role |
|
org.jboss.security.identity.RoleGroup |
getRunAsRolesAsRoleGroup()
Return a RoleGroup of Run-As roles |
|
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 |
Methods inherited from interface java.security.Principal |
---|
equals, getName, hashCode |
Constructor Detail |
---|
public RunAsIdentity(String roleName, String principalName)
public RunAsIdentity(String roleName, String principalName, Set<String> extraRoleNames)
Method Detail |
---|
public Set<Principal> getRunAsRoles()
public org.jboss.security.identity.RoleGroup getRunAsRolesAsRoleGroup()
public Set<Principal> getPrincipalsSet()
public boolean doesUserHaveRole(Principal role)
public boolean doesUserHaveRole(Set<Principal> methodRoles)
public String toString()
toString
in interface Principal
toString
in class SimplePrincipal
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public <T> T getIdentity()
getIdentity
in interface org.jboss.security.RunAs
public <T> T getProof()
getProof
in interface org.jboss.security.RunAs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |