Show TOC Start of Content Area

Process documentation Create and Configure a Login Module  Locate the document in its SAP Library structure

Purpose

If you need to secure an application you develop, you can do this using your own login module. This login module allows you to perform authentication in a different way to those provided with the J2EE Engine.

By the end of this tutorial, you will be able to:

·        Use the SAP NetWeaver Developer Studio to develop your own login module.

·        Deploy the login module to the J2EE Engine.

·        Configure the login module on the J2EE Engine.

Prerequisites

System, Installed Applications, and Authorizations

·        SAP NetWeaver Developer Studio is installed.

·        J2EE Engine is installed.

·        JDK 1.4 of the SUN Microsystems is installed.

·        You have administrative privileges to manage the configuration of the login modules on J2EE Engine.

·        You have created a user for testing the login module on the J2EE Engine.

Knowledge

·        Java programming language and JAAS authentication model.

·        Managing the views and perspectives on the SAP NetWeaver Developer studio.

Process Flow

In this tutorial you take the following steps:

...

       1.      Create a Java project that allows you to develop and implement a Java class. This class is compiled and exported in a JAR file:

                            a.      Create a new Java project using SAP NetWeaver Developer Studio.

                            b.      Implement the login module source code.

                            c.      Set the classpath and compile the login module.

                            d.      Export the class in a JAR file.

       2.      Create a library project that allows you to make the required references to the Security Provider service of the J2EE Engine. Having finished that, you create a new SDA file that contains the login module. You can deploy the SDA on the J2EE Engine:

                            a.      Create a new library project using SAP NetWeaver Developer Studio.

                            b.      Make reference to the Security Provider service of the J2EE Engine.

                            c.      Set the classpath to the JAR. file.

                            d.      Make reference to the JAR file.

                            e.      Build a SDA file.

       3.      Deploy the login module to the J2EE Engine.

       4.      Configure the login module on the J2EE Engine:

                            a.      Configure the Login Module Usage.

                            b.      Add a reference to the Security Provider service classloader.

                            c.      Configure an application to use the login module.

Example

For an example login module, see Example Login Module.

Next Step

Creating a New Java Project

 

 

End of Content Area