Class Java8SslUtils
java.lang.Object
io.netty.handler.ssl.Java8SslUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static booleancheckSniHostnameMatch(Collection<?> matchers, byte[] hostname) (package private) static ListgetSniHostName(byte[] hostname) (package private) static ListgetSniHostNames(List<String> names) getSniHostNames(SSLParameters sslParameters) (package private) static booleangetUseCipherSuitesOrder(SSLParameters sslParameters) (package private) static booleanisValidHostNameForSNI(String hostname) (package private) static voidsetSniHostNames(SSLParameters sslParameters, List<String> names) (package private) static voidsetSNIMatchers(SSLParameters sslParameters, Collection<?> matchers) (package private) static voidsetUseCipherSuitesOrder(SSLParameters sslParameters, boolean useOrder) private static SNIServerNametoServerName(byte[] encoded) Converts the given hostname to aSNIServerName.
-
Constructor Details
-
Java8SslUtils
private Java8SslUtils()
-
-
Method Details
-
getSniHostNames
-
setSniHostNames
-
isValidHostNameForSNI
-
getSniHostNames
-
getSniHostName
-
toServerName
Converts the given hostname to aSNIServerName. We convert to bytes as we do not want to do any strict validation of theSNIHostNamewhile creating it. If the byte constructor still rejects the name we expose it as a plainSNIServerNameof type host_name instead of failing. -
getUseCipherSuitesOrder
-
setUseCipherSuitesOrder
-
setSNIMatchers
-
checkSniHostnameMatch
-