Example Applications in the Application Server
If you have installed the Application Server's
samples
server, you will have even more example applications to help you in the development of your Java EE applications. The following is a list of a few of the example applications that add security to an application in a way that is not yet covered in this tutorial:
<
AS_HOME
>/samples/security/ldaprealm/apps/dynamicgroup/docs/index.html
The LDAP Dynamic Group Realm sample application consists of an enterprise bean and an application client. The methods of the enterprise bean have been associated with either the
Administrator
role or theSecret
role in the enterprise bean deployment descriptor. The idea is to associate theAdministrator
role with a dynamic LDAP group, calledldapdynamicgroup
. Then the application client verifies that user names belonging toldapdynamicgroup
have access to methods of the EJB that have been associated with theAdministrator
role, while access to methods not associated with that role will be denied.<
AS_HOME
>/samples/security/realms/apps/rdbms/docs/index.html
This sample application demonstrates using a custom security realm. You can use any JDBC-compliant relational database server.