Restlet Framework 2.2.3
OSGi Environments

org.restlet.engine.ssl
Class SslUtils

java.lang.Object
  extended by org.restlet.engine.ssl.SslUtils

public class SslUtils
extends Object

Various HTTPS utilities.

Author:
Jerome Louvel

Method Summary
static Integer extractKeySize(String sslCipherSuite)
          Extract the SSL key size of a given cipher suite.
static SslContextFactory getSslContextFactory(RestletHelper<?> helper)
          Returns the SSL context factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extractKeySize

public static Integer extractKeySize(String sslCipherSuite)
Extract the SSL key size of a given cipher suite.

Parameters:
sslCipherSuite - The SSL cipher suite.
Returns:
The SSL key size.

getSslContextFactory

public static SslContextFactory getSslContextFactory(RestletHelper<?> helper)
Returns the SSL context factory. It first look for a "sslContextFactory" attribute (instance), then for a "sslContextFactory" parameter (class name to instantiate).

Parameters:
helper - The helper to use.
Returns:
The SSL context factory.

Restlet Framework 2.2.3
OSGi Environments

Copyright © 2005-2014 Restlet.