xmlBlaster 2.2.0 API

org.xmlBlaster.authentication.plugins.htpasswd
Class Manager

java.lang.Object
  extended by org.xmlBlaster.authentication.plugins.htpasswd.Manager
All Implemented Interfaces:
I_Manager, I_Plugin

public class Manager
extends java.lang.Object
implements I_Manager

This security manager just implements the necessary interfaces and delegates login checks (authentication of a client) to LDAP.

Authorization is not implemented, please read javadoc of LdapGateway if you need LDAP authorization.

Author:
Cyrille Giquello 16/11/01 09:06

Field Summary
private  Global glob
           
private static java.util.logging.Logger log
           
private static java.lang.String ME
           
protected  java.util.Hashtable sessions
           
private static java.lang.String TYPE
           
private static java.lang.String VERSION
           
 
Constructor Summary
Manager()
           
 
Method Summary
 void changeSecretSessionId(java.lang.String oldSessionId, java.lang.String newSessionId)
           
 Global getGlobal()
           
 I_Session getSessionById(java.lang.String id)
          Get the I_Session which corresponds to the given sessionId

 java.lang.String getType()
           
 java.lang.String getVersion()
           
 void init(Global glob, PluginInfo pluginInfo)
          This method is called by the PluginManager (enforced by I_Plugin).
 void releaseSession(java.lang.String sessionId, java.lang.String qos_literal)
          Releases a reserved I_Session.
 I_Session reserveSession(java.lang.String sessionId)
          The session handling.
 void shutdown()
          Cleans up the resource.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

glob

private Global glob

log

private static java.util.logging.Logger log

ME

private static final java.lang.String ME
See Also:
Constant Field Values

TYPE

private static final java.lang.String TYPE
See Also:
Constant Field Values

VERSION

private static final java.lang.String VERSION
See Also:
Constant Field Values

sessions

protected java.util.Hashtable sessions
Constructor Detail

Manager

public Manager()
Method Detail

init

public void init(Global glob,
                 PluginInfo pluginInfo)
This method is called by the PluginManager (enforced by I_Plugin).

Specified by:
init in interface I_Plugin
See Also:
I_Plugin.init(org.xmlBlaster.util.Global,org.xmlBlaster.util.plugin.PluginInfo)

getGlobal

public final Global getGlobal()

getType

public java.lang.String getType()
Specified by:
getType in interface I_Manager
Specified by:
getType in interface I_Plugin

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface I_Manager
Specified by:
getVersion in interface I_Plugin

reserveSession

public I_Session reserveSession(java.lang.String sessionId)
                         throws XmlBlasterException
Description copied from interface: I_Manager
The session handling. org.xmlBlaster.authentication.Authenticate.connect(...) and login(...) calls this method to get a new I_Session and bind it to the session.

Specified by:
reserveSession in interface I_Manager
Throws:
XmlBlasterException

releaseSession

public void releaseSession(java.lang.String sessionId,
                           java.lang.String qos_literal)
Description copied from interface: I_Manager
Releases a reserved I_Session.

Specified by:
releaseSession in interface I_Manager

changeSecretSessionId

public void changeSecretSessionId(java.lang.String oldSessionId,
                                  java.lang.String newSessionId)
                           throws XmlBlasterException
Throws:
XmlBlasterException

getSessionById

public I_Session getSessionById(java.lang.String id)
Get the I_Session which corresponds to the given sessionId

Specified by:
getSessionById in interface I_Manager
Parameters:
String - The sessionId
Returns:
I_Session

shutdown

public void shutdown()
              throws XmlBlasterException
Description copied from interface: I_Plugin
Cleans up the resource.

Specified by:
shutdown in interface I_Plugin
Throws:
XmlBlasterException - if an exception occurs. The exception is handled by the RunLevelManager depending on how the plugin has been configured with the action:

<action do='STOP' onShutdownRunlevel='2' sequence='5' onFail='resource.configuration.pluginFailed'> If onFail is defined to something, the RunLevelManager will stop.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.