/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 33 * protocols are initialized to null and client authentication 52 * cipher suites and protocols arrays to be provided. Other values 57 * @param protocols An array of protocol names that is cloned for 61 String[] protocols) { 63 setProtocols(protocols); 87 * Returns a copy of the protocols, or null if none have been 91 if (protocols == null) { 94 return protocols 60 SSLParameters(String[] cipherSuites, String[] protocols) argument 100 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 160 * Returns the names of the supported protocols. 165 * Returns the names of the enabled protocols. 170 * Sets the names of the protocols to be enabled. Only 171 * protocols returned by {@link #getSupportedProtocols()} are allowed. 173 * @param protocols 174 * the names of the to be enabled protocols. 176 * if one of the protocols is not supported. 178 public abstract void setEnabledProtocols(String[] protocols); argument 293 * cipher suites, protocols, an [all...] |
H A D | SSLEngine.java | 24 * protocols. It includes the setup, handshake, and encrypt/decrypt 176 * protocols can be enables using {@link #setEnabledProtocols(String[])}. 230 * instance. Only protocols listed by {@code getSupportedProtocols()} are 233 * @param protocols 237 * {@code protocols} is {@code null}. 239 public abstract void setEnabledProtocols(String[] protocols); argument 467 * cipher suites, protocols, and client authentication settings. 484 * sets the enabled protocols. If the parameters specify the want 494 String[] protocols = p.getProtocols(); 495 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/crypto/src/main/java/org/conscrypt/ |
H A D | ProtocolVersion.java | 88 * @param protocols 91 public static ProtocolVersion getLatestVersion(String[] protocols) { argument 92 if (protocols == null || protocols.length == 0) { 95 ProtocolVersion latest = getByName(protocols[0]); 97 for (int i = 1; i < protocols.length; i++) { 98 current = getByName(protocols[i]);
|
H A D | SSLServerSocketImpl.java | 32 // about supported and enabled cipher suites and protocols, 150 public void setEnabledProtocols(String[] protocols) { argument 151 sslParameters.setEnabledProtocols(protocols);
|
H A D | SSLParametersImpl.java | 36 * about enabled cipher suites and protocols, 71 // protocols available for SSL connection 245 * @return the set of enabled protocols 252 * Sets the set of available protocols for use in SSL connection. 253 * @param protocols String[] 255 protected void setEnabledProtocols(String[] protocols) { argument 256 if (protocols == null) { 257 throw new IllegalArgumentException("protocols == null"); 259 for (int i=0; i<protocols.length; i++) { 260 String protocol = protocols[ [all...] |
H A D | NativeCrypto.java | 822 public static void setEnabledProtocols(long ssl, String[] protocols) { argument 823 checkEnabledProtocols(protocols); 824 // openssl uses negative logic letting you disable protocols. 829 for (int i = 0; i < protocols.length; i++) { 830 String protocol = protocols[i]; 853 public static String[] checkEnabledProtocols(String[] protocols) { argument 854 if (protocols == null) { 855 throw new IllegalArgumentException("protocols == null"); 857 for (int i = 0; i < protocols.length; i++) { 858 String protocol = protocols[ [all...] |
H A D | OpenSSLServerSocketImpl.java | 73 * The names of the protocols' versions that may be used on this SSL 75 * @return an array of protocols names 83 * The names of the protocols' versions that in use on this SSL connection. 85 * @return an array of protocols names 93 * This method enables the protocols' versions listed by 96 * @param protocols names of all the protocols to enable. 102 public void setEnabledProtocols(String[] protocols) { argument 103 enabledProtocols = NativeCrypto.checkEnabledProtocols(protocols);
|
H A D | SSLEngineImpl.java | 249 public void setEnabledProtocols(String[] protocols) { argument 250 sslParameters.setEnabledProtocols(protocols);
|
H A D | SSLSocketImpl.java | 66 // about supported and enabled cipher suites and protocols, 291 public void setEnabledProtocols(String[] protocols) { argument 292 sslParameters.setEnabledProtocols(protocols);
|
H A D | OpenSSLSocketImpl.java | 805 @Override public void setEnabledProtocols(String[] protocols) { argument 806 enabledProtocols = NativeCrypto.checkEnabledProtocols(protocols); 1105 * Sets the list of protocols this peer is interested in. If null no 1106 * protocols will be used. 1121 * Sets the list of protocols this peer is interested in. If the list is 1122 * {@code null}, no protocols will be used.
|
/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 | SSLContextTest.java | 261 String[] protocols = p.getProtocols(); 262 assertNotNull(protocols); 263 StandardNames.assertValidCipherSuites(StandardNames.SSL_SOCKET_PROTOCOLS, protocols); 284 String[] protocols = p.getProtocols(); 285 assertNotNull(protocols); 287 protocols);
|
H A D | SSLEngineTest.java | 207 String[] protocols = e.getSupportedProtocols(); 209 protocols); 210 assertNotSame(protocols, e.getSupportedProtocols()); 217 String[] protocols = e.getEnabledProtocols(); 218 StandardNames.assertValidProtocols(StandardNames.SSL_SOCKET_PROTOCOLS, protocols); 219 assertNotSame(protocols, e.getEnabledProtocols()); 476 String[] protocols = p.getProtocols(); 477 StandardNames.assertValidProtocols(StandardNames.SSL_SOCKET_PROTOCOLS, protocols); 478 assertNotSame(protocols, e.getEnabledProtocols()); 479 assertEquals(Arrays.asList(protocols), Array [all...] |
H A D | SSLSocketTest.java | 245 String[] protocols = ssl.getSupportedProtocols(); 246 StandardNames.assertSupportedProtocols(StandardNames.SSL_SOCKET_PROTOCOLS, protocols); 247 assertNotSame(protocols, ssl.getSupportedProtocols()); 253 String[] protocols = ssl.getEnabledProtocols(); 254 StandardNames.assertValidProtocols(StandardNames.SSL_SOCKET_PROTOCOLS, protocols); 255 assertNotSame(protocols, ssl.getEnabledProtocols()); 939 String[] protocols = p.getProtocols(); 940 StandardNames.assertValidProtocols(StandardNames.SSL_SOCKET_PROTOCOLS, protocols); 941 assertNotSame(protocols, ssl.getEnabledProtocols()); 942 assertEquals(Arrays.asList(protocols), Array [all...] |
/libcore/support/src/test/java/libcore/java/security/ |
H A D | StandardNames.java | 42 * This class defines expected string names for protocols, key types, 858 * Asserts that the protocols array is non-null and that it all of 859 * its contents are protocols known to this implementation. As a 860 * convenience, returns any unenabled protocols in a test for 861 * those that want to verify separately that all protocols were 864 public static Set<String> assertValidProtocols(Set<String> expected, String[] protocols) { argument 865 assertNotNull(protocols); 866 assertTrue(protocols.length != 0); 868 // Make sure all protocols names are expected 871 for (String protocol : protocols) { 885 assertSupportedProtocols(Set<String> expected, 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/luni/src/test/java/tests/api/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);
|