Interface SSLContextFactory
-
- All Superinterfaces:
java.lang.Comparable<SSLContextFactory>
public interface SSLContextFactory extends java.lang.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.SSLContextFactoryin your jar and fill it with the full qualified name of your implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.logging.Loggerlog
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidclearSSLContexts()default intcompareTo(SSLContextFactory other)intgetPriority()The priority for the SSLContextFactory when resolving the service to get the implementation.default javax.net.ssl.SSLContextgetSSLContext(java.util.Map<java.lang.String,java.lang.Object> configuration, java.lang.String keystoreProvider, java.lang.String keystorePath, java.lang.String keystoreType, java.lang.String keystorePassword, java.lang.String truststoreProvider, java.lang.String truststorePath, java.lang.String truststoreType, java.lang.String truststorePassword, java.lang.String crlPath, java.lang.String trustManagerFactoryPlugin, boolean trustAll)Deprecated.usegetSSLContext(SSLContextConfig, Map)insteaddefault javax.net.ssl.SSLContextgetSSLContext(SSLContextConfig config, java.util.Map<java.lang.String,java.lang.Object> additionalOpts)
-
-
-
Method Detail
-
getSSLContext
@Deprecated default javax.net.ssl.SSLContext getSSLContext(java.util.Map<java.lang.String,java.lang.Object> configuration, java.lang.String keystoreProvider, java.lang.String keystorePath, java.lang.String keystoreType, java.lang.String keystorePassword, java.lang.String truststoreProvider, java.lang.String truststorePath, java.lang.String truststoreType, java.lang.String truststorePassword, java.lang.String crlPath, java.lang.String trustManagerFactoryPlugin, boolean trustAll) throws java.lang.ExceptionDeprecated.usegetSSLContext(SSLContextConfig, Map)instead- Returns:
- an
SSLContextfor the given configuration. - Throws:
java.lang.Exception
-
getSSLContext
default javax.net.ssl.SSLContext getSSLContext(SSLContextConfig config, java.util.Map<java.lang.String,java.lang.Object> additionalOpts) throws java.lang.Exception
- Parameters:
additionalOpts- implementation specific additional options.- Returns:
- an
SSLContextfor the given configuration. - Throws:
java.lang.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:
compareToin interfacejava.lang.Comparable<SSLContextFactory>
-
-