public class AutoSslTransportServer extends AutoTcpTransportServer
AutoTcpTransportServer.ProtocolInfoautoTransportOptions, brokerService, enabledProtocols, maxConnectionThreadPoolSize, newConnectionExecutor, protocolDetectionExecutor, protocolDetectionTimeOut, protocolVerifiers, wireFormatOptionsallowLinkStealing, backlog, connectionTimeout, currentTransportCount, dynamicManagement, jmxPort, logWriterName, maximumConnections, maxInactivityDuration, maxInactivityDurationInitalDelay, minmumWireFormatVersion, selector, serverSocket, serverSocketFactory, socketBufferSize, socketHandlerThread, socketQueue, soTimeout, startLogging, trace, transportFactory, useQueueForAccept, verifyHostName, wireFormatFactory| Constructor and Description |
|---|
AutoSslTransportServer(org.apache.activemq.transport.tcp.SslTransportFactory transportFactory,
URI location,
SSLServerSocketFactory serverSocketFactory,
BrokerService brokerService,
Set<String> enabledProtocols) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Binds this socket to the previously specified URI.
|
protected org.apache.activemq.transport.tcp.TcpTransport |
createTransport(Socket socket,
org.apache.activemq.wireformat.WireFormat format,
org.apache.activemq.transport.tcp.TcpTransportFactory detectedTransportFactory,
org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer)
Used to create Transports for this server.
|
boolean |
getNeedClientAuth()
Returns whether client authentication should be required.
|
boolean |
getWantClientAuth()
Returns whether client authentication should be requested.
|
boolean |
isSslServer() |
void |
setNeedClientAuth(boolean needAuth)
Sets whether client authentication should be required
Must be called before
bind()
Note: Calling this method clears the wantClientAuth flag
in the underlying implementation. |
void |
setWantClientAuth(boolean wantAuth)
Sets whether client authentication should be requested.
|
append, configureTransport, detectProtocol, doStop, findTransportFactory, findWireFormatFactory, getMaxConnectionThreadPoolSize, handleSocket, initOpenWireProtocolVerifier, initProtocolVerifiers, isAllProtocols, setAutoTransportOptions, setEnabledProtocols, setMaxConnectionThreadPoolSize, setProtocolDetectionTimeOut, setWireFormatFactory, setWireFormatOptions, waitForProtocolDetectionFinishcreateTransport, doHandleSocket, doStart, getBacklog, getConnectionTimeout, getCurrentTransportCount, getJmxPort, getLogWriterName, getMaximumConnections, getMaxInactivityDuration, getMaxInactivityDurationInitalDelay, getMinmumWireFormatVersion, getSocketAddress, getSocketBufferSize, getSoTimeout, getWireFormatFactory, isAllowLinkStealing, isDynamicManagement, isStartLogging, isTrace, isUseQueueForAccept, resolveHostName, run, setAllowLinkStealing, setBacklog, setBrokerInfo, setConnectionTimeout, setDynamicManagement, setJmxPort, setLogWriterName, setMaximumConnections, setMaxInactivityDuration, setMaxInactivityDurationInitalDelay, setMinmumWireFormatVersion, setSocketBufferSize, setSoTimeout, setStartLogging, setTrace, setUseQueueForAccept, started, stopped, toStringgetStackSize, isDaemon, isJoinOnStop, setDaemon, setJoinOnStop, setStackSizegetAcceptListener, getBindLocation, getConnectURI, onAcceptError, setAcceptListener, setBindLocation, setConnectURI, setTransportOptionaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stoppublic AutoSslTransportServer(org.apache.activemq.transport.tcp.SslTransportFactory transportFactory, URI location, SSLServerSocketFactory serverSocketFactory, BrokerService brokerService, Set<String> enabledProtocols) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic void setNeedClientAuth(boolean needAuth)
bind()
Note: Calling this method clears the wantClientAuth flag
in the underlying implementation.public boolean getNeedClientAuth()
public boolean getWantClientAuth()
public void setWantClientAuth(boolean wantAuth)
bind()
Note: Calling this method clears the needClientAuth flag
in the underlying implementation.public void bind() throws IOException
bind in class org.apache.activemq.transport.tcp.TcpTransportServerIOException - passed up from TcpTransportServer.protected org.apache.activemq.transport.tcp.TcpTransport createTransport(Socket socket, org.apache.activemq.wireformat.WireFormat format, org.apache.activemq.transport.tcp.TcpTransportFactory detectedTransportFactory, org.apache.activemq.transport.tcp.TcpTransport.InitBuffer initBuffer) throws IOException
createTransport in class AutoTcpTransportServersocket - The incoming socket that will be wrapped into the new Transport.format - The WireFormat being used.IOExceptionpublic boolean isSslServer()
isSslServer in interface org.apache.activemq.transport.TransportServerisSslServer in class org.apache.activemq.transport.tcp.TcpTransportServerCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.