Class HostUtils

java.lang.Object
nl.altindag.laleler.HostUtils

public final class HostUtils extends Object
  • Field Details

  • Constructor Details

    • HostUtils

      private HostUtils()
  • Method Details

    • extractHostAndPort

      public static Map.Entry<String,Integer> extractHostAndPort(Socket socket)
    • extractHostAndPort

      public static Map.Entry<String,Integer> extractHostAndPort(SSLEngine sslEngine)
    • extractHostsFromSAN

      public static List<String> extractHostsFromSAN(List<X509Certificate> certificates)
      Extracts the DNS Names from the Subject Alternative Name extension of the provided certificates. And appends "https://" prefix to each DNS name.