![Red Hat Application Server Скачать руководство пользователя страница 153](http://html.mh-extra.com/html/red-hat/application-server/application-server_manual_1427406153.webp)
Chapter 13.
Security Management
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
security-role
elements is the EJB-JAR file level,
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.EJBHome
and
javax.ejb.EJBObject
interfaces). The method permissions relationship includes the pair
(R, M)
only if the security role
R
is allowed to invoke the method
M
.
Содержание Application Server
Страница 1: ...Red Hat Application Server JOnAS User Guide ...
Страница 8: ......
Страница 22: ...14 Chapter 1 Java Open Application Server JOnAS a J2EE Platform ...
Страница 58: ...50 Chapter 3 JOnAS Configuration ...
Страница 66: ...58 Chapter 5 JOnAS Class Loader Hierarchy ...
Страница 78: ...70 Chapter 6 JOnAS Command Reference ...
Страница 80: ......
Страница 86: ...78 Chapter 7 Developing Session Beans ...
Страница 136: ...128 Chapter 9 Developing Message Driven Beans ...
Страница 142: ...134 Chapter 10 Defining the Deployment Descriptor ...
Страница 148: ...140 Chapter 11 Transactional Behavior of EJB Applications ...
Страница 158: ...150 Chapter 14 EJB Packaging ...
Страница 162: ...154 Chapter 15 Application Deployment and Installation Guide ...
Страница 164: ......
Страница 176: ...168 Chapter 18 WAR Packaging ...
Страница 178: ......
Страница 184: ...176 Chapter 20 Defining the Client Deployment Descriptor ...
Страница 186: ...178 Chapter 21 Client Packaging ...
Страница 188: ......
Страница 192: ...184 Chapter 23 EAR Packaging ...
Страница 194: ......
Страница 200: ...192 Chapter 24 JOnAS Services ...
Страница 204: ...196 Chapter 25 JOnAS and the Connector Architecture ...
Страница 222: ...214 Chapter 27 Ant EJB Tasks Using EJB JAR ...
Страница 234: ...226 Chapter 29 Web Services with JOnAS ...
Страница 236: ......
Страница 260: ...252 Chapter 34 How to use Axis in JOnAS ...
Страница 270: ...262 Chapter 36 Web Service Interoperability between JOnAS and BEA WebLogic ...
Страница 296: ......