TODO: Fix this class to avoid hardcoding Sun's provider, since it will not work with IBM's JDK. This MBean creates SSLServerSocket instances.
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.
A keystore can be created with this command:
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 365
or with this minimal command (that will prompt you for further information):
keytool -genkey -keystore store.key
A 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:
- {@link #setKeyStoreName}("store.key");
- {@link #setKeyStorePassword}("storepwd");
- {@link #setKeyManagerPassword}("keypwd");
before {@link #createServerSocket} is called.
@version $Revision: 1.5 $