/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SSLParameters.java | 69 private String[] protocols; field in SSLParameters 114 public SSLParameters(String[] cipherSuites, String[] protocols) { in SSLParameters() argument 116 setProtocols(protocols); in SSLParameters() 151 return clone(protocols); in getProtocols() 159 public void setProtocols(String[] protocols) { in setProtocols() argument 160 this.protocols = clone(protocols); in setProtocols()
|
D | SSLServerSocket.java | 288 public abstract void setEnabledProtocols(String protocols[]); in setEnabledProtocols() argument
|
D | SSLSocket.java | 1080 public abstract void setEnabledProtocols(String protocols[]); in setEnabledProtocols() argument
|
D | SSLEngine.java | 1589 public abstract void setEnabledProtocols(String protocols[]); in setEnabledProtocols() argument
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLParametersTest.java | 52 String[] protocols = new String[] { "baz", null, "qux" }; in test_SSLParameters_cpherSuitesProtocolsConstructor() local 53 SSLParameters p = new SSLParameters(cipherSuites, protocols); in test_SSLParameters_cpherSuitesProtocolsConstructor() 57 assertNotSame(protocols, p.getProtocols()); in test_SSLParameters_cpherSuitesProtocolsConstructor() 59 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols())); in test_SSLParameters_cpherSuitesProtocolsConstructor() 84 String[] protocols = new String[] { "fnord" }; in test_SSLParameters_Protocols() local 85 String[] copy = protocols.clone(); in test_SSLParameters_Protocols() 88 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols())); in test_SSLParameters_Protocols()
|
D | SSLServerSocketTest.java | 52 String[] protocols = new String[] {socket.getSupportedProtocols()[0]}; in testSetEnabledProtocolsAffectsGetter() local 53 socket.setEnabledProtocols(protocols); in testSetEnabledProtocolsAffectsGetter() 54 assertEquals(Arrays.asList(protocols), Arrays.asList(socket.getEnabledProtocols())); in testSetEnabledProtocolsAffectsGetter()
|
D | SSLEngineTest.java | 427 String[] protocols = new String[] { protocol }; in test_SSLEngine_setEnabledProtocols() local 428 e.setEnabledProtocols(protocols); in test_SSLEngine_setEnabledProtocols() 429 assertEquals(Arrays.deepToString(protocols), in test_SSLEngine_setEnabledProtocols() 742 String[] protocols = p.getProtocols(); 743 assertNotSame(protocols, e.getEnabledProtocols()); 744 assertEquals(Arrays.asList(protocols), Arrays.asList(e.getEnabledProtocols()));
|
D | SSLSocketTest.java | 349 String[] protocols = new String[] { protocol }; in test_SSLSocket_setEnabledProtocols() local 350 ssl.setEnabledProtocols(protocols); in test_SSLSocket_setEnabledProtocols() 351 assertEquals(Arrays.deepToString(protocols), in test_SSLSocket_setEnabledProtocols() 1393 String[] protocols = p.getProtocols(); in test_SSLSocket_getSSLParameters() local 1394 assertNotSame(protocols, ssl.getEnabledProtocols()); in test_SSLSocket_getSSLParameters() 1395 assertEquals(Arrays.asList(protocols), Arrays.asList(ssl.getEnabledProtocols())); in test_SSLSocket_getSSLParameters()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 1140 private static Set<String> assertValidProtocols(Set<String> expected, String[] protocols) { in assertValidProtocols() argument 1141 assertNotNull(protocols); in assertValidProtocols() 1142 assertTrue(protocols.length != 0); in assertValidProtocols() 1147 for (String protocol : protocols) { in assertValidProtocols() 1161 private static void assertSupportedProtocols(Set<String> expected, String[] protocols) { in assertSupportedProtocols() argument 1162 Set<String> remainingProtocols = assertValidProtocols(expected, protocols); in assertSupportedProtocols() 1164 assertEquals(expected.size(), protocols.length); in assertSupportedProtocols() 1170 public static void assertSupportedProtocols(String[] protocols) { in assertSupportedProtocols() argument 1171 assertSupportedProtocols(SSL_SOCKET_PROTOCOLS, protocols); in assertSupportedProtocols() 1215 public static void assertSSLContextEnabledProtocols(String version, String[] protocols) { in assertSSLContextEnabledProtocols() argument [all …]
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | MySSLContextSpi.java | 141 public void setEnabledProtocols(String[] protocols) { } in setEnabledProtocols() argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MySSLContextSpi.java | 143 public void setEnabledProtocols(String[] protocols) { } in setEnabledProtocols() argument
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URLConnectionTest.java | 3243 private final String[] protocols; 3245 private LimitedProtocolsSocketFactory(SSLSocketFactory delegate, String... protocols) { 3247 this.protocols = protocols; 3254 socket.setEnabledProtocols(protocols); 3261 socket.setEnabledProtocols(protocols); 3269 socket.setEnabledProtocols(protocols); 3277 socket.setEnabledProtocols(protocols); 3284 socket.setEnabledProtocols(protocols); 3293 socket.setEnabledProtocols(protocols); 3394 @Override public void setEnabledProtocols(String[] protocols) { [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLServerSocketTest.java | 81 public void setEnabledProtocols(String[] protocols) { in setEnabledProtocols() argument
|