|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportServerSupport
org.apache.activemq.transport.TransportServerThreadSupport
org.apache.activemq.transport.tcp.TcpTransportServer
org.apache.activemq.transport.tcp.SslTransportServer
public class SslTransportServer
An SSL TransportServer. Allows for client certificate authentication (refer to setNeedClientAuth for details). NOTE: Client certificate authentication is disabled by default.
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.transport.tcp.TcpTransportServer |
|---|
backlog, connectionTimeout, currentTransportCount, dynamicManagement, logWriterName, maximumConnections, maxInactivityDuration, maxInactivityDurationInitalDelay, minmumWireFormatVersion, serverSocket, serverSocketFactory, socketBufferSize, socketHandlerThread, socketQueue, soTimeout, startLogging, trace, transportFactory, useQueueForAccept, wireFormatFactory |
| Fields inherited from class org.apache.activemq.transport.TransportServerSupport |
|---|
transportOptions |
| Constructor Summary | |
|---|---|
SslTransportServer(SslTransportFactory transportFactory,
URI location,
SSLServerSocketFactory serverSocketFactory)
Creates a ssl transport server for the specified url using the provided serverSocketFactory |
|
| Method Summary | |
|---|---|
void |
bind()
Binds this socket to the previously specified URI. |
protected Transport |
createTransport(Socket socket,
WireFormat format)
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()
For TransportServers that provide SSL connections to their connected peers they should return true here if and only if they populate the ConnectionInfo command presented to the Broker with the peers certificate chain so that the broker knows it can use that information to authenticate the connected peer. |
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. |
| Methods inherited from class org.apache.activemq.transport.TransportServerThreadSupport |
|---|
getStackSize, isDaemon, isJoinOnStop, setDaemon, setJoinOnStop, setStackSize |
| Methods inherited from class org.apache.activemq.transport.TransportServerSupport |
|---|
getAcceptListener, getBindLocation, getConnectURI, onAcceptError, setAcceptListener, setBindLocation, setConnectURI, setTransportOption |
| Methods inherited from class org.apache.activemq.util.ServiceSupport |
|---|
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.activemq.Service |
|---|
start, stop |
| Constructor Detail |
|---|
public SslTransportServer(SslTransportFactory transportFactory,
URI location,
SSLServerSocketFactory serverSocketFactory)
throws IOException,
URISyntaxException
transportFactory - The factory used to create transports when connections arrive.location - The location of the broker to bind to.serverSocketFactory - The factory used to create this server.
IOException - passed up from TcpTransportFactory.
URISyntaxException - passed up from TcpTransportFactory.| Method Detail |
|---|
public 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 TcpTransportServerIOException - passed up from TcpTransportServer.
protected Transport createTransport(Socket socket,
WireFormat format)
throws IOException
createTransport in class TcpTransportServersocket - The incoming socket that will be wrapped into the new Transport.format - The WireFormat being used.
IOExceptionpublic boolean isSslServer()
TransportServer
isSslServer in interface TransportServerisSslServer in class TcpTransportServer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||