Package org.restlet.engine.ssl
Class SslUtils
- java.lang.Object
-
- org.restlet.engine.ssl.SslUtils
-
public class SslUtils extends java.lang.ObjectVarious HTTPS utilities.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Integer>keySizesCacheCache of SSL key sizes for various cipher suites.
-
Constructor Summary
Constructors Modifier Constructor Description privateSslUtils()Private constructor to ensure that the class acts as a true utility class i.e.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.IntegerextractKeySize(java.lang.String sslCipherSuite)Extract the SSL key size of a given cipher suite.static SslContextFactorygetSslContextFactory(RestletHelper<?> helper)Returns the SSL context factory.
-
-
-
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.
-
-