Package org.restlet.engine.ssl
Class SslContextFactory
- java.lang.Object
-
- org.restlet.engine.ssl.SslContextFactory
-
- Direct Known Subclasses:
DefaultSslContextFactory
public abstract class SslContextFactory extends java.lang.Object
This is an abstract factory that produces configured and initialized instances of SSLContext. Concrete implementations of SslContextFactory must implementcreateSslContext()
, which should typically consist of:SSLContext sslContext = SSLContext.getInstance(...); ... sslContext.init(..., ..., ...); return sslContext;
- Author:
- Bruno Harbulot
- See Also:
SSLContext
-
-
Constructor Summary
Constructors Constructor Description SslContextFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract javax.net.ssl.SSLContext
createSslContext()
Creates a configured and initialized SSLContext.abstract void
init(org.restlet.util.Series<org.restlet.data.Parameter> parameters)
Initialize the factory with the given connector parameters.
-
-
-
Method Detail
-
createSslContext
public abstract javax.net.ssl.SSLContext createSslContext() throws java.lang.Exception
Creates a configured and initialized SSLContext.- Returns:
- A configured and initialized SSLContext.
- Throws:
java.lang.Exception
-
init
public abstract void init(org.restlet.util.Series<org.restlet.data.Parameter> parameters)
Initialize the factory with the given connector parameters.- Parameters:
parameters
- The connector parameters.
-
-