mx4j.tools.adaptor.ssl
public class SSLAdaptorServerSocketFactory extends Object implements 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:
Version: $Revision: 1.5 $
Method Summary | |
---|---|
static void | addProvider(Provider provider) |
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) |