Package org.jboss.as.ejb3.security
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 atEJBMethodSecurityAttributeUser: Jaikiran Pai
-
-
Constructor Summary
Constructors Constructor Description EJBSecurityMetaData(ComponentConfiguration componentConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getDeclaredRoles()Returns the roles that have been declared by the bean.StringgetRunAs()Returns the run-as role associated with this bean.StringgetRunAsPrincipal()Returns the run-as principal associated with this bean.StringgetSecurityDomainName()Returns the security domain associated with the beanMap<String,Collection<String>>getSecurityRoleLinks()Returns the security role links (configured via) applicable for the Jakarta Enterprise Beans. org.jboss.metadata.javaee.spec.SecurityRolesMetaDatagetSecurityRoles()Returns the security-role mapping.
-
-
-
Constructor Detail
-
EJBSecurityMetaData
public EJBSecurityMetaData(ComponentConfiguration componentConfiguration)
- Parameters:
componentConfiguration- Component configuration of the Jakarta Enterprise Beans component
-
-
Method Detail
-
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) applicable for the Jakarta Enterprise Beans. Returns an empty map if no role links are configured - Returns:
-
-