public interface ModuleFactory
To register an instance of a ModuleFactory, you must do the following:
ModuleFactory factory = new YourModuleFactory(); com.wm.app.b2b.server.AuthenticationManager.registerMechanism("basic", factory);
The factory can be unregistered by calling:
com.wm.app.b2b.server.AuthenticationManager.unregisterMechanism("basic");
You can automate the registeration and deregistration process using startup and shutdown services. For details, see "Customizing Authentication" in the webMethods Integration Server Administrator's Guide.
The factory interface allows you to manage the way in which instances of an authentication module are returned. Depending on your situation, you may want to implement the getInstance method in one of the following ways:
Modifier and Type | Method and Description |
---|---|
Module |
getInstance()
Deprecated.
Returns an instance of an authentication module.
|
Module getInstance()