TelnetD at SF

net.wimpi.telnetd.net
Interface ConnectionFilter


public interface ConnectionFilter

Interface defining a generic IP level connection filter.
Due to the fact that this task depends heavily on application context, I chose a very generic way of applying IP level connection filtering.

Implementations should consider following issues:

Version:
2.0 (13/03/2005)
Author:
Dieter Wimberger

Method Summary
 void initialize(java.util.Properties props)
          Initializes this ConnectionFilter.
 boolean isAllowed(java.net.InetAddress ip)
          Tests if a given ip address is allowed to connect.
 

Method Detail

initialize

public void initialize(java.util.Properties props)
Initializes this ConnectionFilter.

Parameters:
props - the properties of the listener that instantiated this ConnectionFilter.

isAllowed

public boolean isAllowed(java.net.InetAddress ip)
Tests if a given ip address is allowed to connect.

Parameters:
ip - the address to be tested.
Returns:
true if allowed to connect, false otherwise.

TelnetD at SF

Copyright © 2000-2005 Dieter Wimberger.