Class SSLTcpProxyService
- java.lang.Object
-
- org.objectweb.joram.mom.proxies.tcp.TcpProxyService
-
- org.objectweb.joram.mom.proxies.tcp.SSLTcpProxyService
-
- All Implemented Interfaces:
ConnectionManagerMBean,SSLTcpProxyServiceMBean,TcpProxyServiceMBean
public class SSLTcpProxyService extends TcpProxyService implements SSLTcpProxyServiceMBean
Starts a SSL entry point for JMS clients.
-
-
Field Summary
Fields Modifier and Type Field Description private static StringCIPHERprivate static StringCLIENT_AUTHprivate static StringCLIENT_AUTH_DFLTprivate static StringCLIENT_AUTH_NEEDprivate static StringCLIENT_AUTH_NONEprivate static StringCLIENT_AUTH_WANTprivate static StringclientAuthprivate static booleanDEBUGprivate static StringKSprivate static StringKS_PASSprivate static StringKS_TYPEprivate static Loggerloggerloggerprivate static StringMBEAN_NAMEprivate static SSLTcpProxyServiceproxyServiceThe proxy service reference (used to stop it).private static StringSSLCONTEXT-
Fields inherited from class org.objectweb.joram.mom.proxies.tcp.TcpProxyService
BACKLOG_PROP, DEFAULT_BACKLOG, DEFAULT_BINDADDRESS, DEFAULT_POOL_SIZE, DEFAULT_PORT, DEFAULT_SO_TIMEOUT, POOL_SIZE_PROP, SO_TIMEOUT_PROP
-
-
Constructor Summary
Constructors Constructor Description SSLTcpProxyService(int port, int backlog, String address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServerSocketcreateServerSocket(int port, int backlog, String address)Initialize the listening socket.private static ServerSocketFactorycreateServerSocketFactory()private static String[]getCipherList()StringgetClientAuth()Returns the actual configuration for client authentication: WANT:client authentication required NEED:client authentication requested NONNEno client authentication desiredStringgetMBeanName()Gets the name of the MBean.static voidinit(String args, boolean firstTime)Initializes the SSLTCP entry point by creating a ssl server socket listening to the specified port.voidsetClientAuth(String clientAuth)Controls whether accepted server-mode SSLSockets will be initially configured to require or not client authentication.-
Methods inherited from class org.objectweb.joram.mom.proxies.tcp.TcpProxyService
activate, closeAllConnections, createExecutors, deactivate, execute, getAverageConnectionTime, getConnection, getFailedLoginCount, getInitiatedConnectionCount, getListenPort, getProtocolErrorCount, getRunningConnectionsCount, getServerAddress, getServerSocket, getTcpListenersPoolSize, getVersion, isActivated, isExecutor, registerConnection, removeExecutors, resetServerSocket, start, stopService, unregisterConnection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.objectweb.joram.mom.proxies.ConnectionManagerMBean
getVersion
-
Methods inherited from interface org.objectweb.joram.mom.proxies.tcp.TcpProxyServiceMBean
activate, closeAllConnections, deactivate, getAverageConnectionTime, getFailedLoginCount, getInitiatedConnectionCount, getListenPort, getProtocolErrorCount, getRunningConnectionsCount, getServerAddress, getTcpListenersPoolSize, isActivated
-
-
-
-
Field Detail
-
logger
private static final Logger logger
logger
-
DEBUG
private static final boolean DEBUG
-
CIPHER
private static final String CIPHER
- See Also:
- Constant Field Values
-
KS
private static final String KS
- See Also:
- Constant Field Values
-
KS_PASS
private static final String KS_PASS
- See Also:
- Constant Field Values
-
KS_TYPE
private static final String KS_TYPE
- See Also:
- Constant Field Values
-
SSLCONTEXT
private static final String SSLCONTEXT
- See Also:
- Constant Field Values
-
CLIENT_AUTH
private static final String CLIENT_AUTH
- See Also:
- Constant Field Values
-
MBEAN_NAME
private static final String MBEAN_NAME
- See Also:
- Constant Field Values
-
CLIENT_AUTH_NONE
private static final String CLIENT_AUTH_NONE
- See Also:
- Constant Field Values
-
CLIENT_AUTH_WANT
private static final String CLIENT_AUTH_WANT
- See Also:
- Constant Field Values
-
CLIENT_AUTH_NEED
private static final String CLIENT_AUTH_NEED
- See Also:
- Constant Field Values
-
CLIENT_AUTH_DFLT
private static final String CLIENT_AUTH_DFLT
- See Also:
- Constant Field Values
-
clientAuth
private static String clientAuth
-
proxyService
private static SSLTcpProxyService proxyService
The proxy service reference (used to stop it).
-
-
Method Detail
-
getClientAuth
public String getClientAuth()
Returns the actual configuration for client authentication:- WANT:client authentication required
- NEED:client authentication requested
- NONNEno client authentication desired
- Specified by:
getClientAuthin interfaceSSLTcpProxyServiceMBean- Returns:
- the actual configuration for client authentication.
-
setClientAuth
public void setClientAuth(String clientAuth)
Controls whether accepted server-mode SSLSockets will be initially configured to require or not client authentication. A socket's client authentication setting is one of the following:- WANT: client authentication required.
- NEED: client authentication requested.
- NONE: no client authentication desired.
- Specified by:
setClientAuthin interfaceSSLTcpProxyServiceMBean- Parameters:
clientAuth- "WANT", "NEED" or "NONE".
-
init
public static void init(String args, boolean firstTime) throws Exception
Initializes the SSLTCP entry point by creating a ssl server socket listening to the specified port.- Parameters:
args- stringified listening portfirstTime-truewhen the agent server starts.- Throws:
Exception
-
getMBeanName
public String getMBeanName()
Description copied from interface:ConnectionManagerMBeanGets the name of the MBean.- Specified by:
getMBeanNamein interfaceConnectionManagerMBean- Overrides:
getMBeanNamein classTcpProxyService
-
createServerSocketFactory
private static ServerSocketFactory createServerSocketFactory() throws Exception
- Throws:
Exception
-
createServerSocket
protected ServerSocket createServerSocket(int port, int backlog, String address) throws Exception
Description copied from class:TcpProxyServiceInitialize the listening socket.- Overrides:
createServerSocketin classTcpProxyService- Returns:
- The initialized socket.
- Throws:
Exception
-
-