org.restlet.ext.ssl
Class JsslutilsSslContextFactory

java.lang.Object
  extended by org.restlet.ext.ssl.SslContextFactory
      extended by org.restlet.ext.ssl.JsslutilsSslContextFactory

public class JsslutilsSslContextFactory
extends SslContextFactory

This SslContextFactory is a wrapper for the SSLContextFactory of jSSLutils.

Author:
Bruno Harbulot (Bruno.Harbulot@manchester.ac.uk)

Constructor Summary
JsslutilsSslContextFactory(org.jsslutils.sslcontext.SSLContextFactory sslContextFactory)
          Builds JsslutilsSslContextFactory that wraps an instance of jsslutils.sslcontext.SSLContextFactory.
 
Method Summary
 SSLContext createSslContext()
          Creates a configured and initialised SSLContext by delegating the call to the SSLContextFactory with which the target instance was built.
 org.jsslutils.sslcontext.SSLContextFactory getSslContextFactory()
          Returns the wrapped SSLContextFactory with which this instance was built.
 void init(Series<Parameter> parameters)
          Initialize the factory with the given connector parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsslutilsSslContextFactory

public JsslutilsSslContextFactory(org.jsslutils.sslcontext.SSLContextFactory sslContextFactory)
Builds JsslutilsSslContextFactory that wraps an instance of jsslutils.sslcontext.SSLContextFactory.

Parameters:
sslContextFactory - SSLContextFactory (from jSSLutils) to wrap.
Method Detail

createSslContext

public SSLContext createSslContext()
                            throws Exception
Creates a configured and initialised SSLContext by delegating the call to the SSLContextFactory with which the target instance was built. Please set the SSLContext protocol in that factory; it is 'SSLv3' in version 0.3 of jSSLutils.

Specified by:
createSslContext in class SslContextFactory
Returns:
A configured and initialized SSLContext.
Throws:
Exception
See Also:
SSLContextFactory.buildSSLContext()

getSslContextFactory

public org.jsslutils.sslcontext.SSLContextFactory getSslContextFactory()
Returns the wrapped SSLContextFactory with which this instance was built.

Returns:
the wrapped SSLContextFactory.

init

public void init(Series<Parameter> parameters)
Description copied from class: SslContextFactory
Initialize the factory with the given connector parameters.

Specified by:
init in class SslContextFactory
Parameters:
parameters - The connector parameters.


Copyright © 2005-2013 Restlet.