Creating a custom security adapter
The Java Components security adapter is designed so that other applications can authenticate users and log into Java Components using a URL. When a URL activates a custom Java Components security adapter, access is granted based on the security adapter’s logic. A Java Components security adapter establishes an additional layer of logic to the existing Java Components, as shown in Figure 10‑1.
Figure 10‑1 Java Components security model with an optional security adapter
The Java Components Login module creates a Properties object that contains the values of configuration settings that correspond to the class’s public fields before calling the authenticate( ) method. These values are gathered from the entries in the <context_root>\WEB-INF\web.xml configuration file.
To create a custom security adapter, perform the following steps:
*Ensure that your application can access the IPSE Java classes.
*Create a Java class that implements the custom security adapter class for IPSE.
*Compile, compress, and move the new class into the class libraries for the Java Components.
*Set the Java Components configuration file web.xml to use the new class.
*Deploy the Custom Security Adapter.