Package org.wildfly.security.auth.client
Class WildFlyElytronClientDefaultSSLContextSpi
- java.lang.Object
-
- javax.net.ssl.SSLContextSpi
-
- org.wildfly.security.auth.client.WildFlyElytronClientDefaultSSLContextSpi
-
public class WildFlyElytronClientDefaultSSLContextSpi extends SSLContextSpi
SSLContextSpi that is used by WildFlyElytronClientDefaultSSLContextProvider
-
-
Field Summary
Fields Modifier and Type Field Description private SSLContext
configuredDefaultClientSSLContext
-
Constructor Summary
Constructors Constructor Description WildFlyElytronClientDefaultSSLContextSpi()
SSLContextSpi used by WildFlyElytronClientDefaultSSLContextProvider that uses AuthenticationContext found on the classpath to retrieve default SSLContext.WildFlyElytronClientDefaultSSLContextSpi(String configPath)
SSLContextSpi used by WildFlyElytronClientDefaultSSLContextProvider that uses Elytron client configuration from provided path to retrieve default SSLContext.WildFlyElytronClientDefaultSSLContextSpi(AuthenticationContext authenticationContext)
SSLContextSpi used by WildFlyElytronClientDefaultSSLContextProvider that uses Elytron client configuration from provided authentication context.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static URI
configPathUrlToUri(String wildFlyConfig)
Source: A utility method taken from https://github.com/wildfly/wildfly-client-config/blob/master/src/main/java/org/wildfly/client/config/ClientConfiguration.java on March 2022protected SSLEngine
engineCreateSSLEngine()
protected SSLEngine
engineCreateSSLEngine(String s, int i)
protected SSLSessionContext
engineGetClientSessionContext()
protected SSLSessionContext
engineGetServerSessionContext()
protected SSLServerSocketFactory
engineGetServerSocketFactory()
protected SSLSocketFactory
engineGetSocketFactory()
protected void
engineInit(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom secureRandom)
-
Methods inherited from class javax.net.ssl.SSLContextSpi
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
-
-
-
-
Field Detail
-
configuredDefaultClientSSLContext
private SSLContext configuredDefaultClientSSLContext
-
-
Constructor Detail
-
WildFlyElytronClientDefaultSSLContextSpi
public WildFlyElytronClientDefaultSSLContextSpi() throws GeneralSecurityException
SSLContextSpi used by WildFlyElytronClientDefaultSSLContextProvider that uses AuthenticationContext found on the classpath to retrieve default SSLContext.- Throws:
GeneralSecurityException
-
WildFlyElytronClientDefaultSSLContextSpi
public WildFlyElytronClientDefaultSSLContextSpi(String configPath) throws GeneralSecurityException, org.wildfly.client.config.ConfigXMLParseException
SSLContextSpi used by WildFlyElytronClientDefaultSSLContextProvider that uses Elytron client configuration from provided path to retrieve default SSLContext.- Parameters:
configPath
- path to the Elytron client configuration file- Throws:
GeneralSecurityException
org.wildfly.client.config.ConfigXMLParseException
-
WildFlyElytronClientDefaultSSLContextSpi
public WildFlyElytronClientDefaultSSLContextSpi(AuthenticationContext authenticationContext) throws GeneralSecurityException
SSLContextSpi used by WildFlyElytronClientDefaultSSLContextProvider that uses Elytron client configuration from provided authentication context.- Parameters:
authenticationContext
- authentication context used to retrieve default SSLContext- Throws:
GeneralSecurityException
-
-
Method Detail
-
engineInit
protected void engineInit(KeyManager[] keyManagers, TrustManager[] trustManagers, SecureRandom secureRandom)
- Specified by:
engineInit
in classSSLContextSpi
-
engineGetSocketFactory
protected SSLSocketFactory engineGetSocketFactory()
- Specified by:
engineGetSocketFactory
in classSSLContextSpi
-
engineGetServerSocketFactory
protected SSLServerSocketFactory engineGetServerSocketFactory()
- Specified by:
engineGetServerSocketFactory
in classSSLContextSpi
-
engineCreateSSLEngine
protected SSLEngine engineCreateSSLEngine()
- Specified by:
engineCreateSSLEngine
in classSSLContextSpi
-
engineCreateSSLEngine
protected SSLEngine engineCreateSSLEngine(String s, int i)
- Specified by:
engineCreateSSLEngine
in classSSLContextSpi
-
engineGetServerSessionContext
protected SSLSessionContext engineGetServerSessionContext()
- Specified by:
engineGetServerSessionContext
in classSSLContextSpi
-
engineGetClientSessionContext
protected SSLSessionContext engineGetClientSessionContext()
- Specified by:
engineGetClientSessionContext
in classSSLContextSpi
-
-