Interface OpenSSLContextFactory
- All Superinterfaces:
Comparable<OpenSSLContextFactory>
Service interface to create an
SslContext for a configuration. This is ONLY used with OpenSSL. To create and
use your own implementation you need to create a file
META-INF/services/org.apache.activemq.artemis.spi.core.remoting.ssl.OpenSSLContextFactory in your jar and
fill it with the full qualified name of your implementation.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidRelease any cachedSslContextinstances.default intcompareTo(OpenSSLContextFactory other) io.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)
-
Method Details
-
clearSslContexts
default void clearSslContexts()Release any cachedSslContextinstances. -
compareTo
- Specified by:
compareToin interfaceComparable<OpenSSLContextFactory>
-
getClientSslContext
-
getServerSslContext
-
getPriority
int getPriority()The 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.
-