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.SerializableInstances 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 intSSL_PROPERTIES_CLIENT_DEFINEDWhether to check for the use of user custom security settingsstatic intSSL_PROPERTIES_SERVER_DEFINEDif 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.SocketcreateSocket(java.lang.String host, int port)Creates a client socket connected to the specified host and port ifSSLSocketFactoryis not initializedbooleanequals(java.lang.Object obj)Indicates whether some other object is "equal to" this one.inthashCode()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.IOExceptionCreates a client socket connected to the specified host and port ifSSLSocketFactoryis not initialized- Specified by:
createSocketin 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:
equalsin classjava.lang.Object- Parameters:
obj- the reference object with which to compare.- Returns:
trueif this object is the same as the obj argument and they have same SSL properties;falseotherwise.
-
hashCode
public int hashCode()
Returns a hash code value for the object.For
SSLRMIClientSocketFactoryclass the hash code is considered to be equal to the value the value of SSL properties.- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code value for this object.
-
-