Package org.wildfly.security.dynamic.ssl
Class DynamicSSLContextImpl
- java.lang.Object
-
- org.wildfly.security.dynamic.ssl.DynamicSSLContextImpl
-
- All Implemented Interfaces:
DynamicSSLContextSPI
@MetaInfServices(DynamicSSLContextSPI.class) public class DynamicSSLContextImpl extends Object implements DynamicSSLContextSPI
Elytron client implementation of DynamicSSLContextSPI. It uses configuration from either provided instance of AuthenticationContext or from current AuthenticationContext if a configuration was not provided.- Author:
- Diana Krepinska (Vilkolakova)
-
-
Constructor Summary
Constructors Constructor Description DynamicSSLContextImpl()DynamicSSLContextImpl(AuthenticationContext authenticationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLContextgetConfiguredDefault()Get SSLContext that will be used as a default, eg. when no URI is provided.List<SSLContext>getConfiguredSSLContexts()Get list of all configured SSLContexts.SSLContextgetSSLContext(URI uri)Get the SSLContext that matches the given URI.
-
-
-
Constructor Detail
-
DynamicSSLContextImpl
public DynamicSSLContextImpl() throws GeneralSecurityException- Throws:
GeneralSecurityException
-
DynamicSSLContextImpl
public DynamicSSLContextImpl(AuthenticationContext authenticationContext) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
-
Method Detail
-
getConfiguredDefault
public SSLContext getConfiguredDefault() throws DynamicSSLContextException
Description copied from interface:DynamicSSLContextSPIGet SSLContext that will be used as a default, eg. when no URI is provided.- Specified by:
getConfiguredDefaultin interfaceDynamicSSLContextSPI- Returns:
- configured default SSLContext
- Throws:
DynamicSSLContextException
-
getConfiguredSSLContexts
public List<SSLContext> getConfiguredSSLContexts() throws DynamicSSLContextException
Description copied from interface:DynamicSSLContextSPIGet list of all configured SSLContexts. This is used to obtain cipher suites supported by all SSLContexts.- Specified by:
getConfiguredSSLContextsin interfaceDynamicSSLContextSPI- Returns:
- list of all configured SSLContexts
- Throws:
DynamicSSLContextException
-
getSSLContext
public SSLContext getSSLContext(URI uri) throws DynamicSSLContextException
Description copied from interface:DynamicSSLContextSPIGet the SSLContext that matches the given URI.- Specified by:
getSSLContextin interfaceDynamicSSLContextSPI- Returns:
- SSLContext that matches the given URI
- Throws:
DynamicSSLContextException
-
-