xmlBlaster 2.1.0 API

org.xmlBlaster.authentication.plugins.simple
Class Manager

java.lang.Object
  extended by org.xmlBlaster.authentication.plugins.simple.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 allows everything - everybody may login, and everybody may do anything with the messages (publish, subscribe ...)

Author:
Wolfgang Kleinertz

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

(package private)  Subject getSubject(java.lang.String name)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

glob

private Global glob

sessions

private 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

final Global getGlobal()

getType

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

getVersion

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

reserveSession

public I_Session reserveSession(java.lang.String sessionId)
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

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

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

getSubject

Subject getSubject(java.lang.String name)
             throws XmlBlasterException
Throws:
XmlBlasterException

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.


xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.