All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class NET.shudo.moba.net.AccessController

java.lang.Object
   |
   +----NET.shudo.moba.net.AccessController

public class AccessController
extends Object
ネットワーク経由のアクセスを制御するクラス。
{allow,deny} [{hostname,IPaddress}[/netmask][:port] [username]]
現在、ポート番号は使っていない。


Variable Index

 o DEFAULT_POLICY

Constructor Index

 o AccessController(File)
 o AccessController(File, boolean)
 o AccessController(Reader)
 o AccessController(Reader, boolean)
 o AccessController(String)
 o AccessController(String, boolean)

Method Index

 o allow(InetAddress, String)
接続を認証する。
 o allow(Socket)
接続を認証する。

Variables

 o DEFAULT_POLICY
 public static final boolean DEFAULT_POLICY

Constructors

 o AccessController
 public AccessController(String filename) throws IOException
 o AccessController
 public AccessController(File file) throws IOException
 o AccessController
 public AccessController(Reader in) throws IOException
 o AccessController
 public AccessController(String filename,
                         boolean debug) throws IOException
 o AccessController
 public AccessController(File file,
                         boolean debug) throws IOException
 o AccessController
 public AccessController(Reader in,
                         boolean debug) throws IOException

Methods

 o allow
 public boolean allow(Socket sock)
接続を認証する。

 o allow
 public boolean allow(InetAddress addr,
                      String user)
接続を認証する。


All Packages  Class Hierarchy  This Package  Previous  Next  Index