xmlBlaster 2.2.0 API

org.xmlBlaster.protocol.rmi
Class AuthServerImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.xmlBlaster.protocol.rmi.AuthServerImpl
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, I_AuthServer

public class AuthServerImpl
extends java.rmi.server.UnicastRemoteObject
implements I_AuthServer

Interface to login to xmlBlaster.

Author:
xmlBlaster@marcelruff.info
See Also:
Serialized Form

Field Summary
private  AddressServer addressServer
           
private  I_Authenticate authenticate
           
private  Global glob
           
private static java.util.logging.Logger log
           
private static long serialVersionUID
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
AuthServerImpl(Global glob, AddressServer addressServer, I_Authenticate authenticate, I_XmlBlaster blasterNative)
          One instance implements an authentication server.
 
Method Summary
 java.lang.String connect(java.lang.String qos_literal)
          Login to xmlBlaster.
 void disconnect(java.lang.String sessionId, java.lang.String qos_literal)
           
 java.lang.String ping(java.lang.String qos)
          Ping to check if the authentication server is alive.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

glob

private final Global glob

log

private static java.util.logging.Logger log

authenticate

private final I_Authenticate authenticate

addressServer

private final AddressServer addressServer
Constructor Detail

AuthServerImpl

public AuthServerImpl(Global glob,
                      AddressServer addressServer,
                      I_Authenticate authenticate,
                      I_XmlBlaster blasterNative)
               throws java.rmi.RemoteException
One instance implements an authentication server.

This server delegates all requests to xmlBlaster.authenticate package

Parameters:
authenticate - The authentication service
blasterNative - The interface to access xmlBlaster
Throws:
java.rmi.RemoteException
Method Detail

connect

public java.lang.String connect(java.lang.String qos_literal)
                         throws java.rmi.RemoteException,
                                XmlBlasterException
Login to xmlBlaster.

Specified by:
connect in interface I_AuthServer
Parameters:
qos_literal - See ConnectQosServer.java
Returns:
The xml string from ConnectReturnQos.java
We could return the ConnectReturnQos object as well, but adding attributes to this object would force clients to install the new class declaration. In future we could use the Jini apporach here.
Throws:
java.rmi.RemoteException
XmlBlasterException
See Also:
ConnectQosServer, ConnectReturnQosServer

disconnect

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

ping

public java.lang.String ping(java.lang.String qos)
                      throws java.rmi.RemoteException
Ping to check if the authentication server is alive.

Specified by:
ping in interface I_AuthServer
Returns:
Currently an empty string ""
Throws:
java.rmi.RemoteException
See Also:
org.xmlBlaster.protocol.I_XmlBlaster#ping(String)

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.