xmlBlaster 2.2.0 client API

org.xmlBlaster.client
Class PluginLoader

java.lang.Object
  extended by org.xmlBlaster.client.PluginLoader

public class PluginLoader
extends java.lang.Object

PluginLoader is responsible for loading and initialization of client secuirty plugins. Either the client application chooses an appropriate plugin, or the

xmlBlaster.properties
file states, which plugin has to be used, by using the Security.Client.DefaultPlugin-Option. Syntax: Security.Client.DefaultPlugin=PluginType,PluginVersion Hint: Type and version must be the type and version of a valid and declared plugin. Example: Security.Client.DefaultPlugin=gui,1.0 Security.Client.Plugin[gui][1.0]=org.xmlBlaster.authentication.ClientSecurityHelper If neither the application, nor the config enforce a specific plugin, the Dummy-Plugin is used (old xmlBlaster behavior).


Constructor Summary
PluginLoader(Global glob)
           
 
Method Summary
 org.xmlBlaster.authentication.plugins.I_ClientPlugin getClientPlugin(java.lang.String mechanism, java.lang.String version)
          Load another plugin.
 org.xmlBlaster.authentication.plugins.I_ClientPlugin getCurrentClientPlugin()
          Get the currently used plugin
 java.lang.String getType()
          Get the type of the currently used plugin
 java.lang.String getVersion()
          Get the Version of the currently used plugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginLoader

public PluginLoader(Global glob)
Method Detail

getType

public java.lang.String getType()
Get the type of the currently used plugin

Returns:
String

getVersion

public java.lang.String getVersion()
Get the Version of the currently used plugin

Returns:
String

getCurrentClientPlugin

public org.xmlBlaster.authentication.plugins.I_ClientPlugin getCurrentClientPlugin()
                                                                            throws XmlBlasterException
Get the currently used plugin

Returns:
I_ClientPlugin
Throws:
XmlBlasterException

getClientPlugin

public org.xmlBlaster.authentication.plugins.I_ClientPlugin getClientPlugin(java.lang.String mechanism,
                                                                            java.lang.String version)
                                                                     throws XmlBlasterException
Load another plugin.

Parameters:
String - The type of the plugin, e.g. "ldap"
String - The version of the plugin, e.g. "1.0"
Returns:
I_ClientPlugin
Throws:
XmlBlasterException - Thrown if the plugin wasn't loadable or initializable

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.