public class SSLServerSocket
extends java.net.ServerSocket
| Constructor and Description |
|---|
SSLServerSocket(SSLContext ctx,
int port)
Create an SSLServerSocket specifying the port and backlog
|
SSLServerSocket(SSLContext ctx,
java.lang.Integer port,
java.lang.Integer backlog,
java.net.InetAddress inetaddr)
Create an SSLServerSocket specifying the port, backlog, and listen
address.
|
SSLServerSocket(SSLContext ctx,
int port,
int backlog)
Create an SSLServerSocket specifying the port only
|
SSLServerSocket(SSLContext ctx,
int port,
int backlog,
java.net.InetAddress inetaddr)
Create an SSLServerSocket specifying the port, backlog, and listen
address
|
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
accept()
Accept a connection on this socket, and perform the
SSL server handshake in the process
|
static void |
main(java.lang.String[] args)
Internal test code
|
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringpublic SSLServerSocket(SSLContext ctx, java.lang.Integer port, java.lang.Integer backlog, java.net.InetAddress inetaddr) throws java.io.IOException
ctx - the SSLContext to use to create this socketport - the port to listen onbacklog - the number of connections to queue upinetaddr - the address to listen on, assuming a multihomes machine. A null value listens on all interfacesjava.io.IOException - if something goes wrong creating the socketpublic SSLServerSocket(SSLContext ctx, int port, int backlog, java.net.InetAddress inetaddr) throws java.io.IOException
ctx - the SSLContext to use to create this socketport - the port to listen onbacklog - the number of connections to queue upinetaddr - the address to listen on, assuming a multihomes machine. A null value listens on all interfacesjava.io.IOException - if something goes wrong creating the socketpublic SSLServerSocket(SSLContext ctx, int port) throws java.io.IOException
ctx - the SSLContext to use to create this socketport - the port to listen onjava.io.IOException - if something goes wrong creating the socketpublic SSLServerSocket(SSLContext ctx, int port, int backlog) throws java.io.IOException
ctx - the SSLContext to use to create this socketport - the port to listen onbacklog - the number of connections to queue upjava.io.IOException - if something goes wrong creating the socketpublic java.net.Socket accept()
throws java.io.IOException
accept in class java.net.ServerSocketjava.io.IOException - if an error occurs either during the accept or the handshakepublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionCopyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.