14.4.3. EJB Security Annotations

14.4.3.1. About EJB Security Annotations

EJBs use security annotations to pass information about security to the deployer. These include:
@DeclareRoles
Declares which roles are available.
@RolesAllowed, @PermitAll, @DenyAll
Specifies which method permissions are allowed. For information about method permissions, refer to Section 14.4.2.1, “About EJB Method Permissions”.
@RunAs
Configures the propagated security identify of a component.