com.tucows.oxrs.epp0705.rtk.transport
Class EPPTransportTCPTLS
org.omg.CORBA.portable.ObjectImpl
public class EPPTransportTCPTLS
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.
void | connect() - Connects to the Server using previously set Hostname and port.
|
connect , disconnect , getEPPHostName , getEPPHostPort , getEPPTimeout , initialize , readFromServer , setEPPHostName , setEPPHostPort , setEPPTimeout , writeToServer |
EPPTransportTCPTLS
public EPPTransportTCPTLS()
Default Construtor
EPPTransportTCPTLS
public EPPTransportTCPTLS(String host_name,
int host_port,
int timeout)
Construtor with Hostname, Host port and timeout value
host_name
- The server Hostnamehost_port
- The server Host porttimeout
- The int socket timeout value, in milliseconds
connect
public void connect()
throws SocketException,
IOException,
UnknownHostException,
EPPTransportException
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.
- connect in interface EPPTransportTCP
Copyright © 2001-2002 - Tucows, Inc., 2003 - LibertyRMS