Package org.restlet.engine.ssl
Class WrapperSslContextSpi
java.lang.Object
javax.net.ssl.SSLContextSpi
org.restlet.engine.ssl.WrapperSslContextSpi
Default SSL context SPI capable or setting additional properties on the
created SSL engines and socket factories.
- Author:
- Jerome Louvel
-
Constructor Summary
ConstructorsConstructorDescriptionWrapperSslContextSpi(DefaultSslContextFactory contextFactory, SSLContext wrappedContext) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected SSLEngineprotected SSLEngineengineCreateSSLEngine(String peerHost, int peerPort) protected SSLSessionContextprotected SSLSessionContextprotected SSLServerSocketFactoryprotected SSLSocketFactoryprotected voidengineInit(KeyManager[] km, TrustManager[] tm, SecureRandom random) protected DefaultSslContextFactoryReturns the parent SSL context factory.protected SSLContextReturns the wrapped SSL context.protected voidinitEngine(SSLEngine sslEngine) Initializes the SSL engine with additional parameters from the SSL context factory.Methods inherited from class javax.net.ssl.SSLContextSpi
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
-
Constructor Details
-
WrapperSslContextSpi
Constructor.- Parameters:
contextFactory- The parent SSL context factory.wrappedContext- The wrapped SSL context.
-
-
Method Details
-
engineCreateSSLEngine
- Specified by:
engineCreateSSLEnginein classSSLContextSpi
-
engineCreateSSLEngine
- Specified by:
engineCreateSSLEnginein classSSLContextSpi
-
engineGetClientSessionContext
- Specified by:
engineGetClientSessionContextin classSSLContextSpi
-
engineGetServerSessionContext
- Specified by:
engineGetServerSessionContextin classSSLContextSpi
-
engineGetServerSocketFactory
- Specified by:
engineGetServerSocketFactoryin classSSLContextSpi
-
engineGetSocketFactory
- Specified by:
engineGetSocketFactoryin classSSLContextSpi
-
engineInit
protected void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom random) throws KeyManagementException - Specified by:
engineInitin classSSLContextSpi- Throws:
KeyManagementException
-
getContextFactory
Returns the parent SSL context factory.- Returns:
- The parent SSL context factory.
-
getWrappedContext
Returns the wrapped SSL context.- Returns:
- The wrapped SSL context.
-
initEngine
Initializes the SSL engine with additional parameters from the SSL context factory.- Parameters:
sslEngine- The SSL engine to initialize.
-