public class SslTransport extends TcpTransport implements SecuredSession
| Modifier and Type | Class and Description |
|---|---|
class |
SslTransport.SSLChannel |
ServiceBase.STARTING, ServiceBase.State, ServiceBase.STOPPINGblockingExecutor, channel, codec, dispatchQueue, drainOutboundSource, IPTOS_LOWCOST, IPTOS_LOWDELAY, IPTOS_RELIABILITY, IPTOS_THROUGHPUT, listener, localLocation, rateLimitingChannel, remoteLocation, socketState, useLocalHost, yieldSource_serviceState, CREATED, STARTED, STOPPED| Constructor and Description |
|---|
SslTransport() |
| Modifier and Type | Method and Description |
|---|---|
void |
connected(SocketChannel channel) |
void |
connecting(URI remoteLocation,
URI localLocation) |
static SslTransport |
createTransport(URI uri)
Allows subclasses of TcpTransportFactory to create custom instances of
TcpTransport.
|
void |
drainInbound() |
void |
flush()
Forces a flush of any output buffers.
|
String |
getClientAuth() |
String |
getDisabledCypherSuites() |
X509Certificate[] |
getPeerX509Certificates()
Gets the X509Certificate associated withe the peer.
|
ReadableByteChannel |
getReadChannel() |
SSLSession |
getSSLSession() |
WritableByteChannel |
getWriteChannel() |
void |
handshake() |
protected void |
initializeChannel() |
protected void |
onConnected() |
static String |
protocol(String scheme)
Maps uri schemes to a protocol algorithm names.
|
void |
setClientAuth(String clientAuth) |
void |
setDisabledCypherSuites(String disabledCypherSuites) |
void |
setSSLContext(SSLContext ctx) |
protected boolean |
transportFlush() |
_start, _stop, full, getBlockingExecutor, getDispatchQueue, getLocalAddress, getLocalHost, getMaxReadRate, getMaxWriteRate, getProtocolCodec, getReceiveBufferSize, getRemoteAddress, getSendBufferSize, getSocketChannel, getTrafficClass, getTransportListener, initializeCodec, isClosed, isCloseOnCancel, isConnected, isKeepAlive, isUseLocalHost, offer, onTransportFailure, resolveHostName, resumeRead, resumeWrite, setBlockingExecutor, setCloseOnCancel, setDispatchQueue, setKeepAlive, setMaxReadRate, setMaxWriteRate, setProtocolCodec, setReceiveBufferSize, setSendBufferSize, setTrafficClass, setTransportListener, setUseLocalHost, suspendRead, suspendWritegetServiceState, start, start, stop, stoppublic SslTransport()
public static String protocol(String scheme)
public void setSSLContext(SSLContext ctx)
public static SslTransport createTransport(URI uri) throws Exception
Exceptionpublic SSLSession getSSLSession()
public X509Certificate[] getPeerX509Certificates()
SecuredSessiongetPeerX509Certificates in interface SecuredSessionpublic void connecting(URI remoteLocation, URI localLocation) throws Exception
connecting in class TcpTransportExceptionpublic void connected(SocketChannel channel) throws Exception
connected in class TcpTransportExceptionprotected void initializeChannel() throws Exception
initializeChannel in class TcpTransportExceptionprotected void onConnected() throws IOException
onConnected in class TcpTransportIOExceptionpublic void flush()
Transportflush in interface Transportflush in class TcpTransportpublic void drainInbound()
drainInbound in interface TransportdrainInbound in class TcpTransportprotected boolean transportFlush() throws IOException
transportFlush in class TcpTransportIOExceptionpublic void handshake()
public ReadableByteChannel getReadChannel()
getReadChannel in interface TransportgetReadChannel in class TcpTransportpublic WritableByteChannel getWriteChannel()
getWriteChannel in interface TransportgetWriteChannel in class TcpTransportpublic String getClientAuth()
public void setClientAuth(String clientAuth)
public String getDisabledCypherSuites()
public void setDisabledCypherSuites(String disabledCypherSuites)
Copyright © 2010-2013 FuseSource, Corp.. All Rights Reserved.