Class DefaultSSLContextFactory
- java.lang.Object
-
- org.apache.activemq.artemis.core.remoting.impl.ssl.DefaultSSLContextFactory
-
- All Implemented Interfaces:
Comparable<SSLContextFactory>,SSLContextFactory
- Direct Known Subclasses:
CachingSSLContextFactory
public class DefaultSSLContextFactory extends Object implements SSLContextFactory
Simple SSLContextFactory for use in NettyConnector and NettyAcceptor.
-
-
Field Summary
-
Fields inherited from interface org.apache.activemq.artemis.spi.core.remoting.ssl.SSLContextFactory
log
-
-
Constructor Summary
Constructors Constructor Description DefaultSSLContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPriority()The priority for the SSLContextFactory when resolving the service to get the implementation.SSLContextgetSSLContext(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.SSLContextFactory
clearSSLContexts, compareTo, getSSLContext
-
-
-
-
Method Detail
-
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.
-
-