com.noelios.restlet.ext.ssl
Class JsslutilsSslContextFactory

java.lang.Object
  extended by com.noelios.restlet.util.SslContextFactory
      extended by com.noelios.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
 javax.net.ssl.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)
           
 
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 javax.net.ssl.SSLContext createSslContext()
                                          throws java.lang.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
Throws:
java.lang.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)
Specified by:
init in class SslContextFactory


Copyright © 2005-2008 Noelios Technologies.