Interface SSLContextFactory
- All Superinterfaces:
Comparable<SSLContextFactory>
Service interface to create a SSLContext for a configuration. This is NOT used by 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.SSLContextFactory in your jar and fill it
with the full qualified name of your implementation.-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefault intcompareTo(SSLContextFactory other) intThe priority for the SSLContextFactory when resolving the service to get the implementation.default SSLContextgetSSLContext(Map<String, Object> configuration, String keystoreProvider, String keystorePath, String keystoreType, String keystorePassword, String truststoreProvider, String truststorePath, String truststoreType, String truststorePassword, String crlPath, String trustManagerFactoryPlugin, boolean trustAll) Deprecated.default SSLContextgetSSLContext(SSLContextConfig config, Map<String, Object> additionalOpts)
-
Method Details
-
getSSLContext
@Deprecated default SSLContext getSSLContext(Map<String, Object> configuration, String keystoreProvider, String keystorePath, String keystoreType, String keystorePassword, String truststoreProvider, String truststorePath, String truststoreType, String truststorePassword, String crlPath, String trustManagerFactoryPlugin, boolean trustAll) throws ExceptionDeprecated.usegetSSLContext(SSLContextConfig, Map)instead- Returns:
- an
SSLContextfor the given configuration - Throws:
Exception
-
getSSLContext
default SSLContext getSSLContext(SSLContextConfig config, Map<String, Object> additionalOpts) throws Exception- Parameters:
additionalOpts- implementation specific additional options.- Returns:
- an
SSLContextfor the given configuration - Throws:
Exception
-
clearSSLContexts
default void clearSSLContexts() -
getPriority
int getPriority()The 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.- Returns:
- the priority
-
compareTo
- Specified by:
compareToin interfaceComparable<SSLContextFactory>
-
getSSLContext(SSLContextConfig, Map)instead