java.lang.Object
java.lang.Enum<SslUtils>
org.infinispan.server.router.router.impl.hotrod.handlers.util.SslUtils
All Implemented Interfaces:
Serializable, Comparable<SslUtils>

public enum SslUtils extends Enum<SslUtils>
A simple utility class for managing SSL Contexts
Author:
Sebastian Ɓaskawiec
  • Enum Constant Details

    • INSTANCE

      public static final SslUtils INSTANCE
  • Method Details

    • values

      public static SslUtils[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SslUtils valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toNettySslContext

      public io.netty.handler.ssl.SslContext toNettySslContext(Optional<SSLContext> context)
      Creates Netty's SslContext based on optional standard JDK's SSLContext. If Optional.empty() is passed as an argument, this method will return the default SslContext.
      Parameters:
      context - Optional SSLContext.
      Returns:
      Netty's SslContext.