|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.tcp.TcpChannelFactory
public class TcpChannelFactory
class that implements the ChannelFactory
interface for
SSL/TLS secured TCP connections
Field Summary | |
---|---|
private TcpParams |
params
the parameters |
private javax.net.ssl.SSLSocketFactory |
socketFactory
the socket factory |
Constructor Summary | |
---|---|
TcpChannelFactory(TcpParams theParams)
constructor |
Method Summary | |
---|---|
RegistryChannel |
createChannel()
create a new channel. |
private void |
verifyServerName(javax.net.ssl.SSLSocket socket)
verify that the common name of the server certificate's subject is identical with the reverse mapping of the servers address |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private TcpParams params
private javax.net.ssl.SSLSocketFactory socketFactory
Constructor Detail |
---|
public TcpChannelFactory(TcpParams theParams)
theParams
- the parametersMethod Detail |
---|
public RegistryChannel createChannel() throws java.io.IOException
null
is returned. If a channel could not be created for
a different reason, an IOException
is thrown. Channels that
are no longer used by the caller should be closed
createChannel
in interface ChannelFactory
null
if no more
channels are available
java.io.IOException
- if the channel could not be createdprivate void verifyServerName(javax.net.ssl.SSLSocket socket) throws java.io.IOException, java.security.GeneralSecurityException
socket
- the socket
java.io.IOException
- on SSL related I/O exceptions
java.security.GeneralSecurityException
- if the addresses do not match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |