Class DefaultOpenSSLContextFactory
java.lang.Object
org.apache.activemq.artemis.core.remoting.impl.ssl.DefaultOpenSSLContextFactory
- All Implemented Interfaces:
Comparable<OpenSSLContextFactory>,OpenSSLContextFactory
- Direct Known Subclasses:
CachingOpenSSLContextFactory
Default
OpenSSLContextFactory for use in NettyConnector and NettyAcceptor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.handler.ssl.SslContextgetClientSslContext(SSLContextConfig config, Map<String, Object> additionalOpts) intThe priority for theOpenSSLContextFactorywhen resolving the service to get the implementation.io.netty.handler.ssl.SslContextgetServerSslContext(SSLContextConfig config, Map<String, Object> additionalOpts) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.spi.core.remoting.ssl.OpenSSLContextFactory
clearSslContexts, compareTo
-
Constructor Details
-
DefaultOpenSSLContextFactory
public DefaultOpenSSLContextFactory()
-
-
Method Details
-
getClientSslContext
public io.netty.handler.ssl.SslContext getClientSslContext(SSLContextConfig config, Map<String, Object> additionalOpts) throws Exception- Specified by:
getClientSslContextin interfaceOpenSSLContextFactory- Parameters:
additionalOpts- not used by this implementation- Returns:
- an
SslContextinstance for the given configuration - Throws:
Exception
-
getServerSslContext
public io.netty.handler.ssl.SslContext getServerSslContext(SSLContextConfig config, Map<String, Object> additionalOpts) throws Exception- Specified by:
getServerSslContextin interfaceOpenSSLContextFactory- Parameters:
additionalOpts- not used by this implementation- Returns:
- an
SslContextinstance for the given configuration - Throws:
Exception
-
getPriority
public int getPriority()Description copied from interface:OpenSSLContextFactoryThe priority for theOpenSSLContextFactorywhen resolving the service to get the implementation. This is used when selecting the implementation when several implementations are loaded. The highest priority implementation will be used.- Specified by:
getPriorityin interfaceOpenSSLContextFactory
-