Restlet Framework 2.2.1
Android

org.restlet.engine.ssl
Class SslUtils

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

public class SslUtils
extends java.lang.Object

Various HTTPS utilities.

Author:
Jerome Louvel

Method Summary
static java.lang.Integer extractKeySize(java.lang.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 java.lang.Integer extractKeySize(java.lang.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.1
Android

Copyright © 2005-2014 Restlet.