All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class NET.shudo.moba.net.AccessControler

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

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


Variable Index

 o DEFAULT_POLICY

Constructor Index

 o AccessControler(File)
 o AccessControler(File, boolean)
 o AccessControler(InputStream)
 o AccessControler(InputStream, boolean)
 o AccessControler(String)
 o AccessControler(String, boolean)

Method Index

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

Variables

 o DEFAULT_POLICY
 public static final boolean DEFAULT_POLICY

Constructors

 o AccessControler
 public AccessControler(String filename) throws IOException
 o AccessControler
 public AccessControler(File file) throws IOException
 o AccessControler
 public AccessControler(InputStream in) throws IOException
 o AccessControler
 public AccessControler(String filename,
                        boolean debug) throws IOException
 o AccessControler
 public AccessControler(File file,
                        boolean debug) throws IOException
 o AccessControler
 public AccessControler(InputStream 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