idman.rmi.impl
Class WorkerImpl

java.lang.Object
  |
  +--idman.mngt.Worker
        |
        +--idman.rmi.impl.WorkerImpl
All Implemented Interfaces:
org.ssonet.net.ConnectionListener, java.lang.Runnable, org.ssonet.net.SSONETContextListener

public class WorkerImpl
extends Worker

Vermittler für den Aufbau und Betrieb einer Verbindung.

Version:
$Id: WorkerImpl.java,v 1.9 2004/02/12 08:09:10 tk4 Exp $
Author:
Thomas Kriegelstein

Field Summary
(package private) static boolean debug
           
protected  idman.rmi.impl.RemoteManagementImpl management
           
 
Fields inherited from class idman.mngt.Worker
context, factory, fromremote, localPort, localSock, remoteSock, runner, serv, stop, toremote
 
Fields inherited from interface org.ssonet.net.ConnectionListener
FINISHED_STATE, INIT_STATE, MECHANISMS_NEGOTIATION, NOT_STARTED_STATE, RUNNING_STATE, SECURITY_GOAL_NEGOTIATION
 
Constructor Summary
WorkerImpl(idman.rmi.impl.RemoteManagementImpl management, idman.mngt.RemoteSocketFactory factory, idman.mngt.Context context)
          Konstruktor.
 
Method Summary
 boolean decideSecurityGoal(int securityGoal, org.ssonet.net.ActionConfiguration ownConfiguration, org.ssonet.net.SSONETContext context)
           
 void negotiationRequestReceived(org.ssonet.net.SSONETContext context, int negotiationType)
           
 void run()
          Nimmt Verbindung entgegen und schleusst die Daten durch.
 
Methods inherited from class idman.mngt.Worker
connectionStateChanged, contextChanged, createSocket, getLocalPort, replaceContext, start, stop, waitRunning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

management

protected idman.rmi.impl.RemoteManagementImpl management

debug

static boolean debug
Constructor Detail

WorkerImpl

public WorkerImpl(idman.rmi.impl.RemoteManagementImpl management,
                  idman.mngt.RemoteSocketFactory factory,
                  idman.mngt.Context context)
Konstruktor.

Parameters:
management - Verweis auf das erzeugende Management zur Benachrichtigung bei Verbindungsende.
factory - Fabrik um mit SSL geschützte oder normale Sockets verwenden zu können.
context - Verbindungsdaten.
Method Detail

run

public void run()
Nimmt Verbindung entgegen und schleusst die Daten durch.


negotiationRequestReceived

public void negotiationRequestReceived(org.ssonet.net.SSONETContext context,
                                       int negotiationType)

decideSecurityGoal

public boolean decideSecurityGoal(int securityGoal,
                                  org.ssonet.net.ActionConfiguration ownConfiguration,
                                  org.ssonet.net.SSONETContext context)


Copyright © 2003 DRIM Team. All Rights Reserved.