xmlBlaster 2.1.0 API

org.xmlBlaster.protocol.corba
Class AuthServerImpl

java.lang.Object
  extended by org.xmlBlaster.protocol.corba.AuthServerImpl
All Implemented Interfaces:
AuthServerOperations

public class AuthServerImpl
extends java.lang.Object
implements AuthServerOperations

Implements the xmlBlaster AuthServer CORBA Interface.
All real work is directly delegated to org.xmlBlaster.authentication.Authenticate


Field Summary
private  AddressServer addressServer
          extends org.omg.PortableServer.Servant
private  I_Authenticate authenticate
           
private  Global glob
           
private static java.util.logging.Logger log
           
private static java.lang.String ME
           
private  org.omg.CORBA.ORB orb
           
private  org.omg.PortableServer.POA rootPOA
          The root POA
private  org.omg.PortableServer.POA xmlBlasterPOA
          We use our own, customized POA
private  java.lang.String xmlBlasterPOA_name
          This specialized POA controlles the xmlBlaster server
private  ServerPOATie xmlBlasterServant
           
 
Constructor Summary
AuthServerImpl(Global glob, org.omg.CORBA.ORB orb, AddressServer addressServer, I_Authenticate authenticate, I_XmlBlaster blaster)
          One instance implements a server.
 
Method Summary
 java.lang.String connect(java.lang.String qos_literal)
          Called by the CORBA layer.
private  ConnectReturnQosServer connectIntern(java.lang.String qos_literal)
           
 void disconnect(java.lang.String sessionId, java.lang.String qos_literal)
           
 I_Authenticate getAuthenticationService()
           
 org.omg.CORBA.ORB getOrb()
           
 java.lang.String getSessionId(org.omg.CORBA.Object xmlServer)
           
 Server login(java.lang.String loginName, java.lang.String passwd, java.lang.String qos_literal)
          Authentication of a client.
 void logout(Server xmlServer)
          logout of a client.
 java.lang.String ping(java.lang.String qos)
          Ping to check if xmlBlaster is alive.
 void shutdown()
           
 
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

glob

private final Global glob

log

private static java.util.logging.Logger log

orb

private final org.omg.CORBA.ORB orb

authenticate

private final I_Authenticate authenticate

xmlBlasterPOA_name

private final java.lang.String xmlBlasterPOA_name
This specialized POA controlles the xmlBlaster server

See Also:
Constant Field Values

xmlBlasterPOA

private org.omg.PortableServer.POA xmlBlasterPOA
We use our own, customized POA


rootPOA

private org.omg.PortableServer.POA rootPOA
The root POA


xmlBlasterServant

private ServerPOATie xmlBlasterServant

addressServer

private AddressServer addressServer
extends org.omg.PortableServer.Servant

Constructor Detail

AuthServerImpl

public AuthServerImpl(Global glob,
                      org.omg.CORBA.ORB orb,
                      AddressServer addressServer,
                      I_Authenticate authenticate,
                      I_XmlBlaster blaster)
One instance implements a server. Authenticate creates a singlorg.xmlBlaster.SimpleRunLevelTeste instance of the xmlBlaster.Server. Clients need first to do a login, from where they get an IOR which serves them, one thread for each request.

Every client has its own IOR, but in reality this IOR is mapped to a single servant.

This allows:
- Identification of the client thru its unique IOR
- Only a few threads are enough to serve many clients

Parameters:
The - orb
authenticate - The authentication service
blaster - The interface to access xmlBlaster
Method Detail

getOrb

public org.omg.CORBA.ORB getOrb()

getAuthenticationService

public I_Authenticate getAuthenticationService()

login

public Server login(java.lang.String loginName,
                    java.lang.String passwd,
                    java.lang.String qos_literal)
             throws XmlBlasterException
Authentication of a client.

Specified by:
login in interface AuthServerOperations
Returns:
The Server reference
Throws:
XmlBlasterException

ping

public java.lang.String ping(java.lang.String qos)
Ping to check if xmlBlaster is alive.

Specified by:
ping in interface AuthServerOperations
See Also:
org.xmlBlaster.protocol.I_XmlBlaster#ping(String)

connect

public java.lang.String connect(java.lang.String qos_literal)
                         throws XmlBlasterException
Called by the CORBA layer. If qos_literal transports another sessionId (e.g. from a2Blaster) we leave this untouched. This CORBA sessionId (transported hidden in the IOR) is used as well

Specified by:
connect in interface AuthServerOperations
Throws:
XmlBlasterException

connectIntern

private ConnectReturnQosServer connectIntern(java.lang.String qos_literal)
                                      throws XmlBlasterException
Throws:
XmlBlasterException

disconnect

public void disconnect(java.lang.String sessionId,
                       java.lang.String qos_literal)
                throws XmlBlasterException
Specified by:
disconnect in interface AuthServerOperations
Throws:
XmlBlasterException

logout

public void logout(Server xmlServer)
            throws XmlBlasterException
logout of a client.

Specified by:
logout in interface AuthServerOperations
Parameters:
xmlServer - The handle you got from the login call
Throws:
XmlBlasterException

getSessionId

public final java.lang.String getSessionId(org.omg.CORBA.Object xmlServer)
                                    throws XmlBlasterException
Parameters:
xmlServer - org.xmlBlaster.protocol.corba.serverIdl.Server
Throws:
XmlBlasterException

shutdown

public void shutdown()

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.