iaik.security.ssl
Class SSLSocketTransport

java.lang.Object
  |
  +--iaik.security.ssl.SSLTransportSpi
        |
        +--iaik.security.ssl.SSLSocketTransport

public class SSLSocketTransport
extends SSLTransportSpi

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


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 address, int port)
           
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.lang.Object engineGetRemotePeerId()
          Get an id uniquely identifying the remote peer.
protected  java.lang.String engineGetRemotePeerName()
          Get the host name of the remote peer.
protected  void setRemotePeerId(java.lang.Object peerId)
           
protected  void setRemotePeerId(java.lang.String address, int port)
           
 
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
 

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.
Overrides:
engineGetInputStream in class SSLTransportSpi

engineGetOutputStream

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

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

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

convertToRemotePeerId

protected java.lang.Object convertToRemotePeerId(java.lang.String address,
                                                 int port)

setRemotePeerId

protected void setRemotePeerId(java.lang.String address,
                               int port)

setRemotePeerId

protected void setRemotePeerId(java.lang.Object peerId)

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.
Overrides:
engineClose in class SSLTransportSpi