org.apache.java.net
Class AuthenticatedSocket

java.lang.Object
  |
  +--java.net.Socket
        |
        +--org.apache.java.net.AuthenticatedSocket

public class AuthenticatedSocket
extends java.net.Socket

This class implements an authenticated server socket that binds to port and listens for authenticated connections. A socket connection to be authenticated must come from an IP address contained into a address filter list and go pass the authentication handshake.

See Also:
AuthenticatedServerSocket

Constructor Summary
AuthenticatedSocket(java.lang.String address, int port)
           
AuthenticatedSocket(java.lang.String address, int port, MessageDigest md, byte[] secret)
           
 
Methods inherited from class java.net.Socket
close, getInetAddress, getInputStream, getLocalAddress, getLocalPort, getOutputStream, getPort, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, setReceiveBufferSize, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticatedSocket

public AuthenticatedSocket(java.lang.String address,
                           int port,
                           MessageDigest md,
                           byte[] secret)
                    throws java.io.IOException,
                           AuthenticationException

AuthenticatedSocket

public AuthenticatedSocket(java.lang.String address,
                           int port)
                    throws java.io.IOException