private void selectProtocol() throws SSLException { try { String protocol = Conscrypt.getApplicationProtocol(getWrappedEngine()); protocolSelector.select(protocol != null ? Collections.singletonList(protocol) : Collections.<String>emptyList()); } catch (Throwable e) { throw toSSLHandshakeException(e); } } }
private void selectProtocol() throws SSLException { try { String protocol = Conscrypt.getApplicationProtocol(getWrappedEngine()); protocolSelector.select(protocol != null ? Collections.singletonList(protocol) : Collections.<String>emptyList()); } catch (Throwable e) { throw toSSLHandshakeException(e); } } }
private void selectProtocol() throws SSLException { try { String protocol = Conscrypt.getApplicationProtocol(getWrappedEngine()); protocolSelector.select(protocol != null ? Collections.singletonList(protocol) : Collections.<String>emptyList()); } catch (Throwable e) { throw toSSLHandshakeException(e); } } }
@Override public String select(List<String> protocols) throws SSLException { try { return protocolSelector.select(protocols); } catch (Throwable t) { throw toSSLHandshakeException(t); } }
@Override public String selectProtocol(List<String> protocols) { try { return protocolSelector.select(protocols); } catch (Throwable t) { PlatformDependent.throwException(t); return null; } } });
@Override public String select(List<String> protocols) throws SSLException { try { return protocolSelector.select(protocols); } catch (Throwable t) { throw toSSLHandshakeException(t); } }
@Override public String selectProtocol(List<String> protocols) { try { return protocolSelector.select(protocols); } catch (Throwable t) { PlatformDependent.throwException(t); return null; } } });
private void selectProtocol() throws SSLException { try { String protocol = Conscrypt.getApplicationProtocol(getWrappedEngine()); protocolSelector.select(protocol != null ? Collections.singletonList(protocol) : Collections.<String>emptyList()); } catch (Throwable e) { throw toSSLHandshakeException(e); } } }
private void selectProtocol() throws SSLException { try { String protocol = Conscrypt.getApplicationProtocol(getWrappedEngine()); protocolSelector.select(protocol != null ? Collections.singletonList(protocol) : Collections.<String>emptyList()); } catch (Throwable e) { throw toSSLHandshakeException(e); } } }
private void selectProtocol() throws SSLException { try { String protocol = Conscrypt.getApplicationProtocol(getWrappedEngine()); protocolSelector.select(protocol != null ? Collections.singletonList(protocol) : Collections.<String>emptyList()); } catch (Throwable e) { throw toSSLHandshakeException(e); } } }
@Override public String select(List<String> protocols) throws SSLException { try { return protocolSelector.select(protocols); } catch (Throwable t) { throw toSSLHandshakeException(t); } }
@Override public String apply(SSLEngine sslEngine, List<String> strings) { assert !called; called = true; try { String selected = selector.select(strings); return selected == null ? StringUtil.EMPTY_STRING : selected; } catch (Exception cause) { // Returning null means we want to fail the handshake. // // See http://download.java.net/java/jdk9/docs/api/javax/net/ssl/ // SSLEngine.html#setHandshakeApplicationProtocolSelector-java.util.function.BiFunction- return null; } }
@Override public String selectProtocol(List<String> protocols) { try { return protocolSelector.select(protocols); } catch (Throwable t) { PlatformDependent.throwException(t); return null; } } });
@Override public String select(List<String> protocols) throws SSLException { try { return protocolSelector.select(protocols); } catch (Throwable t) { throw toSSLHandshakeException(t); } }
@Override public String apply(SSLEngine sslEngine, List<String> strings) { assert !called; called = true; try { String selected = selector.select(strings); return selected == null ? StringUtil.EMPTY_STRING : selected; } catch (Exception cause) { // Returning null means we want to fail the handshake. // // See http://download.java.net/java/jdk9/docs/api/javax/net/ssl/ // SSLEngine.html#setHandshakeApplicationProtocolSelector-java.util.function.BiFunction- return null; } }
@Override public String selectProtocol(List<String> protocols) { try { return protocolSelector.select(protocols); } catch (Throwable t) { PlatformDependent.throwException(t); return null; } } });
@Override public String select(List<String> protocols) throws SSLException { try { return protocolSelector.select(protocols); } catch (Throwable t) { throw toSSLHandshakeException(t); } }
@Override public String apply(SSLEngine sslEngine, List<String> strings) { assert !called; called = true; try { String selected = selector.select(strings); return selected == null ? StringUtil.EMPTY_STRING : selected; } catch (Exception cause) { // Returning null means we want to fail the handshake. // // See http://download.java.net/java/jdk9/docs/api/javax/net/ssl/ // SSLEngine.html#setHandshakeApplicationProtocolSelector-java.util.function.BiFunction- return null; } }
@Override public String selectProtocol(List<String> protocols) { try { return protocolSelector.select(protocols); } catch (Throwable t) { PlatformDependent.throwException(t); return null; } } });
@Override public String select(List<String> protocols) throws SSLException { try { return protocolSelector.select(protocols); } catch (Throwable t) { throw toSSLHandshakeException(t); } }