com.ibm.di.api.remote.impl.rmi
Class SSLRMIClientSocketFactory

java.lang.Object
  extended by com.ibm.di.api.remote.impl.rmi.SSLRMIClientSocketFactory
All Implemented Interfaces:
Serializable, RMIClientSocketFactory

public class SSLRMIClientSocketFactory
extends Object
implements RMIClientSocketFactory, Serializable

Instances of this class are used by the RMI to obtain SSL client sockets for RMI calls. This class implements RMIClientSocketFactory class.

See Also:
Serialized Form

Field Summary
static int SSL_PROPERTIES_CLIENT_DEFINED
          Whether to check for the use of user custom security settings
static int SSL_PROPERTIES_SERVER_DEFINED
          if a server is defined and no SSL connection needed, a socket is created without additional initialization
 
Constructor Summary
SSLRMIClientSocketFactory(int aSSLProperties)
          Creates SSLRMIClientSocketFactory
 
Method Summary
 Socket createSocket(String host, int port)
          Creates a client socket connected to the specified host and port if SSLSocketFactory is not initialized
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSL_PROPERTIES_CLIENT_DEFINED

public static final int SSL_PROPERTIES_CLIENT_DEFINED
Whether to check for the use of user custom security settings

See Also:
Constant Field Values

SSL_PROPERTIES_SERVER_DEFINED

public static final int SSL_PROPERTIES_SERVER_DEFINED
if a server is defined and no SSL connection needed, a socket is created without additional initialization

See Also:
Constant Field Values
Constructor Detail

SSLRMIClientSocketFactory

public SSLRMIClientSocketFactory(int aSSLProperties)
Creates SSLRMIClientSocketFactory

Parameters:
aSSLProperties - Client socket factory SSL properties
Method Detail

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException
Creates a client socket connected to the specified host and port if SSLSocketFactory is not initialized

Specified by:
createSocket in interface RMIClientSocketFactory
Parameters:
host - the host name
port - the port name
Returns:
a socket connected to the specified host and port.
Throws:
IOException - if an I/O error occurs during socket creation

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument and they have same SSL properties; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object.

For SSLRMIClientSocketFactory class the hash code is considered to be equal to the value the value of SSL properties.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.