Class DefaultOpenSSLContextFactory
- java.lang.Object
-
- org.apache.activemq.artemis.core.remoting.impl.ssl.DefaultOpenSSLContextFactory
-
- All Implemented Interfaces:
Comparable<OpenSSLContextFactory>,OpenSSLContextFactory
- Direct Known Subclasses:
CachingOpenSSLContextFactory
public class DefaultOpenSSLContextFactory extends Object implements OpenSSLContextFactory
DefaultOpenSSLContextFactoryfor use inNettyConnectorand NettyAcceptor.
-
-
Field Summary
-
Fields inherited from interface org.apache.activemq.artemis.spi.core.remoting.ssl.OpenSSLContextFactory
log
-
-
Constructor Summary
Constructors Constructor Description DefaultOpenSSLContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.handler.ssl.SslContextgetClientSslContext(SSLContextConfig config, Map<String,Object> additionalOpts)intgetPriority()The 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, wait
-
Methods inherited from interface org.apache.activemq.artemis.spi.core.remoting.ssl.OpenSSLContextFactory
clearSslContexts, compareTo
-
-
-
-
Method Detail
-
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
-
-