|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.transport.TransportFactory
org.apache.activemq.transport.tcp.TcpTransportFactory
org.apache.activemq.transport.tcp.SslTransportFactory
public class SslTransportFactory
An implementation of the TcpTransportFactory using SSL. The major contribution from this class is that it is aware of SslTransportServer and SslTransport classes. All Transports and TransportServers created from this factory will have their needClientAuth option set to false.
Constructor Summary | |
---|---|
SslTransportFactory()
|
Method Summary | |
---|---|
Transport |
compositeConfigure(Transport transport,
WireFormat format,
java.util.Map options)
Overriding to allow for proper configuration through reflection. |
protected javax.net.ServerSocketFactory |
createServerSocketFactory()
Creates a new SSL ServerSocketFactory. |
protected javax.net.SocketFactory |
createSocketFactory()
Creates a new SSL SocketFactory. |
protected Transport |
createTransport(java.net.URI location,
WireFormat wf)
Overriding to use SslTransports. |
TransportServer |
doBind(java.net.URI location)
Overriding to use SslTransportServer and allow for proper reflection. |
void |
setKeyAndTrustManagers(javax.net.ssl.KeyManager[] km,
javax.net.ssl.TrustManager[] tm,
java.security.SecureRandom random)
Deprecated. "Do not use anymore... using static initializers like this method only allows the JVM to use 1 SSL configuration per broker." |
Methods inherited from class org.apache.activemq.transport.tcp.TcpTransportFactory |
---|
createTcpTransport, createTcpTransportServer, isUseInactivityMonitor |
Methods inherited from class org.apache.activemq.transport.TransportFactory |
---|
bind, bind, bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, getDefaultWireFormatType, getOption, registerTransportFactory, serverConfigure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SslTransportFactory()
Method Detail |
---|
public TransportServer doBind(java.net.URI location) throws java.io.IOException
doBind
in class TcpTransportFactory
java.io.IOException
public Transport compositeConfigure(Transport transport, WireFormat format, java.util.Map options)
compositeConfigure
in class TcpTransportFactory
protected Transport createTransport(java.net.URI location, WireFormat wf) throws java.net.UnknownHostException, java.io.IOException
createTransport
in class TcpTransportFactory
java.net.UnknownHostException
java.io.IOException
protected javax.net.ServerSocketFactory createServerSocketFactory() throws java.io.IOException
createServerSocketFactory
in class TcpTransportFactory
java.io.IOException
protected javax.net.SocketFactory createSocketFactory() throws java.io.IOException
createSocketFactory
in class TcpTransportFactory
java.io.IOException
public void setKeyAndTrustManagers(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom random)
km
- tm
- random
- SslContext.setCurrentSslContext(SslContext)
,
SslContext.getSSLContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |