|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.ServerSocket
org.smartfrog.sfcore.security.SFServerSocket
public class SFServerSocket
Extends ServerSocket so that it contains the security context, and configures properly the socket returned in the accept(), getting hold of the session...
| Constructor Summary | |
|---|---|
SFServerSocket(int port,
SFSecurityEnvironment secEnv)
Class Constructor. |
|
| Method Summary | |
|---|---|
java.net.Socket |
accept()
Listens for a connection to be made to this socket and accepts it. |
| Methods inherited from class java.net.ServerSocket |
|---|
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SFServerSocket(int port,
SFSecurityEnvironment secEnv)
throws java.io.IOException
port - The port numbersecEnv - A security environment that handles the configuration of
sockets.
java.io.IOException - In case error while creating server socket| Method Detail |
|---|
public java.net.Socket accept()
throws java.io.IOException
A new Socket s is created and, if there is a security
manager, the security manager's checkAccept method is
called with s.getInetAddress().getHostAddress() and
s.getPort() as its arguments to ensure the operation is
allowed. This could result in a SecurityException. We attach our custom
socket to the SocketImpl returned by the accept and wrap around it the
ssl socket.
accept in class java.net.ServerSocketjava.io.IOException - if an I/O error occurs when waiting for a
connection.SecurityManager.checkAccept(java.lang.String, int)
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||