xmlBlaster 2.2.0 API

org.xmlBlaster.authentication
Class AuthenticateProtector

java.lang.Object
  extended by org.xmlBlaster.authentication.AuthenticateProtector
All Implemented Interfaces:
I_Authenticate

public final class AuthenticateProtector
extends java.lang.Object
implements I_Authenticate

AuthenticateProtector encapsulates Authenticate.java for security reasons.


Field Summary
private  Authenticate authenticate
           
private  AvailabilityChecker availabilityChecker
           
private  ServerScope glob
           
private static java.util.logging.Logger log
           
 
Constructor Summary
AuthenticateProtector(ServerScope global, Authenticate authenticate)
           
 
Method Summary
 java.lang.String connect(AddressServer addressServer, java.lang.String connectQos_literal)
          helper
 java.lang.String connect(AddressServer addressServer, java.lang.String connectQos_literal, java.lang.String secretSessionId)
           
 ConnectReturnQosServer connect(ConnectQosServer xmlQos)
          helper
 ConnectReturnQosServer connect(ConnectQosServer xmlQos, java.lang.String secretSessionId)
          helper
 void connectionState(java.lang.String secretSessionId, ConnectionStateEnum state)
          A protocol may inform the client is lost (currently only the SOCKET protocol plugin supports it)
 void disconnect(AddressServer addressServer, java.lang.String secretSessionId, java.lang.String qos_literal)
           
 ServerScope getGlobal()
           
 I_AdminSubject getSubjectInfoByName(SessionName sessionName)
          Administrative access.
 I_XmlBlaster getXmlBlaster()
           
 java.lang.String ping(AddressServer addressServer, java.lang.String qos)
          Ping xmlBlaster if everything is OK, checks the availability.
 boolean sessionExists(java.lang.String sessionId)
           
 void shutdown()
           
 java.lang.String toXml()
           
 SessionInfo unsecureCreateSession(SessionName loginName)
          Deprecated. Security hole, currently need by MainGUI.java
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

glob

private final ServerScope glob

log

private static java.util.logging.Logger log

authenticate

private final Authenticate authenticate

availabilityChecker

private final AvailabilityChecker availabilityChecker
Constructor Detail

AuthenticateProtector

public AuthenticateProtector(ServerScope global,
                             Authenticate authenticate)
                      throws XmlBlasterException
Throws:
XmlBlasterException
Method Detail

getGlobal

public ServerScope getGlobal()
Specified by:
getGlobal in interface I_Authenticate

getXmlBlaster

public I_XmlBlaster getXmlBlaster()
Specified by:
getXmlBlaster in interface I_Authenticate

sessionExists

public boolean sessionExists(java.lang.String sessionId)
Specified by:
sessionExists in interface I_Authenticate

connect

public final ConnectReturnQosServer connect(ConnectQosServer xmlQos)
                                     throws XmlBlasterException
helper

Specified by:
connect in interface I_Authenticate
Throws:
XmlBlasterException
See Also:
The interface.connect requirement

connect

public final ConnectReturnQosServer connect(ConnectQosServer xmlQos,
                                            java.lang.String secretSessionId)
                                     throws XmlBlasterException
helper

Specified by:
connect in interface I_Authenticate
Throws:
XmlBlasterException

connect

public final java.lang.String connect(AddressServer addressServer,
                                      java.lang.String connectQos_literal)
                               throws XmlBlasterException
helper

Specified by:
connect in interface I_Authenticate
Throws:
XmlBlasterException
See Also:
The interface.connect requirement

connect

public final java.lang.String connect(AddressServer addressServer,
                                      java.lang.String connectQos_literal,
                                      java.lang.String secretSessionId)
                               throws XmlBlasterException
Specified by:
connect in interface I_Authenticate
Throws:
XmlBlasterException

disconnect

public final void disconnect(AddressServer addressServer,
                             java.lang.String secretSessionId,
                             java.lang.String qos_literal)
                      throws XmlBlasterException
Specified by:
disconnect in interface I_Authenticate
Throws:
XmlBlasterException
See Also:
The interface.disconnect requirement

ping

public final java.lang.String ping(AddressServer addressServer,
                                   java.lang.String qos)
Ping xmlBlaster if everything is OK, checks the availability.

Specified by:
ping in interface I_Authenticate
Returns:
"" if we are ready, otherwise the current run level string
See Also:
AvailabilityChecker.getStatus(String)

connectionState

public void connectionState(java.lang.String secretSessionId,
                            ConnectionStateEnum state)
Description copied from interface: I_Authenticate
A protocol may inform the client is lost (currently only the SOCKET protocol plugin supports it)

Specified by:
connectionState in interface I_Authenticate
state - ConnectionStateEnum.DEAD

getSubjectInfoByName

public I_AdminSubject getSubjectInfoByName(SessionName sessionName)
                                    throws XmlBlasterException
Administrative access.

Specified by:
getSubjectInfoByName in interface I_Authenticate
Throws:
XmlBlasterException

unsecureCreateSession

public SessionInfo unsecureCreateSession(SessionName loginName)
                                  throws XmlBlasterException
Deprecated. Security hole, currently need by MainGUI.java

Throws:
XmlBlasterException

toXml

public java.lang.String toXml()
                       throws XmlBlasterException
Specified by:
toXml in interface I_Authenticate
Throws:
XmlBlasterException

shutdown

public final void shutdown()

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.