iaik.security.ssl
Class SSLTransportSpi
java.lang.Object
|
+--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.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
context
protected SSLContext context
useClientMode
protected boolean useClientMode
SSLTransportSpi
protected SSLTransportSpi(SSLContext context,
boolean useClientMode)
SSLTransportSpi
protected SSLTransportSpi()
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.
engineGetOutputStream
protected abstract java.io.OutputStream engineGetOutputStream()
throws java.io.IOException
- Get the InputStream for this connection.
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.
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.
engineGetUseClientMode
protected boolean engineGetUseClientMode()
- Return whether or not this endpoint of the connection resides
on the server side.