/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; 87 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_defaultCiphers_noFallbackIndicator() 117 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_defaultCiphers_withFallbackIndicator() 151 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_explicitCiphers() 190 SSLSocket socket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in tls_missingRequiredCipher() 216 SSLSocket sslSocket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in allEnabledCipherSuites() 237 SSLSocket sslSocket = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in allEnabledTlsVersions() 255 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/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/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/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
D | SSLSocketVersionCompatibilityTest.java | 111 import javax.net.ssl.SSLSocket; 195 SSLSocket client = in test_SSLSocket_startHandshake() 196 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake() 197 final SSLSocket server = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_startHandshake() 235 private final SSLSocket server; 236 private SSLServerSessionIdCallable(SSLSocket server) { in SSLServerSessionIdCallable() 254 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 256 final SSLSocket server1 = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_confirmSessionReuse() 266 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 268 final SSLSocket server2 = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_confirmSessionReuse() [all …]
|
D | SSLSocketTest.java | 59 import javax.net.ssl.SSLSocket; 111 (SSLSocket) SSLSocketFactory.getDefault().createSocket()); in test_SSLSocket_defaultConfiguration() 117 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedCipherSuites_returnsCopies() 199 SSLSocket server = socketPair.server; in test_SSLSocket_getSupportedCipherSuites_connect() 200 SSLSocket client = socketPair.client; in test_SSLSocket_getSupportedCipherSuites_connect() 245 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getEnabledCipherSuites_returnsCopies() 252 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites_storesCopy() 264 SSLSocket ssl = (SSLSocket) context.getSocketFactory().createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS12() 299 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS13() 323 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedProtocols_returnsCopies() [all …]
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
D | SSLSocketVersionCompatibilityTest.java | 110 import javax.net.ssl.SSLSocket; 193 SSLSocket client = in test_SSLSocket_startHandshake() 194 (SSLSocket) c.clientContext.getSocketFactory().createSocket(c.host, c.port); in test_SSLSocket_startHandshake() 195 final SSLSocket server = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_startHandshake() 233 private final SSLSocket server; 234 private SSLServerSessionIdCallable(SSLSocket server) { in SSLServerSessionIdCallable() 252 final SSLSocket client1 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 254 final SSLSocket server1 = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_confirmSessionReuse() 264 final SSLSocket client2 = (SSLSocket) c.clientContext.getSocketFactory().createSocket( in test_SSLSocket_confirmSessionReuse() 266 final SSLSocket server2 = (SSLSocket) c.serverSocket.accept(); in test_SSLSocket_confirmSessionReuse() [all …]
|
D | SSLSocketTest.java | 58 import javax.net.ssl.SSLSocket; 107 (SSLSocket) SSLSocketFactory.getDefault().createSocket()); in test_SSLSocket_defaultConfiguration() 113 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedCipherSuites_returnsCopies() 195 SSLSocket server = socketPair.server; in test_SSLSocket_getSupportedCipherSuites_connect() 196 SSLSocket client = socketPair.client; in test_SSLSocket_getSupportedCipherSuites_connect() 241 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getEnabledCipherSuites_returnsCopies() 248 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites_storesCopy() 260 SSLSocket ssl = (SSLSocket) context.getSocketFactory().createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS12() 295 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS13() 319 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedProtocols_returnsCopies() [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/ |
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/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/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/publicapi/src/test/java/android/net/ssl/ |
D | SSLSocketsTest.java | 33 import javax.net.ssl.SSLSocket; 45 private static class BrokenSSLSocket extends SSLSocket { 83 SSLSocket s = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in testIsSupported() 98 SSLSocket s = (SSLSocket) SSLSocketFactory.getDefault().createSocket(); in testUseSessionTickets() 103 @Override public SSLSocket configureSocket(SSLSocket socket) { in testUseSessionTickets() 112 @Override public SSLSocket configureSocket(SSLSocket socket) { in testUseSessionTickets()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | Conscrypt.java | 33 import javax.net.ssl.SSLSocket; 297 public static boolean isConscrypt(SSLSocket socket) { in isConscrypt() 301 private static AbstractConscryptSocket toConscrypt(SSLSocket socket) { in toConscrypt() 317 public static void setHostname(SSLSocket socket, String hostname) { in setHostname() 326 public static String getHostname(SSLSocket socket) { in getHostname() 334 public static String getHostnameOrIP(SSLSocket socket) { in getHostnameOrIP() 344 public static void setUseSessionTickets(SSLSocket socket, boolean useSessionTickets) { in setUseSessionTickets() 358 public static void setChannelIdEnabled(SSLSocket socket, boolean enabled) { in setChannelIdEnabled() 372 public static byte[] getChannelId(SSLSocket socket) throws SSLException { in getChannelId() 390 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/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | Conscrypt.java | 34 import javax.net.ssl.SSLSocket; 307 public static boolean isConscrypt(SSLSocket socket) { in isConscrypt() 311 private static AbstractConscryptSocket toConscrypt(SSLSocket socket) { in toConscrypt() 327 public static void setHostname(SSLSocket socket, String hostname) { in setHostname() 336 public static String getHostname(SSLSocket socket) { in getHostname() 344 public static String getHostnameOrIP(SSLSocket socket) { in getHostnameOrIP() 354 public static void setUseSessionTickets(SSLSocket socket, boolean useSessionTickets) { in setUseSessionTickets() 368 public static void setChannelIdEnabled(SSLSocket socket, boolean enabled) { in setChannelIdEnabled() 382 public static byte[] getChannelId(SSLSocket socket) throws SSLException { in getChannelId() 400 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/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | ConnectionSpecSelectorTest.java | 27 import javax.net.ssl.SSLSocket; 48 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in nonRetryableIOException() 61 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in nonRetryableSSLHandshakeException() 76 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in retryableSSLHandshakeException() 95 SSLSocket socket = createSocketWithEnabledProtocols(enabledSocketTlsVersions); in someFallbacksSupported() 122 private SSLSocket createSocketWithEnabledProtocols(TlsVersion... tlsVersions) throws IOException { in createSocketWithEnabledProtocols() 123 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); in createSocketWithEnabledProtocols() 128 private static void assertEnabledProtocols(SSLSocket socket, TlsVersion... required) { in assertEnabledProtocols()
|
/external/conscrypt/publicapi/src/main/java/android/net/ssl/ |
D | SSLSockets.java | 20 import javax.net.ssl.SSLSocket; 35 public static boolean isSupportedSocket(@NonNull SSLSocket socket) { in isSupportedSocket() 39 private static void checkSupported(@NonNull SSLSocket s) { in checkSupported() 54 public static void setUseSessionTickets(@NonNull SSLSocket socket, boolean useSessionTickets) { in setUseSessionTickets()
|
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/ |
D | Platform.java | 46 import javax.net.ssl.SSLSocket; 137 public void configureTlsExtensions(SSLSocket sslSocket, String hostname, in configureTlsExtensions() 145 public void afterHandshake(SSLSocket sslSocket) { in afterHandshake() 149 public String getSelectedProtocol(SSLSocket socket) { in getSelectedProtocol() 244 return SSLSocket.class.getMethod("getApplicationProtocol"); in findPlatform() 262 Method putMethod = negoClass.getMethod("put", SSLSocket.class, providerClass); in findPlatform() 263 Method getMethod = negoClass.getMethod("get", SSLSocket.class); in findPlatform() 264 Method removeMethod = negoClass.getMethod("remove", SSLSocket.class); in findPlatform() 385 SSLSocket sslSocket, String hostname, List<Protocol> protocols) { in configureTlsExtensions() 399 @Override public String getSelectedProtocol(SSLSocket socket) { in getSelectedProtocol() [all …]
|
/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/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()
|