public class EPPSSLClientSocket extends java.lang.Object implements EPPClientCon
EPP.ClientSocketName
configuration property. The SSL settings are passed into the
EPPSSLClientSocket class using the EPPSSLContext class.EPPSSLContext| Constructor and Description |
|---|
EPPSSLClientSocket()
Default constructor that gets the following settings from
EPPEnv:hostName - Defined with the
EPPEnv.getServerName() method. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closing the connection.
|
protected java.lang.String |
getClientHostName()
Gets the client host name to use for the connection.
|
protected int |
getConTimeout()
Gets the connection timeout setting.
|
protected java.lang.String |
getHostName()
Gets the host name or IP address to connect to.
|
java.io.InputStream |
getInputStream()
Gets the input stream of the
Socket connection. |
java.io.OutputStream |
getOutputStream()
Gets the output stream of the
Socket connection. |
protected int |
getPortNumber()
Gets the port number to connect to.
|
protected javax.net.ssl.SSLSocket |
getSocket()
Gets the enclosing
SSLSocket of the connection. |
protected EPPSSLContext |
getSslContext()
Gets the
EPPSSLContext to use for the SSL connection. |
protected java.lang.String |
getSSLPropertyListString(java.lang.String[] aList)
Gets an SSL property list as a string for logging purposes.
|
void |
initialize()
Initializes an SSL connection to the host and port defined by the server
name and the server port properties of
EPPEnv. |
void |
initialize(java.lang.String aHostName,
int aPortNumber,
EPPSSLContext aSSLContext)
Initializes a SSL connection to a specific host and port.
|
void |
initialize(java.lang.String aHostName,
int aPortNumber,
java.lang.String aClientHostName,
EPPSSLContext aSSLContext)
Initializes a SSL connection to a specific host and port.
|
protected boolean |
isConnected()
Is the connection established?
|
protected void |
setClientHostName(java.lang.String aClientHostName)
Sets the client host name to use for the connection.
|
protected void |
setConnected(boolean aIsConnected)
Sets whether the connection is established.
|
protected void |
setConTimeout(int aConTimeout)
Sets the connection timeout setting.
|
protected void |
setHostName(java.lang.String aHostName)
Sets the host name or IP address to connect to.
|
protected void |
setInputStream(java.io.InputStream aInputStream)
Sets the input stream of the
Socket connection. |
protected void |
setOutputStream(java.io.OutputStream aOutputStream)
Sets the output stream of the
Socket connection. |
protected void |
setPortNumber(int aPortNumber)
Sets the port number to connect to.
|
protected void |
setSocket(javax.net.ssl.SSLSocket aSocket)
Sets the
SSLSocket to use. |
protected void |
setSslContext(EPPSSLContext aSslContext)
Sets the
EPPSSLContext to use for the SSL connection |
public EPPSSLClientSocket()
throws EPPConException
EPPEnv:hostName - Defined with the
EPPEnv.getServerName() method.
portNumber - Defined with the
EPPEnv.getServerPort() method.
conTimeout - Defined with the
EPPEnv.getConTimeOut() method.
clientHostName - Defined with the
EPPEnv.getClientHost() method.
EPPConException - If there is a problem getting the default connection properties
from EPPEnv.public void initialize()
throws EPPConException
EPPEnv.initialize in interface EPPClientConEPPConException - Error initializing the connection.public void initialize(java.lang.String aHostName,
int aPortNumber,
EPPSSLContext aSSLContext)
throws EPPConException
EPPEnv
properties.initialize in interface EPPClientConaHostName - Host name or IP address of host to connect toaPortNumber - Port number to connect toaSSLContext - Optional specific SSL context to useEPPConException - Error initializing the connection.public void initialize(java.lang.String aHostName,
int aPortNumber,
java.lang.String aClientHostName,
EPPSSLContext aSSLContext)
throws EPPConException
EPPEnv
properties.initialize in interface EPPClientConaHostName - Host name or IP address of host to connect toaPortNumber - Port number to connect toaClientHostName - Host name or IP address to connect fromaSSLContext - Optional specific SSL context to useEPPConException - Error initializing the connection.public java.io.InputStream getInputStream()
throws EPPConException
Socket connection.getInputStream in interface EPPClientConInputStream of the connected SocketEPPConException - Input stream not setprotected void setInputStream(java.io.InputStream aInputStream)
Socket connection. This can only
be set by a derived class to support tunneling and other extensions.aInputStream - Input stream to setpublic java.io.OutputStream getOutputStream()
throws EPPConException
Socket connection.getOutputStream in interface EPPClientConOutputStream of the connected SocketEPPConException - Output stream not setprotected void setOutputStream(java.io.OutputStream aOutputStream)
Socket connection. This can
only be set by a derived class to support tunneling and other extensions.aOutputStream - Output stream to setprotected javax.net.ssl.SSLSocket getSocket()
SSLSocket of the connection.SSLSocket if defined;
null otherwise.protected void setSocket(javax.net.ssl.SSLSocket aSocket)
SSLSocket to use.aSocket - SSLSocket to useprotected EPPSSLContext getSslContext()
EPPSSLContext to use for the SSL connection.EPPSSLContext to useprotected void setSslContext(EPPSSLContext aSslContext)
EPPSSLContext to use for the SSL connectionaSslContext - EPPSSLContext to useprotected java.lang.String getClientHostName()
null otherwise.protected void setClientHostName(java.lang.String aClientHostName)
aClientHostName - Client host name to useprotected java.lang.String getHostName()
protected void setHostName(java.lang.String aHostName)
aHostName - Host name or IP address to connect toprotected int getPortNumber()
protected void setPortNumber(int aPortNumber)
aPortNumber - Port number to connect toprotected int getConTimeout()
protected void setConTimeout(int aConTimeout)
aConTimeout - connection timeoutprotected boolean isConnected()
true if connected; false otherwise.protected void setConnected(boolean aIsConnected)
aIsConnected - true if connected; false otherwisepublic void close()
throws EPPConException
close in interface EPPClientConEPPConException - Error closing the connectionprotected java.lang.String getSSLPropertyListString(java.lang.String[] aList)
aList - Array of String's.String representing the property list
if aList is not null; null
otherwiseCopyright © VeriSign Inc. All Rights Reserved.