public class SSLTcpProxyService extends TcpProxyService implements SSLTcpProxyServiceMBean
Modifier and Type | Field and Description |
---|---|
private static String |
CIPHER |
private static String |
CLIENT_AUTH |
private static String |
CLIENT_AUTH_DFLT |
private static String |
CLIENT_AUTH_NEED |
private static String |
CLIENT_AUTH_NONE |
private static String |
CLIENT_AUTH_WANT |
private static String |
clientAuth |
private static String |
KS |
private static String |
KS_PASS |
private static String |
KS_TYPE |
static Logger |
logger
logger
|
private static String |
MBEAN_NAME |
private static SSLTcpProxyService |
proxyService
The proxy service reference (used to stop it).
|
private static String |
SSLCONTEXT |
address, backlog, BACKLOG_PROP, cnxWithNoAckedQueue, DEFAULT_BACKLOG, DEFAULT_BINDADDRESS, DEFAULT_POOL_SIZE, DEFAULT_PORT, DEFAULT_SO_TIMEOUT, executorService, POOL_SIZE_PROP, port, SO_TIMEOUT_PROP
Constructor and Description |
---|
SSLTcpProxyService(int port,
int backlog,
String address) |
Modifier and Type | Method and Description |
---|---|
protected ServerSocket |
createServerSocket(int port,
int backlog,
String address)
Initialize the listening socket.
|
private static ServerSocketFactory |
createServerSocketFactory() |
private static String[] |
getCipherList() |
String |
getClientAuth()
Returns the actual configuration for client authentication:
WANT:client authentication required
NEED:client authentication requested
NONNEno client authentication desired
|
String |
getMBeanName()
Gets the name of the MBean.
|
static void |
init(String args,
boolean firstTime)
Initializes the SSLTCP entry point by creating a
ssl server socket listening to the specified port.
|
void |
setClientAuth(String clientAuth)
Controls whether accepted server-mode SSLSockets will be initially configured to require or not client authentication.
|
activate, closeAllConnections, createExecutors, deactivate, execute, getConnection, getFailedLoginCount, getInitiatedConnectionCount, getListenPort, getProtocolErrorCount, getRunningConnectionsCount, getServerAddress, getServerSocket, getTcpListenersPoolSize, getVersion, isActivated, registerConnection, removeExecutors, resetServerSocket, start, stopService, unregisterConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, closeAllConnections, deactivate, getFailedLoginCount, getInitiatedConnectionCount, getListenPort, getProtocolErrorCount, getRunningConnectionsCount, getServerAddress, getTcpListenersPoolSize, isActivated
getVersion
public static Logger logger
private static final String CIPHER
private static final String KS
private static final String KS_PASS
private static final String KS_TYPE
private static final String SSLCONTEXT
private static final String CLIENT_AUTH
private static final String MBEAN_NAME
private static final String CLIENT_AUTH_NONE
private static final String CLIENT_AUTH_WANT
private static final String CLIENT_AUTH_NEED
private static final String CLIENT_AUTH_DFLT
private static String clientAuth
private static SSLTcpProxyService proxyService
public String getClientAuth()
getClientAuth
in interface SSLTcpProxyServiceMBean
public void setClientAuth(String clientAuth)
setClientAuth
in interface SSLTcpProxyServiceMBean
clientAuth
- "WANT", "NEED" or "NONE".public static void init(String args, boolean firstTime) throws Exception
args
- stringified listening portfirstTime
- true
when the agent server starts.Exception
public String getMBeanName()
ConnectionManagerMBean
getMBeanName
in interface ConnectionManagerMBean
getMBeanName
in class TcpProxyService
private static ServerSocketFactory createServerSocketFactory() throws Exception
Exception
protected ServerSocket createServerSocket(int port, int backlog, String address) throws Exception
TcpProxyService
createServerSocket
in class TcpProxyService
Exception
Copyright © 2022 ScalAgent D.T.. All rights reserved.