Package com.ibm.di.api.remote.impl.rmi
Class SSLRMIClientSocketFactory
- java.lang.Object
-
- com.ibm.di.api.remote.impl.rmi.SSLRMIClientSocketFactory
-
- All Implemented Interfaces:
java.io.Serializable
,java.rmi.server.RMIClientSocketFactory
public class SSLRMIClientSocketFactory extends java.lang.Object implements java.rmi.server.RMIClientSocketFactory, java.io.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
Fields Modifier and Type Field Description static int
SSL_PROPERTIES_CLIENT_DEFINED
Whether to check for the use of user custom security settingsstatic int
SSL_PROPERTIES_SERVER_DEFINED
if a server is defined and no SSL connection needed, a socket is created without additional initialization
-
Constructor Summary
Constructors Constructor Description SSLRMIClientSocketFactory(int aSSLProperties)
Creates SSLRMIClientSocketFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.Socket
createSocket(java.lang.String host, int port)
Creates a client socket connected to the specified host and port ifSSLSocketFactory
is not initializedboolean
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for the object.
-
-
-
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
-
-
Method Detail
-
createSocket
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
Creates a client socket connected to the specified host and port ifSSLSocketFactory
is not initialized- Specified by:
createSocket
in interfacejava.rmi.server.RMIClientSocketFactory
- Parameters:
host
- the host nameport
- the port name- Returns:
- a socket connected to the specified host and port.
- Throws:
java.io.IOException
- if an I/O error occurs during socket creation
-
equals
public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.- Overrides:
equals
in classjava.lang.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 classjava.lang.Object
- Returns:
- a hash code value for this object.
-
-