Class RunAsIdentityMetaData

java.lang.Object
org.jboss.metadata.javaee.jboss.RunAsIdentityMetaData
All Implemented Interfaces:
Serializable

public class RunAsIdentityMetaData extends Object implements Serializable
Extended run-as/security-role metadata for defining a run as principal.
Version:
$Revision: 81768 $
Author:
Scott.Stark@jboss.org
See Also:
  • Constructor Details

    • RunAsIdentityMetaData

      public RunAsIdentityMetaData(String roleName, String principalName)
      Construct an inmutable instance of a RunAsIdentity
    • RunAsIdentityMetaData

      public RunAsIdentityMetaData(String roleName, String principalName, Set<String> extraRoleNames)
      Construct an inmutable instance of a RunAsIdentityMetaData
  • Method Details

    • getPrincipalName

      public String getPrincipalName()
    • getRoleName

      public String getRoleName()
    • getRunAsRoles

      public Set<String> getRunAsRoles()
      Return a set with the configured run-as role
      Returns:
      Set for the run-as roles
    • doesUserHaveRole

      public boolean doesUserHaveRole(String role)
    • doesUserHaveRole

      public boolean doesUserHaveRole(Set<String> methodRoles)
      True if the run-as principal has any of the method roles
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.