Package org.restlet.engine.ssl
Class SslContextFactory
java.lang.Object
org.restlet.engine.ssl.SslContextFactory
- Direct Known Subclasses:
DefaultSslContextFactory
This is an abstract factory that produces configured and initialized
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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SSLContextCreates a configured and initialized SSLContext.abstract voidInitialize the factory with the given connector parameters.
-
Constructor Details
-
SslContextFactory
public SslContextFactory()
-
-
Method Details
-
createSslContext
Creates a configured and initialized SSLContext.- Returns:
- A configured and initialized SSLContext.
- Throws:
Exception
-
init
Initialize the factory with the given connector parameters.- Parameters:
parameters- The connector parameters.
-