Class Java8SslUtils

java.lang.Object
io.netty.handler.ssl.Java8SslUtils

final class Java8SslUtils extends Object
  • Constructor Details

    • Java8SslUtils

      private Java8SslUtils()
  • Method Details

    • getSniHostNames

      static List<String> getSniHostNames(SSLParameters sslParameters)
    • setSniHostNames

      static void setSniHostNames(SSLParameters sslParameters, List<String> names)
    • isValidHostNameForSNI

      static boolean isValidHostNameForSNI(String hostname)
    • getSniHostNames

      static List getSniHostNames(List<String> names)
    • getSniHostName

      static List getSniHostName(byte[] hostname)
    • toServerName

      private static SNIServerName toServerName(byte[] encoded)
      Converts the given hostname to a SNIServerName. We convert to bytes as we do not want to do any strict validation of the SNIHostName while creating it. If the byte constructor still rejects the name we expose it as a plain SNIServerName of type host_name instead of failing.
    • getUseCipherSuitesOrder

      static boolean getUseCipherSuitesOrder(SSLParameters sslParameters)
    • setUseCipherSuitesOrder

      static void setUseCipherSuitesOrder(SSLParameters sslParameters, boolean useOrder)
    • setSNIMatchers

      static void setSNIMatchers(SSLParameters sslParameters, Collection<?> matchers)
    • checkSniHostnameMatch

      static boolean checkSniHostnameMatch(Collection<?> matchers, byte[] hostname)