com.noelios.restlet.http
Class HttpsUtils

java.lang.Object
  extended by com.noelios.restlet.http.HttpUtils
      extended by com.noelios.restlet.http.HttpsUtils

public class HttpsUtils
extends HttpUtils

Various HTTPS utilities.

Author:
Jerome Louvel

Constructor Summary
HttpsUtils()
           
 
Method Summary
static java.lang.Integer extractKeySize(java.lang.String sslCipherSuite)
          Extract the SSL key size of a given cipher suite.
static java.lang.String[] getDisabledCipherSuites(Helper<?> helper)
          Returns the list of disabled cipher suites.
static java.lang.String[] getEnabledCipherSuites(Helper<?> helper)
          Returns the list of enabled cipher suites.
static SslContextFactory getSslContextFactory(Helper<?> helper)
          Returns the SSL context factory.
 
Methods inherited from class com.noelios.restlet.http.HttpUtils
appendComment, appendQuote, appendUriEncoded, createParameter, createVaryHeader, formatProduct, isAlpha, isAsciiChar, isCarriageReturn, isControlChar, isDigit, isDoubleQuote, isHorizontalTab, isLineFeed, isLowerCase, isSeparator, isSpace, isText, isToken, isTokenChar, isUpperCase, readHeader, writeCRLF, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpsUtils

public HttpsUtils()
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.

getDisabledCipherSuites

public static java.lang.String[] getDisabledCipherSuites(Helper<?> helper)
Returns the list of disabled cipher suites.

Parameters:
helper - The helper to use.
Returns:
The list of disabled cipher suites.

getEnabledCipherSuites

public static java.lang.String[] getEnabledCipherSuites(Helper<?> helper)
Returns the list of enabled cipher suites.

Parameters:
helper - The helper to use.
Returns:
The list of enabled cipher suites.

getSslContextFactory

public static SslContextFactory getSslContextFactory(Helper<?> 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.


Copyright © 2005-2008 Noelios Technologies.