org.jboss.metadata.javaee.jboss
public class RunAsIdentityMetaData extends Object implements Serializable
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
public RunAsIdentityMetaData(String roleName, String principalName)
public String getPrincipalName()
public String getRoleName()
public Set<String> getRunAsRoles()
public boolean doesUserHaveRole(String role)
public boolean doesUserHaveRole(Set<String> methodRoles)
Copyright © 2017 JBoss by Red Hat. All rights reserved.