|
||||||||||
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,
java.net.URI location,
javax.net.ssl.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(java.net.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. |
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, 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, java.net.URI location, javax.net.ssl.SSLServerSocketFactory serverSocketFactory) throws java.io.IOException, java.net.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.
java.io.IOException
- passed up from TcpTransportFactory.
java.net.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 java.io.IOException
bind
in class TcpTransportServer
java.io.IOException
- passed up from TcpTransportServer.protected Transport createTransport(java.net.Socket socket, WireFormat format) throws java.io.IOException
createTransport
in class TcpTransportServer
socket
- The incoming socket that will be wrapped into the new Transport.format
- The WireFormat being used.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |