COM.claymoresystems.ptls
Class SSLServerSocket
java.lang.Object
|
+--java.net.ServerSocket
|
+--COM.claymoresystems.ptls.SSLServerSocket
- public class SSLServerSocket
- extends java.net.ServerSocket
Constructor Summary |
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 |
Method Summary |
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 |
Methods inherited from class java.net.ServerSocket |
close, getInetAddress, getLocalPort, getSoTimeout, implAccept, setSocketFactory, setSoTimeout, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SSLServerSocket
public SSLServerSocket(SSLContext ctx,
java.lang.Integer port,
java.lang.Integer backlog,
java.net.InetAddress inetaddr)
throws java.io.IOException
- Create an SSLServerSocket specifying the port, backlog, and listen
address. We need this to support the CSJ interface, which is why
it duplicates the "int" version
- Parameters:
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 interfaces- Throws:
java.io.IOException
- if something goes wrong creating the socket
SSLServerSocket
public SSLServerSocket(SSLContext ctx,
int port,
int backlog,
java.net.InetAddress inetaddr)
throws java.io.IOException
- Create an SSLServerSocket specifying the port, backlog, and listen
address
- Parameters:
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 interfaces- Throws:
java.io.IOException
- if something goes wrong creating the socket
SSLServerSocket
public SSLServerSocket(SSLContext ctx,
int port)
throws java.io.IOException
- Create an SSLServerSocket specifying the port and backlog
- Parameters:
ctx
- the SSLContext to use to create this socketport
- the port to listen on- Throws:
java.io.IOException
- if something goes wrong creating the socket
SSLServerSocket
public SSLServerSocket(SSLContext ctx,
int port,
int backlog)
throws java.io.IOException
- Create an SSLServerSocket specifying the port only
- Parameters:
ctx
- the SSLContext to use to create this socketport
- the port to listen onbacklog
- the number of connections to queue up- Throws:
java.io.IOException
- if something goes wrong creating the socket
accept
public java.net.Socket accept()
throws java.io.IOException
- Accept a connection on this socket, and perform the
SSL server handshake in the process
- Overrides:
accept
in class java.net.ServerSocket
- Returns:
- an SSLSocket attached to the opposite end
- Throws:
java.io.IOException
- if an error occurs either during the accept or the handshake
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Internal test code
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.