public abstract class JSSESocketFactory extends ServerSocketFactory
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
clientAuth |
protected String[] |
enabledCiphers |
protected boolean |
initialized |
protected static com.sun.org.apache.commons.logging.Log |
log |
protected SSLServerSocketFactory |
sslProxy |
attributes, context| Constructor and Description |
|---|
JSSESocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
Socket |
acceptSocket(ServerSocket socket)
Wrapper function for accept().
|
ServerSocket |
createSocket(int port)
Returns a server socket which uses all network interfaces on
the host, and is bound to a the specified port.
|
ServerSocket |
createSocket(int port,
int backlog)
Returns a server socket which uses all network interfaces on
the host, is bound to a the specified port, and uses the
specified connection backlog.
|
ServerSocket |
createSocket(int port,
int backlog,
InetAddress ifAddress)
Returns a server socket which uses only the specified network
interface on the local host, is bound to a the specified port,
and uses the specified connection backlog.
|
protected String[] |
getEnabledCiphers(String requestedCiphers,
String[] supportedCiphers) |
protected abstract String[] |
getEnabledProtocols(SSLServerSocket socket,
String requestedProtocols) |
protected KeyStore |
getKeystore(String pass) |
protected String |
getKeystorePassword() |
protected KeyStore |
getTrustStore() |
void |
handshake(Socket sock)
Extra function to initiate the handshake.
|
abstract void |
init()
Reads the keystore and initializes the SSL socket factory.
|
protected abstract void |
setEnabledProtocols(SSLServerSocket socket,
String[] protocols)
Set the SSL protocol variants to be enabled.
|
getDefault, getSSLContext, initSocket, setAttributeprotected static final com.sun.org.apache.commons.logging.Log log
protected boolean initialized
protected boolean clientAuth
protected SSLServerSocketFactory sslProxy
protected String[] enabledCiphers
public ServerSocket createSocket(int port) throws IOException
ServerSocketFactorycreateSocket in class ServerSocketFactoryport - the port to listen toIOException - for networking errorspublic ServerSocket createSocket(int port, int backlog) throws IOException
ServerSocketFactorycreateSocket in class ServerSocketFactoryport - the port to listen tobacklog - how many connections are queuedIOException - for networking errorspublic ServerSocket createSocket(int port, int backlog, InetAddress ifAddress) throws IOException
ServerSocketFactorycreateSocket in class ServerSocketFactoryport - the port to listen tobacklog - how many connections are queuedifAddress - the network interface address to useIOException - for networking errorspublic Socket acceptSocket(ServerSocket socket) throws IOException
ServerSocketFactoryacceptSocket in class ServerSocketFactoryIOExceptionpublic void handshake(Socket sock) throws IOException
ServerSocketFactoryhandshake in class ServerSocketFactoryIOExceptionprotected String[] getEnabledCiphers(String requestedCiphers, String[] supportedCiphers)
protected String getKeystorePassword()
protected KeyStore getKeystore(String pass) throws IOException
IOExceptionprotected KeyStore getTrustStore() throws IOException
IOExceptionpublic abstract void init()
throws IOException
init in class ServerSocketFactoryIOExceptionprotected abstract String[] getEnabledProtocols(SSLServerSocket socket, String requestedProtocols)
protected abstract void setEnabledProtocols(SSLServerSocket socket, String[] protocols)
socket - the SSLServerSocket.protocols - the protocols to use.Copyright © 2005–2017 Oracle Corporation. All rights reserved.