Interface SSLContextFactory
-
- All Superinterfaces:
Comparable<SSLContextFactory>
public interface SSLContextFactory extends 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 fileMETA-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
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
clearSSLContexts()
default int
compareTo(SSLContextFactory other)
int
getPriority()
The priority for the SSLContextFactory when resolving the service to get the implementation.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)
Deprecated.usegetSSLContext(SSLContextConfig, Map)
insteaddefault SSLContext
getSSLContext(SSLContextConfig config, Map<String,Object> additionalOpts)
-
-
-
Method Detail
-
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 Exception
Deprecated.usegetSSLContext(SSLContextConfig, Map)
instead- Returns:
- an
SSLContext
for 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
SSLContext
for 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
default int compareTo(SSLContextFactory other)
- Specified by:
compareTo
in interfaceComparable<SSLContextFactory>
-
-