iaik.security.ssl
Class SSLTransportSpi

java.lang.Object
  extended by iaik.security.ssl.SSLTransportSpi
Direct Known Subclasses:
SSLSocketTransport

public abstract class SSLTransportSpi
extends java.lang.Object

This class defines an interface that allows you to implement SSL over you own transport. An object of this class is passed to the SSLTransport constructor to create a new connection. This object contains all information about the connection, including its SSLContext.


Field Summary
protected  SSLContext context
           
protected  boolean useClientMode
           
 
Constructor Summary
protected SSLTransportSpi()
           
protected SSLTransportSpi(SSLContext context, boolean useClientMode)
           
 
Method Summary
protected abstract  void engineClose()
          Close this transport.
protected  SSLContext engineGetContext()
          Get the SSLContext for this connection.
protected abstract  java.io.InputStream engineGetInputStream()
          Get the InputStream for this connection.
protected abstract  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.
protected  boolean engineGetUseClientMode()
          Return whether or not this endpoint of the connection resides on the server side.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected SSLContext context

useClientMode

protected boolean useClientMode
Constructor Detail

SSLTransportSpi

protected SSLTransportSpi(SSLContext context,
                          boolean useClientMode)

SSLTransportSpi

protected SSLTransportSpi()
Method Detail

engineGetContext

protected SSLContext engineGetContext()
Get the SSLContext for this connection.


engineGetInputStream

protected abstract java.io.InputStream engineGetInputStream()
                                                     throws java.io.IOException
Get the InputStream for this connection.

Throws:
java.io.IOException

engineGetOutputStream

protected abstract java.io.OutputStream engineGetOutputStream()
                                                       throws java.io.IOException
Get the InputStream for this connection.

Throws:
java.io.IOException

engineGetRemotePeerName

protected java.lang.String engineGetRemotePeerName()
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.


engineGetRemoteInetAddress

protected java.net.InetAddress engineGetRemoteInetAddress()
Returns the address of the remote peer. If possible DNS lookups will be avoided.

Returns:
the remote InetAdress or null.

engineGetRemotePeerId

protected java.lang.Object engineGetRemotePeerId()
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.


engineClose

protected abstract void engineClose()
                             throws java.io.IOException
Close this transport. Invoked by SSLTransport when its close() method is called.

Throws:
java.io.IOException

engineGetUseClientMode

protected boolean engineGetUseClientMode()
Return whether or not this endpoint of the connection resides on the server side.


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

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