Restlet Framework 2.2.1
OSGi Environments

org.restlet.engine.ssl
Class WrapperSslContextSpi

java.lang.Object
  extended by javax.net.ssl.SSLContextSpi
      extended by org.restlet.engine.ssl.WrapperSslContextSpi

public class WrapperSslContextSpi
extends SSLContextSpi

Default SSL context SPI capable or setting additional properties on the created SSL engines and socket factories.

Author:
Jerome Louvel

Constructor Summary
WrapperSslContextSpi(DefaultSslContextFactory contextFactory, SSLContext wrappedContext)
          Constructor.
 
Method Summary
protected  SSLEngine engineCreateSSLEngine()
           
protected  SSLEngine engineCreateSSLEngine(String peerHost, int peerPort)
           
protected  SSLSessionContext engineGetClientSessionContext()
           
protected  SSLSessionContext engineGetServerSessionContext()
           
protected  SSLServerSocketFactory engineGetServerSocketFactory()
           
protected  SSLSocketFactory engineGetSocketFactory()
           
protected  void engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom random)
           
protected  DefaultSslContextFactory getContextFactory()
          Returns the parent SSL context factory.
protected  SSLContext getWrappedContext()
          Returns the wrapped SSL context.
protected  void initEngine(SSLEngine sslEngine)
          Initializes the SSL engine with additional parameters from the SSL context factory.
 
Methods inherited from class javax.net.ssl.SSLContextSpi
engineGetDefaultSSLParameters, engineGetSupportedSSLParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapperSslContextSpi

public WrapperSslContextSpi(DefaultSslContextFactory contextFactory,
                            SSLContext wrappedContext)
Constructor.

Parameters:
contextFactory - The parent SSL context factory.
wrappedContext - The wrapped SSL context.
Method Detail

engineCreateSSLEngine

protected SSLEngine engineCreateSSLEngine()
Specified by:
engineCreateSSLEngine in class SSLContextSpi

engineCreateSSLEngine

protected SSLEngine engineCreateSSLEngine(String peerHost,
                                          int peerPort)
Specified by:
engineCreateSSLEngine in class SSLContextSpi

engineGetClientSessionContext

protected SSLSessionContext engineGetClientSessionContext()
Specified by:
engineGetClientSessionContext in class SSLContextSpi

engineGetServerSessionContext

protected SSLSessionContext engineGetServerSessionContext()
Specified by:
engineGetServerSessionContext in class SSLContextSpi

engineGetServerSocketFactory

protected SSLServerSocketFactory engineGetServerSocketFactory()
Specified by:
engineGetServerSocketFactory in class SSLContextSpi

engineGetSocketFactory

protected SSLSocketFactory engineGetSocketFactory()
Specified by:
engineGetSocketFactory in class SSLContextSpi

engineInit

protected void engineInit(KeyManager[] km,
                          TrustManager[] tm,
                          SecureRandom random)
                   throws KeyManagementException
Specified by:
engineInit in class SSLContextSpi
Throws:
KeyManagementException

getContextFactory

protected DefaultSslContextFactory getContextFactory()
Returns the parent SSL context factory.

Returns:
The parent SSL context factory.

getWrappedContext

protected SSLContext getWrappedContext()
Returns the wrapped SSL context.

Returns:
The wrapped SSL context.

initEngine

protected void initEngine(SSLEngine sslEngine)
Initializes the SSL engine with additional parameters from the SSL context factory.

Parameters:
sslEngine - The SSL engine to initialize.

Restlet Framework 2.2.1
OSGi Environments

Copyright © 2005-2014 Restlet.