public class IBMSslAdapterServerSocketFactory extends Object implements mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
It can be configured to use a specific keystore and SSL protocol version to create
SSLServerSockets that will use the keystore information to encrypt data.
keytool -genkey -v -keystore store.key -storepass storepwd -keypass keypwd -dname "CN=Simone Bordet, OU=Project Administrator, O=MX4J, L=Torino, S=TO, C=IT" -validity 365or with this minimal command (that will prompt you for further information):
keytool -genkey -keystore store.keyA keystore may contains more than one entry, but only the first entry will be used for encryption, no matter which is the alias for that entry. Following the first example of generation of the keystore, this MBean must be instantiated and then setup by invoking the following methods:
setKeyStoreName(java.lang.String)
("store.key");
setKeyStorePassword(java.lang.String)
("storepwd");
setKeyManagerPassword(java.lang.String)
("keypwd");
createServerSocket(int, int, java.lang.String)
is called.Constructor and Description |
---|
IBMSslAdapterServerSocketFactory() |
Modifier and Type | Method and Description |
---|---|
ServerSocket |
createServerSocket(int port,
int backlog,
String host)
Returns a SSLServerSocket on the given port.
|
void |
setKeyManagerAlgorithm(String algorithm) |
void |
setKeyManagerPassword(String password) |
void |
setKeyStoreName(String name) |
void |
setKeyStorePassword(String password) |
void |
setKeyStoreType(String keyStoreType) |
void |
setSSLProtocol(String protocol) |
void |
setTrustManagerAlgorithm(String algorithm) |
void |
setTrustStoreName(String name) |
void |
setTrustStorePassword(String password) |
void |
setTrustStoreType(String trustStoreType) |
public void setKeyStoreType(String keyStoreType)
setKeyStoreType
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public void setTrustStoreType(String trustStoreType)
setTrustStoreType
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public void setKeyStoreName(String name)
setKeyStoreName
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public void setTrustStoreName(String name)
setTrustStoreName
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public void setKeyStorePassword(String password)
setKeyStorePassword
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public void setTrustStorePassword(String password)
setTrustStorePassword
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public void setKeyManagerAlgorithm(String algorithm)
setKeyManagerAlgorithm
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public void setTrustManagerAlgorithm(String algorithm)
setTrustManagerAlgorithm
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public void setKeyManagerPassword(String password)
setKeyManagerPassword
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public void setSSLProtocol(String protocol)
setSSLProtocol
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public ServerSocket createServerSocket(int port, int backlog, String host) throws IOException
createServerSocket
in interface mx4j.tools.adaptor.AdaptorServerSocketFactory
IOException
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.