Lines Matching refs:socket

70     public void tagSocket(Socket socket) throws SocketException {
71 SocketTagger.get().tag(socket);
74 public void untagSocket(Socket socket) throws SocketException {
75 SocketTagger.get().untag(socket);
82 public void enableTlsExtensions(SSLSocket socket, String uriHost) {
83 SET_USE_SESSION_TICKETS.invokeOptionalWithoutCheckedException(socket, true);
84 SET_HOSTNAME.invokeOptionalWithoutCheckedException(socket, uriHost);
87 public void supportTlsIntolerantServer(SSLSocket socket) {
92 String[] supportedCipherSuites = socket.getSupportedCipherSuites();
102 String[] enabledCipherSuites = socket.getEnabledCipherSuites();
107 socket.setEnabledCipherSuites(newEnabledCipherSuites);
109 socket.setEnabledProtocols(new String[]{"SSLv3"});
115 public ByteString getNpnSelectedProtocol(SSLSocket socket) {
116 boolean alpnSupported = GET_ALPN_SELECTED_PROTOCOL.isSupported(socket);
117 boolean npnSupported = GET_NPN_SELECTED_PROTOCOL.isSupported(socket);
125 (byte[]) GET_ALPN_SELECTED_PROTOCOL.invokeWithoutCheckedException(socket);
132 (byte[]) GET_NPN_SELECTED_PROTOCOL.invokeWithoutCheckedException(socket);
141 * Sets client-supported protocols on a socket to send to a server. The
142 * protocols are only sent if the socket implementation supports NPN.
144 public void setNpnProtocols(SSLSocket socket, List<Protocol> npnProtocols) {
145 boolean alpnSupported = SET_ALPN_PROTOCOLS.isSupported(socket);
146 boolean npnSupported = SET_NPN_PROTOCOLS.isSupported(socket);
154 socket, new Object[] { protocols });
158 socket, new Object[] { protocols });
172 public void connectSocket(Socket socket, InetSocketAddress address,
174 socket.connect(address, connectTimeout);