public class SSLAcceptor extends Object implements Serve.Acceptor
Modifier and Type | Field and Description |
---|---|
static String |
ARG_ALGORITHM |
static String |
ARG_BACKLOG |
static String |
ARG_CLIENTAUTH |
static String |
ARG_IFADDRESS |
static String |
ARG_KEYPASS |
static String |
ARG_KEYSTOREFILE |
static String |
ARG_KEYSTOREPASS |
static String |
ARG_KEYSTORETYPE |
static String |
ARG_PORT |
static String |
ARG_PROTOCOL |
static int |
BACKLOG
default backlog
|
protected String |
keystoreFile
Pathname to the key store file to be used.
|
static String |
KEYSTORETYPE
Storage type of the key store file to be used.
|
static int |
PORT
default SSL port
|
static String |
protocol
SSL protocol variant to use.
|
static String |
PROTOCOL_HANDLER |
static String |
PROTOCOL_PACKAGES
The name of the system property containing a "|" delimited list of
protocol handler packages.
|
protected ServerSocket |
socket |
static String |
SUNX509
Certificate encoding algorithm to be used.
|
static String |
TLS
SSL protocol variant to use.
|
Constructor and Description |
---|
SSLAcceptor() |
Modifier and Type | Method and Description |
---|---|
Socket |
accept() |
void |
destroy() |
void |
init(Map inProperties,
Map outProperties) |
protected static void |
initHandler()
Register our URLStreamHandler for the "https:" protocol.
|
protected void |
initServerSocket(ServerSocket ssocket,
boolean clientAuth)
Set the requested properties for this server socket.
|
String |
toString() |
public static final String ARG_ALGORITHM
public static final String ARG_CLIENTAUTH
public static final String ARG_KEYSTOREFILE
public static final String ARG_KEYSTOREPASS
public static final String ARG_KEYSTORETYPE
public static final String ARG_KEYPASS
public static final String ARG_PROTOCOL
public static final String ARG_BACKLOG
public static final String ARG_IFADDRESS
public static final String ARG_PORT
public static final String PROTOCOL_HANDLER
public static final String PROTOCOL_PACKAGES
public static final String SUNX509
public static final int PORT
public static final int BACKLOG
public static final String KEYSTORETYPE
public static final String TLS
public static final String protocol
protected String keystoreFile
protected ServerSocket socket
public Socket accept() throws IOException
accept
in interface Serve.Acceptor
IOException
public void destroy() throws IOException
destroy
in interface Serve.Acceptor
IOException
public void init(Map inProperties, Map outProperties) throws IOException
init
in interface Serve.Acceptor
IOException
protected static void initHandler()
protected void initServerSocket(ServerSocket ssocket, boolean clientAuth)
ssocket
- The server socket to be configuredCopyright © 2014. All Rights Reserved.