Package org.jboss.as.ejb3.security
Class EJBSecurityMetaData
java.lang.Object
org.jboss.as.ejb3.security.EJBSecurityMetaData
Holds the Jakarta Enterprise Beans component level security metadata.
For per method specific security metadata, take a look at
EJBMethodSecurityAttribute
User: Jaikiran Pai-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the roles that have been declared by the bean.getRunAs()Returns the run-as role associated with this bean.Returns the run-as principal associated with this bean.Returns the security domain associated with the beanReturns the security role links (configured via <security-role-ref>) applicable for the Jakarta Enterprise Beans.org.jboss.metadata.javaee.spec.SecurityRolesMetaDataReturns the security-role mapping.
-
Constructor Details
-
EJBSecurityMetaData
- Parameters:
componentConfiguration- Component configuration of the Jakarta Enterprise Beans component
-
-
Method Details
-
getDeclaredRoles
Returns the roles that have been declared by the bean. Returns an empty set if there are no declared roles.- Returns:
-
getRunAs
Returns the run-as role associated with this bean. Returns null if there's no run-as role associated.- Returns:
-
getSecurityDomainName
Returns the security domain associated with the bean- Returns:
-
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
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:
-