com.ls.lars.security
Class ConnectionController

java.lang.Object
  |
  +--com.ls.lars.security.ConnectionController

public class ConnectionController
extends Object

This component is used by the AgentPlatformSecurity for checking wether or not a remote client is allowed to connect to the local platform.

Version:
$Revision: 1.21 $
Author:
Last modified by $Author: MFehrenbach $

Inner Class Summary
 class ConnectionController.AccessControl
          This component is used for configuring the ConnectionController.
 
Method Summary
static boolean checkConnectionRequest(String agentName, String ipAddress, String connectionType)
          checks whether an agent having the given name, homePlatform, IP address is allowed to connect to the local platform
static ConnectionController.AccessControl createController()
          creates an empty AccessControl object & initiates it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createController

public static ConnectionController.AccessControl createController()
creates an empty AccessControl object & initiates it
Returns:
an AccessControler object

checkConnectionRequest

public static boolean checkConnectionRequest(String agentName,
                                             String ipAddress,
                                             String connectionType)
checks whether an agent having the given name, homePlatform, IP address is allowed to connect to the local platform
Parameters:
agentName - the name of the connecting agent
ipAddress - that platform's IP address
connectionType - the type of the conection
Returns:
true, if the connection is allowed