Class DefaultSSLContextFactory
java.lang.Object
org.apache.activemq.artemis.core.remoting.impl.ssl.DefaultSSLContextFactory
- All Implemented Interfaces:
Comparable<SSLContextFactory>,SSLContextFactory
- Direct Known Subclasses:
CachingSSLContextFactory,WildFlySSLContextFactory
Simple SSLContextFactory for use in NettyConnector and NettyAcceptor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe priority for the SSLContextFactory when resolving the service to get the implementation.getSSLContext(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.SSLContextFactory
clearSSLContexts, compareTo, getSSLContext
-
Constructor Details
-
DefaultSSLContextFactory
public DefaultSSLContextFactory()
-
-
Method Details
-
getSSLContext
public SSLContext getSSLContext(SSLContextConfig config, Map<String, Object> additionalOpts) throws Exception- Specified by:
getSSLContextin interfaceSSLContextFactoryadditionalOpts- implementation specific additional options.- Returns:
- an
SSLContextfor the given configuration - Throws:
Exception
-
getPriority
public int getPriority()Description copied from interface:SSLContextFactoryThe priority for the SSLContextFactory when 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 interfaceSSLContextFactory- Returns:
- the priority
-