/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | DelegatingSSLSocketFactory.java | 23 import javax.net.ssl.SSLSocket; 38 @Override public SSLSocket createSocket() throws IOException { in createSocket() 39 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(); in createSocket() 43 @Override public SSLSocket createSocket(String host, int port) throws IOException { in createSocket() 44 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port); in createSocket() 48 @Override public SSLSocket createSocket( in createSocket() 50 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port, localAddress, localPort); in createSocket() 54 @Override public SSLSocket createSocket(InetAddress host, int port) throws IOException { in createSocket() 55 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port); in createSocket() 59 @Override public SSLSocket createSocket( in createSocket() [all …]
|
D | ConnectionSpecTest.java | 22 import javax.net.ssl.SSLSocket; 89 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_defaultCiphers_noFallbackIndicator() 124 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_defaultCiphers_withFallbackIndicator() 162 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_explicitCiphers() 202 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_missingRequiredCipher() 229 SSLSocket sslSocket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in allEnabledCipherSuites() 250 SSLSocket sslSocket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in allEnabledTlsVersions() 270 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_missingTlsVersion()
|
D | FallbackTestClientSocketFactory.java | 23 import javax.net.ssl.SSLSocket; 43 @Override protected SSLSocket configureSocket(SSLSocket sslSocket) throws IOException { in configureSocket() 49 public TlsFallbackScsvDisabledSSLSocket(SSLSocket socket) { in TlsFallbackScsvDisabledSSLSocket()
|
/external/conscrypt/repackaged/testing/src/main/java/tests/net/ |
D | DelegatingSSLSocketFactory.java | 22 import javax.net.ssl.SSLSocket; 39 protected SSLSocket configureSocket(SSLSocket socket) throws IOException { in configureSocket() 52 SSLSocket socket = (SSLSocket) mDelegate.createSocket(); in createSocket() 58 SSLSocket socket = (SSLSocket) mDelegate.createSocket(s, host, port, autoClose); in createSocket() 63 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket() 69 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort); in createSocket() 74 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket() 80 … SSLSocket socket = (SSLSocket) mDelegate.createSocket(address, port, localAddress, localPort); in createSocket()
|
/external/conscrypt/testing/src/main/java/tests/net/ |
D | DelegatingSSLSocketFactory.java | 21 import javax.net.ssl.SSLSocket; 37 protected SSLSocket configureSocket(SSLSocket socket) throws IOException { in configureSocket() 50 SSLSocket socket = (SSLSocket) mDelegate.createSocket(); in createSocket() 56 SSLSocket socket = (SSLSocket) mDelegate.createSocket(s, host, port, autoClose); in createSocket() 61 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket() 67 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort); in createSocket() 72 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); in createSocket() 78 … SSLSocket socket = (SSLSocket) mDelegate.createSocket(address, port, localAddress, localPort); in createSocket()
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
D | SSLSocketVersionCompatibilityTest.java | 103 import javax.net.ssl.SSLSocket; 170 SSLSocket client = in test_SSLSocket_startHandshake() 171 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake() 172 final SSLSocket server = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_startHandshake() 210 private final SSLSocket server; 211 private SSLServerSessionIdCallable(SSLSocket server) { in SSLServerSessionIdCallable() 229 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 231 final SSLSocket server1 = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_confirmSessionReuse() 241 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 243 final SSLSocket server2 = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_confirmSessionReuse() [all …]
|
D | SSLSocketTest.java | 72 import javax.net.ssl.SSLSocket; 101 (SSLSocket) SSLSocketFactory.getDefault().createSocket()); in test_SSLSocket_defaultConfiguration() 107 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_getSupportedCipherSuites_returnsCopies() 190 SSLSocket server = socketPair.server; in test_SSLSocket_getSupportedCipherSuites_connect() 191 SSLSocket client = socketPair.client; in test_SSLSocket_getSupportedCipherSuites_connect() 259 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_getEnabledCipherSuites_returnsCopies() 267 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_setEnabledCipherSuites_storesCopy() 280 try (SSLSocket ssl = (SSLSocket) context.getSocketFactory().createSocket()) { in test_SSLSocket_setEnabledCipherSuites_TLS12() 302 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_setEnabledCipherSuites_TLS13() 326 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_getSupportedProtocols_returnsCopies() [all …]
|
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/ |
D | SSLSocketVersionCompatibilityTest.java | 89 import javax.net.ssl.SSLSocket; 168 SSLSocket client = in test_SSLSocket_startHandshake() 169 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake() 170 final SSLSocket server = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_startHandshake() 208 private final SSLSocket server; 209 private SSLServerSessionIdCallable(SSLSocket server) { in SSLServerSessionIdCallable() 227 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 229 final SSLSocket server1 = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_confirmSessionReuse() 239 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 241 final SSLSocket server2 = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_confirmSessionReuse() [all …]
|
D | SSLSocketTest.java | 60 import javax.net.ssl.SSLSocket; 97 (SSLSocket) SSLSocketFactory.getDefault().createSocket()); in test_SSLSocket_defaultConfiguration() 103 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_getSupportedCipherSuites_returnsCopies() 186 SSLSocket server = socketPair.server; in test_SSLSocket_getSupportedCipherSuites_connect() 187 SSLSocket client = socketPair.client; in test_SSLSocket_getSupportedCipherSuites_connect() 255 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_getEnabledCipherSuites_returnsCopies() 263 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_setEnabledCipherSuites_storesCopy() 276 try (SSLSocket ssl = (SSLSocket) context.getSocketFactory().createSocket()) { in test_SSLSocket_setEnabledCipherSuites_TLS12() 300 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_setEnabledCipherSuites_TLS13() 325 try (SSLSocket ssl = (SSLSocket) sf.createSocket()) { in test_SSLSocket_getSupportedProtocols_returnsCopies() [all …]
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/ |
D | ChannelType.java | 32 import javax.net.ssl.SSLSocket; 43 SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket() 54 SSLSocket accept(ServerSocket socket, SSLSocketFactory unused) throws IOException { in accept() 60 SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket() 75 SSLSocket accept(ServerSocket serverSocket, SSLSocketFactory factory) throws IOException { in accept() 86 SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket() 100 SSLSocket accept(ServerSocket serverSocket, SSLSocketFactory factory) throws IOException { in accept() 116 abstract SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket() 119 abstract SSLSocket accept(ServerSocket socket, SSLSocketFactory factory) throws IOException; in accept() 121 private static SSLSocket clientMode(Socket socket) { in clientMode() [all …]
|
/external/conscrypt/testing/src/main/java/org/conscrypt/ |
D | ChannelType.java | 31 import javax.net.ssl.SSLSocket; 41 SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket() 52 SSLSocket accept(ServerSocket socket, SSLSocketFactory unused) throws IOException { in accept() 58 SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket() 73 SSLSocket accept(ServerSocket serverSocket, SSLSocketFactory factory) throws IOException { in accept() 84 SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket() 98 SSLSocket accept(ServerSocket serverSocket, SSLSocketFactory factory) throws IOException { in accept() 114 abstract SSLSocket newClientSocket(SSLSocketFactory factory, InetAddress address, int port) in newClientSocket() 117 abstract SSLSocket accept(ServerSocket socket, SSLSocketFactory factory) throws IOException; in accept() 119 private static SSLSocket clientMode(Socket socket) { in clientMode() [all …]
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/ |
D | TestSSLSocketPair.java | 27 import javax.net.ssl.SSLSocket; 38 public final SSLSocket server; 39 public final SSLSocket client; 40 private TestSSLSocketPair(TestSSLContext c, SSLSocket server, SSLSocket client) { in TestSSLSocketPair() 55 public SSLSocket[] sockets() { in sockets() 56 return new SSLSocket[] {server, client}; in sockets() 153 SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in create() 155 SSLSocket server = (SSLSocket) context.serverSocket.accept(); in create()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
D | TestSSLSocketPair.java | 26 import javax.net.ssl.SSLSocket; 36 public final SSLSocket server; 37 public final SSLSocket client; 38 private TestSSLSocketPair(TestSSLContext c, SSLSocket server, SSLSocket client) { in TestSSLSocketPair() 53 public SSLSocket[] sockets() { in sockets() 54 return new SSLSocket[] {server, client}; in sockets() 151 SSLSocket client = (SSLSocket) context.clientContext.getSocketFactory().createSocket( in create() 153 SSLSocket server = (SSLSocket) context.serverSocket.accept(); in create()
|
/external/conscrypt/publicapi/src/test/java/android/net/ssl/ |
D | SSLSocketsTest.java | 35 import javax.net.ssl.SSLSocket; 47 private static class BrokenSSLSocket extends SSLSocket { 85 SSLSocket s = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in testIsSupported() 99 SSLSocket s = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in setUseSessionTickets_ValidSocket() 104 @Override public SSLSocket configureSocket(SSLSocket socket) { in setUseSessionTickets_ValidSocket() 113 @Override public SSLSocket configureSocket(SSLSocket socket) { in setUseSessionTickets_ValidSocket()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | Conscrypt.java | 38 import javax.net.ssl.SSLSocket; 336 public static boolean isConscrypt(SSLSocket socket) { in isConscrypt() 340 private static AbstractConscryptSocket toConscrypt(SSLSocket socket) { in toConscrypt() 356 public static void setHostname(SSLSocket socket, String hostname) { in setHostname() 365 public static String getHostname(SSLSocket socket) { in getHostname() 373 public static String getHostnameOrIP(SSLSocket socket) { in getHostnameOrIP() 383 public static void setUseSessionTickets(SSLSocket socket, boolean useSessionTickets) { in setUseSessionTickets() 397 public static void setChannelIdEnabled(SSLSocket socket, boolean enabled) { in setChannelIdEnabled() 411 public static byte[] getChannelId(SSLSocket socket) throws SSLException { in getChannelId() 429 public static void setChannelIdPrivateKey(SSLSocket socket, PrivateKey privateKey) { in setChannelIdPrivateKey() [all …]
|
D | Java8FileDescriptorSocket.java | 26 import javax.net.ssl.SSLSocket; 34 private BiFunction<SSLSocket, List<String>, String> selector; 68 final BiFunction<SSLSocket, List<String>, String> selector) { in setHandshakeApplicationProtocolSelector() argument 75 public BiFunction<SSLSocket, List<String>, String> getHandshakeApplicationProtocolSelector() { in getHandshakeApplicationProtocolSelector() 80 final BiFunction<SSLSocket, List<String>, String> selector) { in toApplicationProtocolSelector() argument 88 public String selectApplicationProtocol(SSLSocket socket, List<String> protocols) { in toApplicationProtocolSelector()
|
D | Java8EngineSocket.java | 26 import javax.net.ssl.SSLSocket; 34 private BiFunction<SSLSocket, List<String>, String> selector; 68 final BiFunction<SSLSocket, List<String>, String> selector) { in setHandshakeApplicationProtocolSelector() argument 75 public BiFunction<SSLSocket, List<String>, String> getHandshakeApplicationProtocolSelector() { in getHandshakeApplicationProtocolSelector() 80 final BiFunction<SSLSocket, List<String>, String> selector) { in toApplicationProtocolSelector() argument 88 public String selectApplicationProtocol(SSLSocket socket, List<String> protocols) { in toApplicationProtocolSelector()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | Conscrypt.java | 36 import javax.net.ssl.SSLSocket; 326 public static boolean isConscrypt(SSLSocket socket) { in isConscrypt() 330 private static AbstractConscryptSocket toConscrypt(SSLSocket socket) { in toConscrypt() 346 public static void setHostname(SSLSocket socket, String hostname) { in setHostname() 355 public static String getHostname(SSLSocket socket) { in getHostname() 363 public static String getHostnameOrIP(SSLSocket socket) { in getHostnameOrIP() 373 public static void setUseSessionTickets(SSLSocket socket, boolean useSessionTickets) { in setUseSessionTickets() 387 public static void setChannelIdEnabled(SSLSocket socket, boolean enabled) { in setChannelIdEnabled() 401 public static byte[] getChannelId(SSLSocket socket) throws SSLException { in getChannelId() 419 public static void setChannelIdPrivateKey(SSLSocket socket, PrivateKey privateKey) { in setChannelIdPrivateKey() [all …]
|
D | Java8EngineSocket.java | 25 import javax.net.ssl.SSLSocket; 33 private BiFunction<SSLSocket, List<String>, String> selector; 67 final BiFunction<SSLSocket, List<String>, String> selector) { in setHandshakeApplicationProtocolSelector() argument 74 public BiFunction<SSLSocket, List<String>, String> getHandshakeApplicationProtocolSelector() { in getHandshakeApplicationProtocolSelector() 79 final BiFunction<SSLSocket, List<String>, String> selector) { in toApplicationProtocolSelector() argument 87 public String selectApplicationProtocol(SSLSocket socket, List<String> protocols) { in toApplicationProtocolSelector()
|
D | Java8FileDescriptorSocket.java | 25 import javax.net.ssl.SSLSocket; 33 private BiFunction<SSLSocket, List<String>, String> selector; 67 final BiFunction<SSLSocket, List<String>, String> selector) { in setHandshakeApplicationProtocolSelector() argument 74 public BiFunction<SSLSocket, List<String>, String> getHandshakeApplicationProtocolSelector() { in getHandshakeApplicationProtocolSelector() 79 final BiFunction<SSLSocket, List<String>, String> selector) { in toApplicationProtocolSelector() argument 87 public String selectApplicationProtocol(SSLSocket socket, List<String> protocols) { in toApplicationProtocolSelector()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | ConnectionSpecSelectorTest.java | 27 import javax.net.ssl.SSLSocket; 61 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_3, TlsVersion.TLS_1_2); in nonRetryableIOException() 75 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_3, TlsVersion.TLS_1_2); in nonRetryableSSLHandshakeException() 91 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_3, TlsVersion.TLS_1_2); in retryableSSLHandshakeException() 112 SSLSocket socket = createSocketWithEnabledProtocols(enabledSocketTlsVersions); in someFallbacksSupported() 141 private SSLSocket createSocketWithEnabledProtocols(TlsVersion... tlsVersions) throws IOException { in createSocketWithEnabledProtocols() 142 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in createSocketWithEnabledProtocols() 147 private static void assertEnabledProtocols(SSLSocket socket, TlsVersion... required) { in assertEnabledProtocols()
|
/external/conscrypt/publicapi/src/main/java/android/net/ssl/ |
D | SSLSockets.java | 21 import javax.net.ssl.SSLSocket; 37 public static boolean isSupportedSocket(@NonNull SSLSocket socket) { in isSupportedSocket() 41 private static void checkSupported(@NonNull SSLSocket s) { in checkSupported() 56 public static void setUseSessionTickets(@NonNull SSLSocket socket, boolean useSessionTickets) { in setUseSessionTickets() 84 public static byte[] exportKeyingMaterial(@NonNull SSLSocket socket, @NonNull String label, in exportKeyingMaterial()
|
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/ |
D | OkHttpProtocolNegotiator.java | 33 import javax.net.ssl.SSLSocket; 86 SSLSocket sslSocket, String hostname, @Nullable List<Protocol> protocols) throws IOException { in negotiate() 106 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { in configureTlsExtensions() 111 public String getSelectedProtocol(SSLSocket socket) { in getSelectedProtocol() 141 public String negotiate(SSLSocket sslSocket, String hostname, List<Protocol> protocols) in negotiate() 158 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { in configureTlsExtensions() 179 public String getSelectedProtocol(SSLSocket socket) { in getSelectedProtocol()
|
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/ |
D | Platform.java | 46 import javax.net.ssl.SSLSocket; 138 public void configureTlsExtensions(SSLSocket sslSocket, String hostname, in configureTlsExtensions() 146 public void afterHandshake(SSLSocket sslSocket) { in afterHandshake() 150 public String getSelectedProtocol(SSLSocket socket) { in getSelectedProtocol() 246 return SSLSocket.class.getMethod("getApplicationProtocol"); in findPlatform() 264 Method putMethod = negoClass.getMethod("put", SSLSocket.class, providerClass); in findPlatform() 265 Method getMethod = negoClass.getMethod("get", SSLSocket.class); in findPlatform() 266 Method removeMethod = negoClass.getMethod("remove", SSLSocket.class); in findPlatform() 387 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { in configureTlsExtensions() 401 @Override public String getSelectedProtocol(SSLSocket socket) { in getSelectedProtocol() [all …]
|
/external/nist-sip/java/gov/nist/core/net/ |
D | DefaultNetworkLayer.java | 38 import javax.net.ssl.SSLSocket; 105 public SSLSocket createSSLSocket(InetAddress address, int port) in createSSLSocket() 107 return (SSLSocket) sslSocketFactory.createSocket(address, port); in createSSLSocket() 111 public SSLSocket createSSLSocket(InetAddress address, int port, in createSSLSocket() 113 return (SSLSocket) sslSocketFactory.createSocket(address, port, in createSSLSocket()
|