Class EJBSecurityMetaData

java.lang.Object
org.jboss.as.ejb3.security.EJBSecurityMetaData

public class EJBSecurityMetaData extends Object
Holds the Jakarta Enterprise Beans component level security metadata.

For per method specific security metadata, take a look at EJBMethodSecurityAttribute

User: Jaikiran Pai

  • Constructor Details

    • EJBSecurityMetaData

      public EJBSecurityMetaData(ComponentConfiguration componentConfiguration)
      Parameters:
      componentConfiguration - Component configuration of the Jakarta Enterprise Beans component
  • Method Details

    • getDeclaredRoles

      public Set<String> getDeclaredRoles()
      Returns the roles that have been declared by the bean. Returns an empty set if there are no declared roles.
      Returns:
    • getRunAs

      public String getRunAs()
      Returns the run-as role associated with this bean. Returns null if there's no run-as role associated.
      Returns:
    • getSecurityDomainName

      public String getSecurityDomainName()
      Returns the security domain associated with the bean
      Returns:
    • getRunAsPrincipal

      public String getRunAsPrincipal()
      Returns the run-as principal associated with this bean. Returns 'anonymous' if no principal was set.
      Returns:
    • getSecurityRoles

      public org.jboss.metadata.javaee.spec.SecurityRolesMetaData getSecurityRoles()
      Returns the security-role mapping.
      Returns:
    • getSecurityRoleLinks

      public Map<String,Collection<String>> getSecurityRoleLinks()
      Returns the security role links (configured via <security-role-ref>) applicable for the Jakarta Enterprise Beans. Returns an empty map if no role links are configured
      Returns: