com.noelios.restlet.util
Class SslContextFactory
java.lang.Object
com.noelios.restlet.util.SslContextFactory
- Direct Known Subclasses:
- DefaultSslContextFactory
public abstract class SslContextFactory
- extends java.lang.Object
This is an abstract factory that produces configured and initialised
instances of SSLContext. Concrete implementations of SslContextFactory must
implement createSslContext()
, which should typically consist of:
SSLContext sslContext = SSLContext.getInstance(...);
...
sslContext.init(..., ..., ...);
return sslContext;
- Author:
- Bruno Harbulot (Bruno.Harbulot@manchester.ac.uk)
- See Also:
SSLContext
Method Summary |
abstract javax.net.ssl.SSLContext |
createSslContext()
Creates a configured and initialised SSLContext. |
abstract 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 |
SslContextFactory
public SslContextFactory()
createSslContext
public abstract javax.net.ssl.SSLContext createSslContext()
throws java.lang.Exception
- Creates a configured and initialised SSLContext.
- Returns:
- A configured and initialised SSLContext.
- Throws:
java.lang.Exception
init
public abstract void init(Series<Parameter> parameters)
- Initialize the factory with the given connector parameters.
- Parameters:
parameters
- The connector parameters.
Copyright © 2005-2008 Noelios Technologies.