static List<String> getSniHostNames(SSLParameters sslParameters) { List<SNIServerName> names = sslParameters.getServerNames(); if (names == null || names.isEmpty()) { return Collections.emptyList(); } List<String> strings = new ArrayList<String>(names.size()); for (SNIServerName serverName : names) { if (serverName instanceof SNIHostName) { strings.add(((SNIHostName) serverName).getAsciiName()); } else { throw new IllegalArgumentException("Only " + SNIHostName.class.getName() + " instances are supported, but found: " + serverName); } } return strings; }
static List<String> getSniHostNames(SSLParameters sslParameters) { List<SNIServerName> names = sslParameters.getServerNames(); if (names == null || names.isEmpty()) { return Collections.emptyList(); } List<String> strings = new ArrayList<String>(names.size()); for (SNIServerName serverName : names) { if (serverName instanceof SNIHostName) { strings.add(((SNIHostName) serverName).getAsciiName()); } else { throw new IllegalArgumentException("Only " + SNIHostName.class.getName() + " instances are supported, but found: " + serverName); } } return strings; }
protected void copyJdk8FinalParameters() { setServerNames(delegate.getServerNames()); setSNIMatchers(delegate.getSNIMatchers()); setUseCipherSuitesOrder(delegate.getUseCipherSuitesOrder()); } }
private SSLParameters redefine(SSLParameters original, String[] supportedCipherSuites, String[] supportedProtocols) { final SSLParameters params = new SSLParameters(); configure(params, protocolSelector.evaluate(supportedProtocols), cipherSuiteSelector.evaluate(supportedCipherSuites)); // copy all other parameters over params.setServerNames(original.getServerNames()); params.setSNIMatchers(original.getSNIMatchers()); params.setAlgorithmConstraints(original.getAlgorithmConstraints()); params.setEndpointIdentificationAlgorithm(original.getEndpointIdentificationAlgorithm()); return params; }
static List<String> getSniHostNames(SSLParameters sslParameters) { List<SNIServerName> names = sslParameters.getServerNames(); if (names == null || names.isEmpty()) { return Collections.emptyList(); } List<String> strings = new ArrayList<String>(names.size()); for (SNIServerName serverName : names) { if (serverName instanceof SNIHostName) { strings.add(((SNIHostName) serverName).getAsciiName()); } else { throw new IllegalArgumentException("Only " + SNIHostName.class.getName() + " instances are supported, but found: " + serverName); } } return strings; }
static List<String> getSniHostNames(SSLParameters sslParameters) { List<SNIServerName> names = sslParameters.getServerNames(); if (names == null || names.isEmpty()) { return Collections.emptyList(); } List<String> strings = new ArrayList<String>(names.size()); for (SNIServerName serverName : names) { if (serverName instanceof SNIHostName) { strings.add(((SNIHostName) serverName).getAsciiName()); } else { throw new IllegalArgumentException("Only " + SNIHostName.class.getName() + " instances are supported, but found: " + serverName); } } return strings; }
static List<String> getSniHostNames(SSLParameters sslParameters) { List<SNIServerName> names = sslParameters.getServerNames(); if (names == null || names.isEmpty()) { return Collections.emptyList(); } List<String> strings = new ArrayList<String>(names.size()); for (SNIServerName serverName : names) { if (serverName instanceof SNIHostName) { strings.add(((SNIHostName) serverName).getAsciiName()); } else { throw new IllegalArgumentException("Only " + SNIHostName.class.getName() + " instances are supported, but found: " + serverName); } } return strings; }
static List<String> getSniHostNames(SSLParameters sslParameters) { List<SNIServerName> names = sslParameters.getServerNames(); if (names == null || names.isEmpty()) { return Collections.emptyList(); } List<String> strings = new ArrayList<String>(names.size()); for (SNIServerName serverName : names) { if (serverName instanceof SNIHostName) { strings.add(((SNIHostName) serverName).getAsciiName()); } else { throw new IllegalArgumentException("Only " + SNIHostName.class.getName() + " instances are supported, but found: " + serverName); } } return strings; }
static List<String> getSniHostNames(SSLParameters sslParameters) { List<SNIServerName> names = sslParameters.getServerNames(); if (names == null || names.isEmpty()) { return Collections.emptyList(); } List<String> strings = new ArrayList<String>(names.size()); for (SNIServerName serverName : names) { if (serverName instanceof SNIHostName) { strings.add(((SNIHostName) serverName).getAsciiName()); } else { throw new IllegalArgumentException("Only " + SNIHostName.class.getName() + " instances are supported, but found: " + serverName); } } return strings; }
static List<String> getSniHostNames(SSLParameters sslParameters) { List<SNIServerName> names = sslParameters.getServerNames(); if (names == null || names.isEmpty()) { return Collections.emptyList(); } List<String> strings = new ArrayList<String>(names.size()); for (SNIServerName serverName : names) { if (serverName instanceof SNIHostName) { strings.add(((SNIHostName) serverName).getAsciiName()); } else { throw new IllegalArgumentException("Only " + SNIHostName.class.getName() + " instances are supported, but found: " + serverName); } } return strings; }
static List<String> getSniHostNames(SSLParameters sslParameters) { List<SNIServerName> names = sslParameters.getServerNames(); if (names == null || names.isEmpty()) { return Collections.emptyList(); } List<String> strings = new ArrayList<String>(names.size()); for (SNIServerName serverName : names) { if (serverName instanceof SNIHostName) { strings.add(((SNIHostName) serverName).getAsciiName()); } else { throw new IllegalArgumentException("Only " + SNIHostName.class.getName() + " instances are supported, but found: " + serverName); } } return strings; }
protected void copyJdk8FinalParameters() { setServerNames(delegate.getServerNames()); setSNIMatchers(delegate.getSNIMatchers()); setUseCipherSuitesOrder(delegate.getUseCipherSuitesOrder()); } }
protected void copyJdk8FinalParameters() { setServerNames(delegate.getServerNames()); setSNIMatchers(delegate.getSNIMatchers()); setUseCipherSuitesOrder(delegate.getUseCipherSuitesOrder()); } }
protected void copyJdk8FinalParameters() { setServerNames(delegate.getServerNames()); setSNIMatchers(delegate.getSNIMatchers()); setUseCipherSuitesOrder(delegate.getUseCipherSuitesOrder()); } }
static void setSSLParameters( SSLParameters params, SSLParametersImpl impl, AbstractConscryptSocket socket) { Java7PlatformUtil.setSSLParameters(params, impl); impl.setUseCipherSuitesOrder(params.getUseCipherSuitesOrder()); List<SNIServerName> serverNames = params.getServerNames(); if (serverNames != null) { for (SNIServerName serverName : serverNames) { if (serverName.getType() == SNI_HOST_NAME) { socket.setHostname(((SNIHostName) serverName).getAsciiName()); break; } } } }
static void setSSLParameters( SSLParameters params, SSLParametersImpl impl, AbstractConscryptSocket socket) { Java7PlatformUtil.setSSLParameters(params, impl); impl.setUseCipherSuitesOrder(params.getUseCipherSuitesOrder()); List<SNIServerName> serverNames = params.getServerNames(); if (serverNames != null) { for (SNIServerName serverName : serverNames) { if (serverName.getType() == SNI_HOST_NAME) { socket.setHostname(((SNIHostName) serverName).getAsciiName()); break; } } } }
static void setSSLParameters( SSLParameters params, SSLParametersImpl impl, ConscryptEngine engine) { Java7PlatformUtil.setSSLParameters(params, impl); impl.setUseCipherSuitesOrder(params.getUseCipherSuitesOrder()); List<SNIServerName> serverNames = params.getServerNames(); if (serverNames != null) { for (SNIServerName serverName : serverNames) { if (serverName.getType() == SNI_HOST_NAME) { engine.setHostname(((SNIHostName) serverName).getAsciiName()); break; } } } } static void getSSLParameters(
private SSLParameters redefine(SSLParameters original, String[] supportedCipherSuites, String[] supportedProtocols) { final SSLParameters params = new SSLParameters(); configure(params, protocolSelector.evaluate(supportedProtocols), cipherSuiteSelector.evaluate(supportedCipherSuites)); // copy all other parameters over params.setServerNames(original.getServerNames()); params.setSNIMatchers(original.getSNIMatchers()); params.setAlgorithmConstraints(original.getAlgorithmConstraints()); params.setEndpointIdentificationAlgorithm(original.getEndpointIdentificationAlgorithm()); return params; }
private SSLParameters redefine(SSLParameters original, String[] supportedCipherSuites, String[] supportedProtocols) { final SSLParameters params = new SSLParameters(); configure(params, protocolSelector.evaluate(supportedProtocols), cipherSuiteSelector.evaluate(supportedCipherSuites)); // copy all other parameters over params.setServerNames(original.getServerNames()); params.setSNIMatchers(original.getSNIMatchers()); params.setAlgorithmConstraints(original.getAlgorithmConstraints()); params.setEndpointIdentificationAlgorithm(original.getEndpointIdentificationAlgorithm()); return params; }
private SSLParameters redefine(SSLParameters original, String[] supportedCipherSuites, String[] supportedProtocols) { final SSLParameters params = new SSLParameters(); configure(params, protocolSelector.evaluate(supportedProtocols), cipherSuiteSelector.evaluate(supportedCipherSuites)); // copy all other parameters over params.setServerNames(original.getServerNames()); params.setSNIMatchers(original.getSNIMatchers()); params.setAlgorithmConstraints(original.getAlgorithmConstraints()); params.setEndpointIdentificationAlgorithm(original.getEndpointIdentificationAlgorithm()); return params; }