Package org.wildfly.security.ssl
Class AbstractDelegatingSSLContextSpi
- java.lang.Object
-
- javax.net.ssl.SSLContextSpi
-
- org.wildfly.security.ssl.AbstractDelegatingSSLContextSpi
-
- Direct Known Subclasses:
ConfiguredSSLContextSpi
abstract class AbstractDelegatingSSLContextSpi extends SSLContextSpi
An SSL context SPI implementation which delegates to another SSL context.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private SSLContext
delegate
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDelegatingSSLContextSpi(SSLContext delegate)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SSLEngine
engineCreateSSLEngine()
protected SSLEngine
engineCreateSSLEngine(String host, int port)
protected SSLSessionContext
engineGetClientSessionContext()
protected SSLParameters
engineGetDefaultSSLParameters()
protected SSLSessionContext
engineGetServerSessionContext()
protected SSLServerSocketFactory
engineGetServerSocketFactory()
protected SSLSocketFactory
engineGetSocketFactory()
protected SSLParameters
engineGetSupportedSSLParameters()
protected void
engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr)
protected SSLContext
getDelegate()
Get the delegate SSL context.String
toString()
-
-
-
Field Detail
-
delegate
private final SSLContext delegate
-
-
Constructor Detail
-
AbstractDelegatingSSLContextSpi
protected AbstractDelegatingSSLContextSpi(SSLContext delegate)
Construct a new instance.- Parameters:
delegate
- the SSL context to delegate
-
-
Method Detail
-
engineInit
protected void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr) throws KeyManagementException
- Specified by:
engineInit
in classSSLContextSpi
- Throws:
KeyManagementException
-
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 host, int port)
- Specified by:
engineCreateSSLEngine
in classSSLContextSpi
-
engineGetServerSessionContext
protected SSLSessionContext engineGetServerSessionContext()
- Specified by:
engineGetServerSessionContext
in classSSLContextSpi
-
engineGetClientSessionContext
protected SSLSessionContext engineGetClientSessionContext()
- Specified by:
engineGetClientSessionContext
in classSSLContextSpi
-
engineGetDefaultSSLParameters
protected SSLParameters engineGetDefaultSSLParameters()
- Overrides:
engineGetDefaultSSLParameters
in classSSLContextSpi
-
engineGetSupportedSSLParameters
protected SSLParameters engineGetSupportedSSLParameters()
- Overrides:
engineGetSupportedSSLParameters
in classSSLContextSpi
-
getDelegate
protected SSLContext getDelegate()
Get the delegate SSL context.- Returns:
- the delegate SSL context
-
-