com.noelios.restlet.util.SslContextFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.restlet
Show all versions of org.apache.servicemix.bundles.restlet
This OSGi bundle wraps org.restlet, and com.noelios.restlet ${pkgVersion} jar files.
The newest version!
/**
* Copyright 2005-2008 Noelios Technologies.
*
* The contents of this file are subject to the terms of the following open
* source licenses: LGPL 3.0 or LGPL 2.1 or CDDL 1.0 (the "Licenses"). You can
* select the license that you prefer but you may not use this file except in
* compliance with one of these Licenses.
*
* You can obtain a copy of the LGPL 3.0 license at
* http://www.gnu.org/licenses/lgpl-3.0.html
*
* You can obtain a copy of the LGPL 2.1 license at
* http://www.gnu.org/licenses/lgpl-2.1.html
*
* You can obtain a copy of the CDDL 1.0 license at
* http://www.sun.com/cddl/cddl.html
*
* See the Licenses for the specific language governing permissions and
* limitations under the Licenses.
*
* Alternatively, you can obtain a royaltee free commercial license with less
* limitations, transferable or non-transferable, directly at
* http://www.noelios.com/products/restlet-engine
*
* Restlet is a registered trademark of Noelios Technologies.
*/
package com.noelios.restlet.util;
import javax.net.ssl.SSLContext;
import org.restlet.data.Parameter;
import org.restlet.util.Series;
/**
* This is an abstract factory that produces configured and initialised
* instances of SSLContext. Concrete implementations of SslContextFactory must
* implement {@link #createSslContext()}, which should typically consist of:
*
*
* SSLContext sslContext = SSLContext.getInstance(...);
* ...
* sslContext.init(..., ..., ...);
* return sslContext;
*
*
* @author Bruno Harbulot ([email protected])
* @see SSLContext
*/
public abstract class SslContextFactory {
/**
* Creates a configured and initialised SSLContext.
*
* @return A configured and initialised SSLContext.
* @throws Exception
*/
public abstract SSLContext createSslContext() throws Exception;
/**
* Initialize the factory with the given connector parameters.
*
* @param parameters
* The connector parameters.
*/
public abstract void init(Series parameters);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy