/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | SSLParameters.java | 20 * SSL handshake parameters that include protocols, cipher suites, and 27 private String[] protocols; field in class:SSLParameters 34 * protocols are initialized to null and client authentication 53 * cipher suites and protocols arrays to be provided. Other values 58 * @param protocols An array of protocol names that is cloned for 62 String[] protocols) { 64 setProtocols(protocols); 88 * Returns a copy of the protocols, or null if none have been 92 if (protocols == null) { 95 return protocols 61 SSLParameters(String[] cipherSuites, String[] protocols) argument 101 setProtocols(String[] protocols) argument [all...] |
H A D | SSLContextSpi.java | 113 * protocols, and client authentication. 126 * supported cipher suites and protocols. 142 String[] protocols; 145 protocols = s.getSupportedProtocols(); 148 protocols = s.getEnabledProtocols(); 151 p.setProtocols(protocols);
|
H A D | SSLSocket.java | 26 * The extension of {@code Socket} providing secure protocols like SSL (Secure 869 * Returns the names of the supported protocols. 874 * Returns the names of the enabled protocols. 879 * Sets the names of the protocols to be enabled. Only 880 * protocols returned by {@link #getSupportedProtocols()} are allowed. 882 * @param protocols 883 * the names of the to be enabled protocols. 885 * if one of the protocols is not supported. 887 public abstract void setEnabledProtocols(String[] protocols); argument 1000 * cipher suites, protocols, an [all...] |
H A D | SSLEngine.java | 24 * protocols. It includes the setup, handshake, and encrypt/decrypt 799 * protocols can be enables using {@link #setEnabledProtocols(String[])}. 853 * instance. Only protocols listed by {@code getSupportedProtocols()} are 856 * @param protocols 860 * {@code protocols} is {@code null}. 862 public abstract void setEnabledProtocols(String[] protocols); argument 1090 * cipher suites, protocols, and client authentication settings. 1107 * sets the enabled protocols. If the parameters specify the want 1117 String[] protocols = p.getProtocols(); 1118 if (protocols ! [all...] |
H A D | SSLServerSocket.java | 26 * based on protocols like SSL, TLS, or others. 122 * Returns the names of the supported protocols. 124 * @return the names of the supported protocols. 129 * Returns the names of the enabled protocols to be used for new 132 * @return the names of the enabled protocols to be used for new 138 * Sets the names of the protocols to be enabled for new connections. Only 139 * protocols returned by {@link #getSupportedProtocols()} are allowed. 141 * @param protocols 142 * the names of the to be enabled protocols. 144 * if one of the protocols i 146 setEnabledProtocols(String[] protocols) argument [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLParametersTest.java | 46 String[] protocols = new String[] { "baz", null, "qux" }; 47 SSLParameters p = new SSLParameters(cipherSuites, protocols); 51 assertNotSame(protocols, p.getProtocols()); 53 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols())); 78 String[] protocols = new String[] { "fnord" }; 79 String[] copy = protocols.clone(); 82 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols()));
|
H A D | SSLServerSocketTest.java | 52 String[] protocols = new String[] {socket.getSupportedProtocols()[0]}; 53 socket.setEnabledProtocols(protocols); 54 assertEquals(Arrays.asList(protocols), Arrays.asList(socket.getEnabledProtocols()));
|
H A D | SSLEngineTest.java | 382 String[] protocols = new String[] { protocol }; 383 e.setEnabledProtocols(protocols); 384 assertEquals(Arrays.deepToString(protocols), 643 String[] protocols = p.getProtocols(); 644 assertNotSame(protocols, e.getEnabledProtocols()); 645 assertEquals(Arrays.asList(protocols), Arrays.asList(e.getEnabledProtocols()));
|
H A D | SSLSocketTest.java | 296 String[] protocols = new String[] { protocol }; 297 ssl.setEnabledProtocols(protocols); 298 assertEquals(Arrays.deepToString(protocols), 957 String[] protocols = p.getProtocols(); 958 assertNotSame(protocols, ssl.getEnabledProtocols()); 959 assertEquals(Arrays.asList(protocols), Arrays.asList(ssl.getEnabledProtocols()));
|
/libcore/support/src/test/java/libcore/java/security/ |
H A D | StandardNames.java | 42 * This class defines expected string names for protocols, key types, 975 * Asserts that the protocols array is non-null and that it all of 976 * its contents are protocols known to this implementation. As a 977 * convenience, returns any unenabled protocols in a test for 978 * those that want to verify separately that all protocols were 981 public static Set<String> assertValidProtocols(Set<String> expected, String[] protocols) { argument 982 assertNotNull(protocols); 983 assertTrue(protocols.length != 0); 985 // Make sure all protocols names are expected 988 for (String protocol : protocols) { 1002 assertSupportedProtocols(Set<String> expected, String[] protocols) argument 1012 assertValidProtocols(String[] protocols) argument 1019 assertSupportedProtocols(String[] protocols) argument 1027 assertDefaultProtocolsClient(String[] protocols) argument 1036 assertDefaultProtocolsServer(String[] protocols) argument 1045 assertSSLEngineDefaultProtocols(String[] protocols) argument [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MySSLContextSpi.java | 143 public void setEnabledProtocols(String[] protocols) { } argument
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | MySSLContextSpi.java | 141 public void setEnabledProtocols(String[] protocols) { } argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | SSLServerSocketTest.java | 82 public void setEnabledProtocols(String[] protocols) { argument 243 assertTrue("no supported protocols available.", res.length > 0); 249 * javax.net.ssl.SSLServerSocket#setEnabledProtocols(String[] protocols) 265 assertTrue("No supported protocols", count > 0); 269 assertTrue("no enabled protocols.", res.length == count);
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 2534 * An SSLSocketFactory that delegates calls but limits the enabled protocols for any created 2539 private final String[] protocols; field in class:URLConnectionTest.LimitedProtocolsSocketFactory 2541 private LimitedProtocolsSocketFactory(SSLSocketFactory delegate, String... protocols) { argument 2543 this.protocols = protocols; 2550 socket.setEnabledProtocols(protocols); 2557 socket.setEnabledProtocols(protocols); 2564 socket.setEnabledProtocols(protocols); 2572 socket.setEnabledProtocols(protocols); 2579 socket.setEnabledProtocols(protocols); [all...] |