|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.metadata.javaee.jboss.RunAsIdentityMetaData
public class RunAsIdentityMetaData
Extended run-as/security-role metadata for defining a run as principal.
| Constructor Summary | |
|---|---|
RunAsIdentityMetaData(String roleName,
String principalName)
Construct an inmutable instance of a RunAsIdentity |
|
RunAsIdentityMetaData(String roleName,
String principalName,
Set<String> extraRoleNames)
Construct an inmutable instance of a RunAsIdentityMetaData |
|
| Method Summary | |
|---|---|
boolean |
doesUserHaveRole(Set<String> methodRoles)
True if the run-as principal has any of the method roles |
boolean |
doesUserHaveRole(String role)
|
String |
getPrincipalName()
|
String |
getRoleName()
|
Set<String> |
getRunAsRoles()
Return a set with the configured run-as role |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RunAsIdentityMetaData(String roleName,
String principalName)
public RunAsIdentityMetaData(String roleName,
String principalName,
Set<String> extraRoleNames)
| Method Detail |
|---|
public String getPrincipalName()
public String getRoleName()
public Set<String> getRunAsRoles()
public boolean doesUserHaveRole(String role)
public boolean doesUserHaveRole(Set<String> methodRoles)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||