Searched defs:protocols (Results 1 - 16 of 16) sorted by relevance

/libcore/crypto/src/main/java/org/conscrypt/
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.java73 * 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 DSSLServerSocketImpl.java32 // about supported and enabled cipher suites and protocols,
150 public void setEnabledProtocols(String[] protocols) { argument
151 sslParameters.setEnabledProtocols(protocols);
H A DSSLEngineImpl.java249 public void setEnabledProtocols(String[] protocols) { argument
250 sslParameters.setEnabledProtocols(protocols);
H A DSSLParametersImpl.java36 * 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 DSSLSocketImpl.java66 // about supported and enabled cipher suites and protocols,
291 public void setEnabledProtocols(String[] protocols) { argument
292 sslParameters.setEnabledProtocols(protocols);
H A DOpenSSLSocketImpl.java805 @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.
H A DNativeCrypto.java822 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...]
/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/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.java42 * 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 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 443 milliseconds