public class SslTransportFactory extends TcpTransportFactory
Constructor and Description |
---|
SslTransportFactory() |
Modifier and Type | Method and Description |
---|---|
Transport |
compositeConfigure(Transport transport,
WireFormat format,
Map options)
Overriding to allow for proper configuration through reflection but delegate to get common
configuration
|
protected ServerSocketFactory |
createServerSocketFactory()
Creates a new SSL ServerSocketFactory.
|
protected SocketFactory |
createSocketFactory()
Creates a new SSL SocketFactory.
|
protected Transport |
createTransport(URI location,
WireFormat wf)
Overriding to use SslTransports.
|
TransportServer |
doBind(URI location)
Overriding to use SslTransportServer and allow for proper reflection.
|
void |
setKeyAndTrustManagers(KeyManager[] km,
TrustManager[] tm,
SecureRandom random)
Deprecated.
"Do not use anymore... using static initializers like this method only allows the JVM to use 1 SSL configuration per broker."
|
createInactivityMonitor, createTcpTransport, createTcpTransportServer, isUseInactivityMonitor
bind, bind, bind, compositeConnect, compositeConnect, configure, connect, connect, createWireFormat, createWireFormatFactory, doCompositeConnect, doCompositeConnect, doConnect, doConnect, getDefaultWireFormatType, getOption, registerTransportFactory, serverConfigure
public SslTransportFactory()
public TransportServer doBind(URI location) throws IOException
doBind
in class TcpTransportFactory
IOException
public Transport compositeConfigure(Transport transport, WireFormat format, Map options)
compositeConfigure
in class TcpTransportFactory
protected Transport createTransport(URI location, WireFormat wf) throws UnknownHostException, IOException
createTransport
in class TcpTransportFactory
UnknownHostException
IOException
protected ServerSocketFactory createServerSocketFactory() throws IOException
createServerSocketFactory
in class TcpTransportFactory
IOException
protected SocketFactory createSocketFactory() throws IOException
createSocketFactory
in class TcpTransportFactory
IOException
public void setKeyAndTrustManagers(KeyManager[] km, TrustManager[] tm, SecureRandom random)
km
- tm
- random
- SslContext.setCurrentSslContext(SslContext)
,
SslContext.getSSLContext()
Copyright © 2005–2015. All rights reserved.