org.mule.module.management.agent
Class IBMSslAdapterServerSocketFactory
java.lang.Object
org.mule.module.management.agent.IBMSslAdapterServerSocketFactory
- All Implemented Interfaces:
- mx4j.tools.adaptor.AdaptorServerSocketFactory, mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
public class IBMSslAdapterServerSocketFactory
- extends Object
- implements mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
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:
before createServerSocket(int, int, java.lang.String)
is called.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IBMSslAdapterServerSocketFactory
public IBMSslAdapterServerSocketFactory()
setKeyStoreType
public void setKeyStoreType(String keyStoreType)
- Specified by:
setKeyStoreType
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
setTrustStoreType
public void setTrustStoreType(String trustStoreType)
- Specified by:
setTrustStoreType
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
setKeyStoreName
public void setKeyStoreName(String name)
- Specified by:
setKeyStoreName
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
setTrustStoreName
public void setTrustStoreName(String name)
- Specified by:
setTrustStoreName
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
setKeyStorePassword
public void setKeyStorePassword(String password)
- Specified by:
setKeyStorePassword
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
setTrustStorePassword
public void setTrustStorePassword(String password)
- Specified by:
setTrustStorePassword
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
setKeyManagerAlgorithm
public void setKeyManagerAlgorithm(String algorithm)
- Specified by:
setKeyManagerAlgorithm
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
setTrustManagerAlgorithm
public void setTrustManagerAlgorithm(String algorithm)
- Specified by:
setTrustManagerAlgorithm
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
setKeyManagerPassword
public void setKeyManagerPassword(String password)
- Specified by:
setKeyManagerPassword
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
setSSLProtocol
public void setSSLProtocol(String protocol)
- Specified by:
setSSLProtocol
in interface mx4j.tools.adaptor.ssl.SSLAdaptorServerSocketFactoryMBean
createServerSocket
public ServerSocket createServerSocket(int port,
int backlog,
String host)
throws IOException
- Returns a SSLServerSocket on the given port.
- Specified by:
createServerSocket
in interface mx4j.tools.adaptor.AdaptorServerSocketFactory
- Throws:
IOException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.