Package org.restlet.engine.ssl
Class WrapperSslContextSpi
- java.lang.Object
-
- javax.net.ssl.SSLContextSpi
-
- org.restlet.engine.ssl.WrapperSslContextSpi
-
public class WrapperSslContextSpi extends javax.net.ssl.SSLContextSpiDefault SSL context SPI capable or setting additional properties on the created SSL engines and socket factories.- Author:
- Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description WrapperSslContextSpi(DefaultSslContextFactory contextFactory, javax.net.ssl.SSLContext wrappedContext)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.net.ssl.SSLEngineengineCreateSSLEngine()protected javax.net.ssl.SSLEngineengineCreateSSLEngine(java.lang.String peerHost, int peerPort)protected javax.net.ssl.SSLSessionContextengineGetClientSessionContext()protected javax.net.ssl.SSLSessionContextengineGetServerSessionContext()protected javax.net.ssl.SSLServerSocketFactoryengineGetServerSocketFactory()protected javax.net.ssl.SSLSocketFactoryengineGetSocketFactory()protected voidengineInit(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom random)protected DefaultSslContextFactorygetContextFactory()Returns the parent SSL context factory.protected javax.net.ssl.SSLContextgetWrappedContext()Returns the wrapped SSL context.protected voidinitEngine(javax.net.ssl.SSLEngine sslEngine)Initializes the SSL engine with additional parameters from the SSL context factory.
-
-
-
Constructor Detail
-
WrapperSslContextSpi
public WrapperSslContextSpi(DefaultSslContextFactory contextFactory, javax.net.ssl.SSLContext wrappedContext)
Constructor.- Parameters:
contextFactory- The parent SSL context factory.wrappedContext- The wrapped SSL context.
-
-
Method Detail
-
engineCreateSSLEngine
protected javax.net.ssl.SSLEngine engineCreateSSLEngine()
- Specified by:
engineCreateSSLEnginein classjavax.net.ssl.SSLContextSpi
-
engineCreateSSLEngine
protected javax.net.ssl.SSLEngine engineCreateSSLEngine(java.lang.String peerHost, int peerPort)- Specified by:
engineCreateSSLEnginein classjavax.net.ssl.SSLContextSpi
-
engineGetClientSessionContext
protected javax.net.ssl.SSLSessionContext engineGetClientSessionContext()
- Specified by:
engineGetClientSessionContextin classjavax.net.ssl.SSLContextSpi
-
engineGetServerSessionContext
protected javax.net.ssl.SSLSessionContext engineGetServerSessionContext()
- Specified by:
engineGetServerSessionContextin classjavax.net.ssl.SSLContextSpi
-
engineGetServerSocketFactory
protected javax.net.ssl.SSLServerSocketFactory engineGetServerSocketFactory()
- Specified by:
engineGetServerSocketFactoryin classjavax.net.ssl.SSLContextSpi
-
engineGetSocketFactory
protected javax.net.ssl.SSLSocketFactory engineGetSocketFactory()
- Specified by:
engineGetSocketFactoryin classjavax.net.ssl.SSLContextSpi
-
engineInit
protected void engineInit(javax.net.ssl.KeyManager[] km, javax.net.ssl.TrustManager[] tm, java.security.SecureRandom random) throws java.security.KeyManagementException- Specified by:
engineInitin classjavax.net.ssl.SSLContextSpi- Throws:
java.security.KeyManagementException
-
getContextFactory
protected DefaultSslContextFactory getContextFactory()
Returns the parent SSL context factory.- Returns:
- The parent SSL context factory.
-
getWrappedContext
protected javax.net.ssl.SSLContext getWrappedContext()
Returns the wrapped SSL context.- Returns:
- The wrapped SSL context.
-
initEngine
protected void initEngine(javax.net.ssl.SSLEngine sslEngine)
Initializes the SSL engine with additional parameters from the SSL context factory.- Parameters:
sslEngine- The SSL engine to initialize.
-
-