Class SslUtils

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

public class SslUtils extends Object
Various HTTPS utilities.
Author:
Jerome Louvel
  • Method Details

    • 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 looks 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.