Searched defs:protocols (Results 1 - 16 of 16) 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
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 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...]
H A DSSLSocket.java26 * 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 DSSLEngine.java24 * 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...]
/libcore/luni/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.java72 * The names of the protocols' versions that may be used on this SSL
74 * @return an array of protocols names
82 * The names of the protocols' versions that in use on this SSL connection.
84 * @return an array of protocols names
92 * This method enables the protocols' versions listed by
95 * @param protocols names of all the protocols to enable.
101 public void setEnabledProtocols(String[] protocols) { argument
102 enabledProtocols = NativeCrypto.checkEnabledProtocols(protocols);
H A DSSLServerSocketImpl.java32 // about supported and enabled cipher suites and protocols,
150 public void setEnabledProtocols(String[] protocols) { argument
151 sslParameters.setEnabledProtocols(protocols);
H A DSSLParametersImpl.java37 * about enabled cipher suites and protocols,
72 // protocols available for SSL connection
246 * @return the set of enabled protocols
253 * Sets the set of available protocols for use in SSL connection.
254 * @param protocols String[]
256 protected void setEnabledProtocols(String[] protocols) { argument
257 if (protocols == null) {
258 throw new IllegalArgumentException("protocols == null");
260 for (int i=0; i<protocols.length; i++) {
261 String protocol = protocols[
[all...]
H A DSSLEngineImpl.java250 public void setEnabledProtocols(String[] protocols) { argument
251 sslParameters.setEnabledProtocols(protocols);
H A DSSLSocketImpl.java66 // about supported and enabled cipher suites and protocols,
291 public void setEnabledProtocols(String[] protocols) { argument
292 sslParameters.setEnabledProtocols(protocols);
H A DOpenSSLSocketImpl.java780 @Override public void setEnabledProtocols(String[] protocols) { argument
781 enabledProtocols = NativeCrypto.checkEnabledProtocols(protocols);
996 * Sets the list of protocols this peer is interested in. If null no
997 * protocols will be used.
H A DNativeCrypto.java479 public static void setEnabledProtocols(int ssl, String[] protocols) { argument
480 checkEnabledProtocols(protocols);
481 // openssl uses negative logic letting you disable protocols.
486 for (int i = 0; i < protocols.length; i++) {
487 String protocol = protocols[i];
510 public static String[] checkEnabledProtocols(String[] protocols) { argument
511 if (protocols == null) {
512 throw new IllegalArgumentException("protocols == null");
514 for (int i = 0; i < protocols.length; i++) {
515 String protocol = protocols[
[all...]
/libcore/luni/src/test/java/tests/api/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/support/src/test/java/libcore/java/security/
H A DStandardNames.java41 * This class defines expected string names for protocols, key types,
833 * Asserts that the protocols array is non-null and that it all of
834 * its contents are protocols known to this implementation. As a
835 * convenience, returns any unenabled protocols in a test for
836 * those that want to verify separately that all protocols were
839 public static Set<String> assertValidProtocols(Set<String> expected, String[] protocols) { argument
840 assertNotNull(protocols);
841 assertTrue(protocols.length != 0);
843 // Make sure all protocols names are expected
846 for (String protocol : protocols) {
860 assertSupportedProtocols(Set<String> expected, 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

Completed in 841 milliseconds