EPP RTK
for Java v 0.4.1

com.tucows.oxrs.epp.rtk.transport
Class EPPTransportTCPTLS

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--com.tucows.oxrs.epp.rtk.RTKBase
              |
              +--com.tucows.oxrs.epp.rtk.transport.EPPTransportBase
                    |
                    +--com.tucows.oxrs.epp.rtk.transport.EPPTransportTCP
                          |
                          +--com.tucows.oxrs.epp.rtk.transport.EPPTransportTCPTLS
All Implemented Interfaces:
org.omg.CORBA.Object

public class EPPTransportTCPTLS
extends EPPTransportTCP

Provides methods necessary to build connection with EPP Server using a SSL-TLS socket. It only overrides the connect() method from EPPTransportTCP since the remaining socket operations are identical to unencrypted sockets.

This class uses Sun's JSSE to establish a secure connection with the server. It makes use of the RTK property "ssl.props.location" to retrieve the ssl.properties. This properties file contains information necessary to locate the java keystore, the names of the keys and certificates contained inside it and the necessary passwords to access the keystore. The epp-rtk/java/ssl director contains more information regarding the data required to create a keystore and the steps to do so.

If the user does not wish to use the default Sun JSSE but rather a third party SSL implemention, then the socket connection should be established externally and an instance of EPPTransportTCP should be created using the connected socket.

Please see the EPP RTK User's Guide for more information on secure connections to EPP servers.


Fields inherited from class com.tucows.oxrs.epp.rtk.transport.EPPTransportTCP
preset_, reader_from_server_, socket_to_server_, writer_to_server_
 
Fields inherited from class com.tucows.oxrs.epp.rtk.transport.EPPTransportBase
DEFAULT_SOCKET_TIMEOUT, epp_host_name_, epp_host_port_, epp_timeout_
 
Fields inherited from class com.tucows.oxrs.epp.rtk.RTKBase
CRLF, DATE_FMT, DEBUG_LEVEL_ONE, DEBUG_LEVEL_THREE, DEBUG_LEVEL_TWO, DEBUG_NONE, RTK_VERSION, UTC_FMT
 
Constructor Summary
EPPTransportTCPTLS()
          Default Construtor
EPPTransportTCPTLS(java.lang.String host_name, int host_port, int timeout)
          Construtor with Hostname, Host port and timeout value
 
Method Summary
 void connect()
          Connects to the Server using previously set Hostname and port.
 
Methods inherited from class com.tucows.oxrs.epp.rtk.transport.EPPTransportTCP
disconnect, readFromServer, writeToServer
 
Methods inherited from class com.tucows.oxrs.epp.rtk.transport.EPPTransportBase
getEPPHostName, getEPPHostPort, getEPPTimeout, initialize, setEPPHostName, setEPPHostPort, setEPPTimeout
 
Methods inherited from class com.tucows.oxrs.epp.rtk.RTKBase
_ids, debug, debug, getDebugLevel, getRTKProperties, setDebugLevel, setDebugLevel
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EPPTransportTCPTLS

public EPPTransportTCPTLS()
Default Construtor

EPPTransportTCPTLS

public EPPTransportTCPTLS(java.lang.String host_name,
                          int host_port,
                          int timeout)
Construtor with Hostname, Host port and timeout value
Parameters:
host_name - The server Hostname
host_port - The server Host port
timeout - The int socket timeout value, in milliseconds
Method Detail

connect

public void connect()
             throws java.net.SocketException,
                    java.io.IOException,
                    java.net.UnknownHostException
Connects to the Server using previously set Hostname and port. If connection has been already established, the operation will be ignored. The method also sets the SO timeout.
Overrides:
connect in class EPPTransportTCP
Throws:
java.net.SocketException -  
java.io.IOException -  
java.net.UnknownHostException -  

EPP RTK
for Java v 0.4.1

Copyright © 2001 - Tucows, Inc.