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

/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DProtocolVersion.java88 * @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 DOpenSSLServerSocketImpl.java124 * The names of the protocols' versions that may be used on this SSL
126 * @return an array of protocols names
140 * The names of the protocols' versions that in use on this SSL connection.
142 * @return an array of protocols names
160 * This method enables the protocols' versions listed by
163 * @param protocols names of all the protocols to enable.
169 public void setEnabledProtocols(String[] protocols) { argument
170 if (protocols == null) {
176 for (int i = 0; i < protocols
[all...]
H A DSSLParameters.java38 * about enabled cipher suites and protocols,
79 // protocols available for SSL connection
340 * @return the set of enabled protocols
347 * Sets the set of available protocols for use in SSL connection.
348 * @param protocols String[]
350 protected void setEnabledProtocols(String[] protocols) { argument
351 if (protocols == null) {
354 for (int i=0; i<protocols.length; i++) {
355 if (!ProtocolVersion.isSupported(protocols[i])) {
356 throw new IllegalArgumentException("Protocol " + protocols[
[all...]
H A DOpenSSLSocketImpl.java141 * protocols
739 * The names of the protocols' versions that may be used on this SSL
741 * @return an array of protocols names
755 * The names of the protocols' versions that are in use on this SSL
758 * @return an array of protocols names
776 * This method enables the protocols' versions listed by
779 * @param protocols The names of all the protocols to put on use
785 public synchronized void setEnabledProtocols(String[] protocols) { argument
787 if (protocols
[all...]
H A DSSLEngineImpl.java264 public void setEnabledProtocols(String[] protocols) { argument
265 sslParameters.setEnabledProtocols(protocols);
/dalvik/libcore/x-net/src/main/java/javax/net/ssl/
H A DSSLServerSocket.java26 * based on protocols like SSL, TLS, or others.
123 * Returns the names of the supported protocols.
125 * @return the names of the supported protocols.
130 * Returns the names of the enabled protocols to be used for new
133 * @return the names of the enabled protocols to be used for new
139 * Sets the names of the protocols to be enabled for new connections. Only
140 * protocols returned by {@link #getSupportedProtocols()} are allowed.
142 * @param protocols
143 * the names of the to be enabled protocols.
145 * if one of the protocols i
147 setEnabledProtocols(String[] protocols) argument
[all...]
H A DSSLSocket.java26 * The extension of {@code Socket} providing secure protocols like SSL (Secure
149 * Returns the names of the supported protocols.
151 * @return the names of the supported protocols.
156 * Returns the names of the enabled protocols.
158 * @return the names of the enabled protocols.
163 * Sets the names of the protocols to be enabled. Only
164 * protocols returned by {@link #getSupportedProtocols()} are allowed.
166 * @param protocols
167 * the names of the to be enabled protocols.
169 * if one of the protocols i
171 setEnabledProtocols(String[] protocols) argument
[all...]
H A DSSLEngine.java24 * protocols. It includes the setup, handshake, and encrypt/decrypt
178 * protocols can be enables using {@link #setEnabledProtocols(String[])}.
232 * instance. Only protocols listed by {@code getSupportedProtocols()} are
235 * @param protocols
239 * {@code protocols} is {@code null}.
241 public abstract void setEnabledProtocols(String[] protocols); argument
/dalvik/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMySSLContextSpi.java133 public void setEnabledProtocols(String[] protocols) { } argument
/dalvik/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DMySSLContextSpi.java131 public void setEnabledProtocols(String[] protocols) { } argument
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/
H A DSSLServerSocketTest.java89 public void setEnabledProtocols(String[] protocols) { argument
347 assertTrue("no supported protocols available.", res.length > 0);
353 * @tests javax.net.ssl.SSLServerSocket#setEnabledProtocols(String[] protocols)
383 assertTrue("No supported protocols", count > 0);
387 assertTrue("no enabled protocols.", res.length == count);

Completed in 113 milliseconds