|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.transport.client.EPPSSLClientSocket
public class EPPSSLClientSocket
Secure Socket Layer client socket class that can be configured to connect to
a server over SSL / TLS using the EPP.ClientSocketName
configuration property. The SSL settings are passed into the
EPPSSLClientSocket
class using the EPPSSLContext
class.
EPPSSLContext
Constructor Summary | |
---|---|
EPPSSLClientSocket()
Default constructor that gets the following settings from EPPEnv :hostName - Defined with the EPPEnv.getServerName() method. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
.Method Detail |
---|
public void initialize() throws EPPConException
EPPEnv
.
initialize
in interface EPPClientCon
EPPConException
- Error initializing the connection.public void initialize(java.lang.String aHostName, int aPortNumber, EPPSSLContext aSSLContext) throws EPPConException
EPPEnv
properties.
initialize
in interface EPPClientCon
aHostName
- Host name or IP address of host to connect toaPortNumber
- Port number to connect toaSSLContext
- Optional specific SSL context to use
EPPConException
- 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 EPPClientCon
aHostName
- 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 use
EPPConException
- Error initializing the connection.public java.io.InputStream getInputStream() throws EPPConException
Socket
connection.
getInputStream
in interface EPPClientCon
InputStream
of the connected Socket
EPPConException
- 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 EPPClientCon
OutputStream
of the connected Socket
EPPConException
- 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 connection
aSslContext
- 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 EPPClientCon
EPPConException
- 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
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |