public Builder addMatch(String name, SSLContext context) { if (name.contains("*")) { wildcards.put(SNIHostName.createSNIMatcher(name), context); } else { exacts.put(SNIHostName.createSNIMatcher(name), context); } return this; } }
public Builder addMatch(String name, SSLContext context) { if (name.contains("*")) { wildcards.put(SNIHostName.createSNIMatcher(name), context); } else { exacts.put(SNIHostName.createSNIMatcher(name), context); } return this; } }
public Builder addMatch(String name, SSLContext context) { if (name.contains("*")) { wildcards.put(SNIHostName.createSNIMatcher(name), context); } else { exacts.put(SNIHostName.createSNIMatcher(name), context); } return this; } }
public Builder addMatch(String name, SSLContext context) { if (name.contains("*")) { wildcards.put(SNIHostName.createSNIMatcher(name), context); } else { exacts.put(SNIHostName.createSNIMatcher(name), context); } return this; } }
public Builder addMatch(String name, SSLContext context) { if (name.contains("*")) { wildcards.put(SNIHostName.createSNIMatcher(name), context); } else { exacts.put(SNIHostName.createSNIMatcher(name), context); } return this; } }
public Builder addMatch(String name, SSLContext context) { if (name.contains("*")) { wildcards.put(SNIHostName.createSNIMatcher(name), context); } else { exacts.put(SNIHostName.createSNIMatcher(name), context); } return this; } }
tlsParameters.setNeedClientAuth(true); tlsParameters.setSNIMatchers(singleton(createSNIMatcher(tlsHostname))); if (applicationProtocols != null && applicationProtocols.length > 0) { setApplicationProtocols(tlsParameters, applicationProtocols);
SNIMatcher matcher = SNIHostName.createSNIMatcher(""); Collection<SNIMatcher> matchers = new ArrayList<>(1); matchers.add(matcher);
sslParameters.setSNIMatchers(Arrays.asList(SNIHostName.createSNIMatcher(sniHost))); engine.setSSLParameters(sslParameters);