Security Management; Introduction; Declarative Security Management - Red Hat APPLICATION SERVER - JONAS Manual

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

This chapter is for the Enterprise Bean provider; that is, the person in charge of developing the soft-
ware components on the server side.

13.1. Introduction

The EJB architecture encourages the Bean programmer to implement the Enterprise Bean class with-
out hard-coding the security policies and mechanisms into the business methods.

13.2. Declarative Security Management

The application assembler can define a security view of the Enterprise Beans contained in the EJB-
JAR file. The security view consists of a set of security roles. A security role is a semantic grouping
of permissions for a given type of application user that allows that user to successfully use the ap-
plication. The application assembler can define (declaratively in the deployment descriptor) method
permissions for each security role. A method permission is a permission to invoke a specified group
of methods for the Enterprise Beans' home and remote interfaces. The security roles defined by the
application assembler present this simplified security view of the Enterprise Beans application to the
deployer; the deployer's view of security requirements for the application is the small set of security
roles, rather than a large number of individual methods.
13.2.1. Security Roles
The application assembler can define one or more security roles in the deployment descriptor. The
application assembler then assigns groups of methods of the Enterprise Beans' home and remote
interfaces to the security roles in order to define the security view of the application.
The scope of the security roles defined in the
and this includes all the Enterprise Beans in the EJB-JAR file.
...
assembly-descriptor
security-role
role-name tomcat /role-name
/security-role
...
/assembly-descriptor
13.2.2. Method Permissions
After defining security roles for the Enterprise Beans in the EJB-JAR file, the application assembler
can also specify the methods of the remote and home interfaces that each security role can invoke.
Method permissions are defined as a binary relationship in the deployment descriptor from the
set of security roles to the set of methods of the home and remote interfaces of the Enterprise
Beans, including all their super interfaces (including the methods of the
javax.ejb.EJBObject
only if the security role
interfaces). The method permissions relationship includes the pair
is allowed to invoke the method
R

Security Management

elements is the EJB-JAR file level,
security-role
.
M
Chapter 13.
javax.ejb.EJBHome
(R, M)
and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Application server

Table of Contents