idman.rmi.impl
Class RemoteManagementImpl

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--idman.rmi.impl.RemoteManagementImpl
All Implemented Interfaces:
ChainEvaluationListener, java.rmi.Remote, RemoteManagement, java.lang.Runnable, java.io.Serializable

public class RemoteManagementImpl
extends java.rmi.server.UnicastRemoteObject
implements RemoteManagement, ChainEvaluationListener, java.lang.Runnable

Anpassung von RMI auf das Management.

Version:
$Id: RemoteManagementImpl.java,v 1.16 2003/11/11 09:00:54 tk4 Exp $
Author:
Thomas Kriegelstein
See Also:
Serialized Form

Field Summary
protected static javax.xml.parsers.DocumentBuilder db
           
protected static javax.xml.parsers.DocumentBuilderFactory dbf
           
(package private) static boolean debug
           
protected  idman.mngt.RemoteSocketFactory factory
           
protected  org.ssonet.net.CertificateListener listener
           
protected  idman.mngt.Management manager
           
protected static java.util.HashMap map
           
protected static java.util.HashMap refMap
           
protected  java.util.Properties settings
           
protected static java.util.Stack stack
           
protected static javax.xml.transform.TransformerFactory tf
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface idman.rmi.RemoteManagement
ID
 
Constructor Summary
RemoteManagementImpl(idman.mngt.Management manager, idman.mngt.RemoteSocketFactory factory, java.util.Properties settings)
           
 
Method Summary
 void addRemoteContextListener(idman.rmi.RemoteContextListener listener, idman.rmi.RemoteContext remote)
           
 void anonymityLevelChanged(org.ssonet.net.SSONETContext context, int anonymityLevel)
           
 void anonymityStateChanged(org.ssonet.net.SSONETContext context, int anonymityState)
           
 idman.rmi.RemoteContext createRemoteContext(java.net.InetAddress host, int port, java.lang.String application, java.lang.String action)
           
protected  void del(java.rmi.server.ObjID id)
           
 void destroyRemoteContext(idman.rmi.RemoteContext remote)
           
 boolean doWarning(java.lang.String chainname, idman.rules.Condition cond, java.lang.String id, byte[] content, idman.mngt.Context context, java.lang.String parameter)
          Nachricht beim Auftreten einer Warnung.
protected  idman.mngt.Context get(java.rmi.server.ObjID id)
           
protected  idman.rmi.impl.RemoteContextImpl getRemote(java.rmi.server.ObjID id)
           
 int prepareConnection(idman.rmi.RemoteContext remote)
           
 void registerContext(idman.mngt.Context context)
           
 void removeRemoteContextListener(idman.rmi.RemoteContextListener listener, idman.rmi.RemoteContext remote)
           
 byte[][] requestData(java.lang.String id, java.lang.String[] recipient, java.lang.String[] purpose, java.lang.String retention, idman.rmi.RemoteContext remote)
           
 void run()
           
protected  void set(java.rmi.server.ObjID id, idman.rmi.impl.RemoteContextImpl c)
           
protected  void setRef(java.rmi.server.ObjID id, java.rmi.Remote r)
           
 byte[] signDocument(byte[] document, idman.rmi.RemoteContext remote)
           
 void unregisterContext(idman.mngt.Context context)
           
protected  void unsetRef(java.rmi.server.ObjID id)
           
 byte[][] verifyDocument(byte[] document, idman.rmi.RemoteContext remote)
           
 
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

map

protected static final java.util.HashMap map

refMap

protected static final java.util.HashMap refMap

stack

protected static final java.util.Stack stack

settings

protected java.util.Properties settings

manager

protected idman.mngt.Management manager

listener

protected org.ssonet.net.CertificateListener listener

factory

protected idman.mngt.RemoteSocketFactory factory

dbf

protected static javax.xml.parsers.DocumentBuilderFactory dbf

db

protected static javax.xml.parsers.DocumentBuilder db

tf

protected static javax.xml.transform.TransformerFactory tf

debug

static boolean debug
Constructor Detail

RemoteManagementImpl

