Package org.wildfly.security.dynamic.ssl
Class DynamicSSLContext
- java.lang.Object
-
- javax.net.ssl.SSLContext
-
- org.wildfly.security.dynamic.ssl.DynamicSSLContext
-
- All Implemented Interfaces:
ActiveSessionsSSLContext
public final class DynamicSSLContext extends SSLContext implements ActiveSessionsSSLContext
SSLContext that resolves which SSLContext to use based on peer's host and port information.- Author:
- Diana Krepinska
-
-
Constructor Summary
Constructors Constructor Description DynamicSSLContext()This constructor uses ServiceLoader to find provider of DynamicSSLContextSPI on classpath.DynamicSSLContext(DynamicSSLContextSPI dynamicSSLContextSPIImpl)This constructor uses received DynamicSSLContextSPI implementation or finds it on classpath if received is null.
-
Method Summary
-
Methods inherited from class javax.net.ssl.SSLContext
createSSLEngine, createSSLEngine, getClientSessionContext, getDefault, getDefaultSSLParameters, getInstance, getInstance, getInstance, getProtocol, getProvider, getServerSessionContext, getServerSocketFactory, getSocketFactory, getSupportedSSLParameters, init, setDefault
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.auth.client.ActiveSessionsSSLContext
hasActiveSessions
-
-
-
-
Constructor Detail
-
DynamicSSLContext
public DynamicSSLContext() throws NoSuchAlgorithmExceptionThis constructor uses ServiceLoader to find provider of DynamicSSLContextSPI on classpath.- Throws:
NoSuchAlgorithmException
-
DynamicSSLContext
public DynamicSSLContext(DynamicSSLContextSPI dynamicSSLContextSPIImpl) throws NoSuchAlgorithmException, DynamicSSLContextException
This constructor uses received DynamicSSLContextSPI implementation or finds it on classpath if received is null.- Parameters:
dynamicSSLContextSPIImpl- DynamicSSLContextSPI implementation to use. If null then ServiceLoader is used to locate it on classpath.- Throws:
NoSuchAlgorithmExceptionDynamicSSLContextException
-
-