Searched refs:protocols (Results 1 - 14 of 14) sorted by relevance

/libcore/luni/src/main/java/javax/net/ssl/
H A DSSLParameters.java20 * 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 DSSLContextSpi.java113 * 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 DSSLSocket.java26 * 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 DSSLEngine.java24 * 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 DSSLServerSocket.java26 * 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 DSSLParametersTest.java46 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 DSSLServerSocketTest.java52 String[] protocols = new String[] {socket.getSupportedProtocols()[0]};
53 socket.setEnabledProtocols(protocols);
54 assertEquals(Arrays.asList(protocols), Arrays.asList(socket.getEnabledProtocols()));
H A DSSLEngineTest.java382 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 DSSLSocketTest.java296 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 DStandardNames.java42 * 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 DMySSLContextSpi.java143 public void setEnabledProtocols(String[] protocols) { } argument
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DMySSLContextSpi.java141 public void setEnabledProtocols(String[] protocols) { } argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
H A DSSLServerSocketTest.java82 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 DURLConnectionTest.java2534 * 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...]

Completed in 565 milliseconds