public RemoteManagementImpl(idman.mngt.Management manager,
                            idman.mngt.RemoteSocketFactory factory,
                            java.util.Properties settings)
                     throws java.rmi.RemoteException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

setRef

protected void setRef(java.rmi.server.ObjID id,
                      java.rmi.Remote r)

unsetRef

protected void unsetRef(java.rmi.server.ObjID id)

set

protected void set(java.rmi.server.ObjID id,
                   idman.rmi.impl.RemoteContextImpl c)

get

protected idman.mngt.Context get(java.rmi.server.ObjID id)

getRemote

protected idman.rmi.impl.RemoteContextImpl getRemote(java.rmi.server.ObjID id)

del

protected void del(java.rmi.server.ObjID id)

registerContext

public void registerContext(idman.mngt.Context context)

unregisterContext

public void unregisterContext(idman.mngt.Context context)

doWarning

public boolean doWarning(java.lang.String chainname,
                         idman.rules.Condition cond,
                         java.lang.String id,
                         byte[] content,
                         idman.mngt.Context context,
                         java.lang.String parameter)
Description copied from interface: ChainEvaluationListener
Nachricht beim Auftreten einer Warnung. Sollte bei bloser Protokollierung immer false liefern.

Specified by:
doWarning in interface ChainEvaluationListener
Parameters:
chainname - Name der Regelkette.
cond - Regel deren Zutreffen die Warnung auslöste.
id - Name eines Datenfeldes oder null.
content - Inhalt eines Datenfeldes oder null.
context - Verbindungsdaten.
parameter - Zusätzliche Angabe zur Anpassung der Regel.
Returns:
false, wenn die Bearbeitung abgebrochen werden soll, true für deren Fortsetzung.

anonymityLevelChanged

public void anonymityLevelChanged(org.ssonet.net.SSONETContext context,
                                  int anonymityLevel)

anonymityStateChanged

public void anonymityStateChanged(org.ssonet.net.SSONETContext context,
                                  int anonymityState)

createRemoteContext

public idman.rmi.RemoteContext createRemoteContext(java.net.InetAddress host,
                                                   int port,
                                                   java.lang.String application,
                                                   java.lang.String action)
                                            throws java.rmi.RemoteException
Specified by:
createRemoteContext in interface RemoteManagement
java.rmi.RemoteException

destroyRemoteContext

public void destroyRemoteContext(idman.rmi.RemoteContext remote)
                          throws java.rmi.RemoteException
Specified by:
destroyRemoteContext in interface RemoteManagement
java.rmi.RemoteException

prepareConnection

public int prepareConnection(idman.rmi.RemoteContext remote)
                      throws java.rmi.RemoteException
Specified by:
prepareConnection in interface RemoteManagement
java.rmi.RemoteException

signDocument

public byte[] signDocument(byte[] document,
                           idman.rmi.RemoteContext remote)
                    throws java.rmi.RemoteException
Specified by:
signDocument in interface RemoteManagement
java.rmi.RemoteException

verifyDocument

public byte[][] verifyDocument(byte[] document,
                               idman.rmi.RemoteContext remote)
                        throws java.rmi.RemoteException
Specified by:
verifyDocument in interface RemoteManagement
java.rmi.RemoteException

requestData

public byte[][] requestData(java.lang.String id,
                            java.lang.String[] recipient,
                            java.lang.String[] purpose,
                            java.lang.String retention,
                            idman.rmi.RemoteContext remote)
                     throws java.rmi.RemoteException
Specified by:
requestData in interface RemoteManagement
java.rmi.RemoteException

addRemoteContextListener

public void addRemoteContextListener(idman.rmi.RemoteContextListener listener,
                                     idman.rmi.RemoteContext remote)
                              throws java.rmi.RemoteException
Specified by:
addRemoteContextListener in interface RemoteManagement
java.rmi.RemoteException

removeRemoteContextListener

public void removeRemoteContextListener(idman.rmi.RemoteContextListener listener,
                                        idman.rmi.RemoteContext remote)
                                 throws java.rmi.RemoteException
Specified by:
removeRemoteContextListener in interface RemoteManagement
java.rmi.RemoteException


Copyright © 2003 DRIM Team. All Rights Reserved.