iaik.security.ssl
Class SSLSocketTransport

java.lang.Object
  extended by iaik.security.ssl.SSLTransportSpi
      extended by iaik.security.ssl.SSLSocketTransport

public class SSLSocketTransport
extends SSLTransportSpi

Transport implementation for SSL over an ordinary socket. Used by SSLSocket.


Field Summary
protected  java.lang.String remoteHost_
           
protected  java.lang.Object remotePeerId_
           
 
Fields inherited from class iaik.security.ssl.SSLTransportSpi
context, useClientMode
 
Constructor Summary
SSLSocketTransport(java.net.Socket socket, SSLContext context, boolean useClientMode)
           
 
Method Summary
protected  java.lang.Object convertToRemotePeerId(java.lang.String hostName, int hostPort)
           
protected  void engineClose()
          Close this transport.
protected  java.io.InputStream engineGetInputStream()
          Get the InputStream for this connection.
protected  java.io.OutputStream engineGetOutputStream()
          Get the InputStream for this connection.
protected  java.net.InetAddress engineGetRemoteInetAddress()
          Returns the address of the remote peer.
protected  java.lang.Object engineGetRemotePeerId()
          Get an id uniquely identifying the remote peer.
protected  java.lang.String engineGetRemotePeerName()
          Get the host name of the remote peer.
 
Methods inherited from class iaik.security.ssl.SSLTransportSpi
engineGetContext, engineGetUseClientMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remotePeerId_

protected java.lang.Object remotePeerId_

remoteHost_

protected java.lang.String remoteHost_
Constructor Detail

SSLSocketTransport

public SSLSocketTransport(java.net.Socket socket,
                          SSLContext context,
                          boolean useClientMode)
Method Detail

engineGetInputStream

protected java.io.InputStream engineGetInputStream()
                                            throws java.io.IOException
Description copied from class: SSLTransportSpi
Get the InputStream for this connection.

Specified by:
engineGetInputStream in class SSLTransportSpi
Throws:
java.io.IOException

engineGetOutputStream

protected java.io.OutputStream engineGetOutputStream()
                                              throws java.io.IOException
Description copied from class: SSLTransportSpi
Get the InputStream for this connection.

Specified by:
engineGetOutputStream in class SSLTransportSpi
Throws:
java.io.IOException

engineGetRemotePeerName

protected java.lang.String engineGetRemotePeerName()
Description copied from class: SSLTransportSpi
Get the host name of the remote peer. This information can be used by the ChainVerifier to check the name against the name provided in the certificate.

Overrides:
engineGetRemotePeerName in class SSLTransportSpi

engineGetRemoteInetAddress

protected java.net.InetAddress engineGetRemoteInetAddress()
Description copied from class: SSLTransportSpi
Returns the address of the remote peer. If possible DNS lookups will be avoided.

Overrides:
engineGetRemoteInetAddress in class SSLTransportSpi
Returns:
the remote InetAdress or null.

convertToRemotePeerId

protected java.lang.Object convertToRemotePeerId(java.lang.String hostName,
                                                 int hostPort)

engineGetRemotePeerId

protected java.lang.Object engineGetRemotePeerId()
Description copied from class: SSLTransportSpi
Get an id uniquely identifying the remote peer. This id is used for session caching, if a transport does not support session caching it should return null.

Overrides:
engineGetRemotePeerId in class SSLTransportSpi

engineClose

protected void engineClose()
                    throws java.io.IOException
Description copied from class: SSLTransportSpi
Close this transport. Invoked by SSLTransport when its close() method is called.

Specified by:
engineClose in class SSLTransportSpi
Throws:
java.io.IOException

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

iSaSiLk 6.0, (c) 2002 IAIK, (c) 2003 - 2015 SIC