public class NIOSSLTransport extends NIOTransport
TcpTransport.InitBuffer| Modifier and Type | Field and Description |
|---|---|
protected String[] |
enabledCipherSuites |
protected String[] |
enabledProtocols |
protected boolean |
handshakeInProgress |
protected SSLEngineResult.HandshakeStatus |
handshakeStatus |
protected CountDownLatch |
initialized |
protected boolean |
needClientAuth |
protected SSLContext |
sslContext |
protected SSLEngine |
sslEngine |
protected SSLSession |
sslSession |
protected SSLEngineResult.Status |
status |
protected TaskRunnerFactory |
taskRunnerFactory |
protected boolean |
verifyHostName |
protected boolean |
wantClientAuth |
channel, currentBuffer, inputBuffer, nextFrameSize, selectionbuffOut, closeAsync, connectionTimeout, dataIn, dataOut, diffServChosen, dynamicManagement, initBuffer, ioBufferSize, jmxPort, localLocation, logWriterName, minmumWireFormatVersion, receiveCounter, remoteLocation, socket, socketBufferSize, socketFactory, socketOptions, soTimeout, startLogging, stoppedLatch, trace, trafficClass, typeOfServiceChosen, useLocalHost, wireFormat| Constructor and Description |
|---|
NIOSSLTransport(WireFormat wireFormat,
SocketFactory socketFactory,
URI remoteLocation,
URI localLocation) |
NIOSSLTransport(WireFormat wireFormat,
Socket socket,
SSLEngine engine,
TcpTransport.InitBuffer initBuffer,
ByteBuffer inputBuffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
doConsume(Object command)
Overriding in order to add the client's certificates to ConnectionInfo Commands.
|
protected void |
doHandshake() |
protected void |
doInit() |
protected void |
doOpenWireInit() |
protected void |
doStart() |
protected void |
doStop(ServiceStopper stopper) |
protected void |
finishHandshake() |
String[] |
getEnabledCipherSuites() |
String[] |
getEnabledProtocols() |
X509Certificate[] |
getPeerCertificates() |
protected void |
initializeStreams() |
boolean |
isNeedClientAuth() |
boolean |
isVerifyHostName() |
boolean |
isWantClientAuth() |
protected void |
processCommand(ByteBuffer plain) |
protected int |
secureRead(ByteBuffer plain) |
void |
serviceRead() |
void |
setEnabledCipherSuites(String[] enabledCipherSuites) |
void |
setEnabledProtocols(String[] enabledProtocols) |
void |
setNeedClientAuth(boolean needClientAuth) |
void |
setSslContext(SSLContext sslContext) |
void |
setVerifyHostName(boolean verifyHostName) |
void |
setWantClientAuth(boolean wantClientAuth) |
readFromBuffercloseStreams, connect, doRun, getConnectionTimeout, getDiffServ, getIoBufferSize, getJmxPort, getKeepAlive, getLogWriterName, getMinmumWireFormatVersion, getReceiveCounter, getRemoteAddress, getSocketBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTypeOfService, getWireFormat, initialiseSocket, isCloseAsync, isDynamicManagement, isStartLogging, isTrace, isUseLocalHost, narrow, oneway, readCommand, resolveHostName, run, setCloseAsync, setConnectionTimeout, setDiffServ, setDynamicManagement, setIoBufferSize, setJmxPort, setKeepAlive, setLogWriterName, setMinmumWireFormatVersion, setPeerCertificates, setSocketBufferSize, setSocketOptions, setSoLinger, setSoTimeout, setStartLogging, setTcpNoDelay, setTrace, setTypeOfService, setUseLocalHost, stop, toStringgetStackSize, isDaemon, setDaemon, setStackSizeasyncRequest, checkStarted, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, onException, reconnect, request, request, setTransportListener, updateURIsaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasyncRequest, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, reconnect, request, request, setTransportListener, updateURIsprotected boolean needClientAuth
protected boolean wantClientAuth
protected String[] enabledCipherSuites
protected String[] enabledProtocols
protected boolean verifyHostName
protected SSLContext sslContext
protected SSLSession sslSession
protected volatile boolean handshakeInProgress
protected SSLEngineResult.Status status
protected SSLEngineResult.HandshakeStatus handshakeStatus
protected TaskRunnerFactory taskRunnerFactory
protected final CountDownLatch initialized
public NIOSSLTransport(WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation) throws UnknownHostException, IOException
UnknownHostExceptionIOExceptionpublic NIOSSLTransport(WireFormat wireFormat, Socket socket, SSLEngine engine, TcpTransport.InitBuffer initBuffer, ByteBuffer inputBuffer) throws IOException
IOExceptionpublic void setSslContext(SSLContext sslContext)
protected void initializeStreams() throws IOException
initializeStreams in class NIOTransportIOExceptionprotected void doOpenWireInit() throws Exception
Exceptionprotected void finishHandshake() throws Exception
Exceptionpublic void serviceRead()
serviceRead in class NIOTransportprotected void processCommand(ByteBuffer plain) throws Exception
Exceptionprotected int secureRead(ByteBuffer plain) throws Exception
Exceptionprotected void doHandshake() throws Exception
Exceptionprotected void doStart() throws Exception
doStart in class NIOTransportExceptionprotected void doStop(ServiceStopper stopper) throws Exception
doStop in class NIOTransportExceptionpublic void doConsume(Object command)
doConsume in class TransportSupportcommand - The Command coming in.public X509Certificate[] getPeerCertificates()
getPeerCertificates in interface TransportgetPeerCertificates in class TcpTransportpublic boolean isNeedClientAuth()
public void setNeedClientAuth(boolean needClientAuth)
public boolean isWantClientAuth()
public void setWantClientAuth(boolean wantClientAuth)
public String[] getEnabledCipherSuites()
public void setEnabledCipherSuites(String[] enabledCipherSuites)
public String[] getEnabledProtocols()
public void setEnabledProtocols(String[] enabledProtocols)
public boolean isVerifyHostName()
public void setVerifyHostName(boolean verifyHostName)
Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.