/libcore/ojluni/src/main/java/sun/security/ssl/ |
H A D | ProtocolList.java | 31 * A list of ProtocolVersions. Also maintains the list of supported protocols. 41 private final ArrayList<ProtocolVersion> protocols; field in class:ProtocolList 56 this.protocols = versions; 58 if ((protocols.size() == 1) && 59 protocols.contains(ProtocolVersion.SSL20Hello)) { 65 if (protocols.size() != 0) { 66 Collections.sort(protocols); 67 min = protocols.get(0); 68 max = protocols.get(protocols [all...] |
H A D | SSLServerSocketImpl.java | 200 * Controls which protocols are enabled for use. 201 * The protocols must have been listed by 204 * @param protocols protocols to enable. 205 * @exception IllegalArgumentException when one of the protocols 208 synchronized public void setEnabledProtocols(String[] protocols) { argument 209 enabledProtocols = new ProtocolList(protocols); 251 * protocols haven't specifically been set by the user,
|
H A D | SSLContextImpl.java | 58 // supported and default protocols 311 * protocols. See: SSLSocket/SSLEngine.setEnabledProtocols() 313 boolean isDefaultProtocolList(ProtocolList protocols) { argument 314 return (protocols == defaultServerProtocolList) || 315 (protocols == defaultClientProtocolList); 324 ProtocolList protocols, boolean onlyEnabled) { 335 if (!(protocols.collection().isEmpty()) && 336 protocols.min.v != ProtocolVersion.NONE.v) { 343 suite.obsoleted > protocols.min.v && 344 suite.supported <= protocols 323 getApplicableCipherSuiteList( ProtocolList protocols, boolean onlyEnabled) argument [all...] |
H A D | SSLEngineImpl.java | 1369 * TLS protocols do not define a error alert for sequence 1898 * protocols haven't specifically been set by the user, 1922 * protocols haven't specifically been set by the user, 2005 * Returns the protocols that are supported by this implementation. 2006 * A subset of the supported protocols may be enabled for this connection 2014 * Controls which protocols are enabled for use on 2015 * this connection. The protocols must have been listed by 2018 * @param protocols protocols to enable. 2019 * @exception IllegalArgumentException when one of the protocols 2022 setEnabledProtocols(String[] protocols) argument [all...] |
H A D | SSLSocketImpl.java | 485 boolean sessionCreation, ProtocolList protocols, 500 enabledProtocols = protocols; 527 * protocols which negotiate use of a SSL based security. 1166 * TLS protocols do not define a error alert for sequence 2277 * protocols haven't specifically been set by the user, 2299 * protocols haven't specifically been set by the user, 2376 * Returns the protocols that are supported by this implementation. 2377 * A subset of the supported protocols may be enabled for this connection 2385 * Controls which protocols are enabled for use on 2386 * this connection. The protocols mus 483 SSLSocketImpl(SSLContextImpl context, boolean serverMode, CipherSuiteList suites, byte clientAuth, boolean sessionCreation, ProtocolList protocols, String identificationProtocol, AlgorithmConstraints algorithmConstraints) argument 2393 setEnabledProtocols(String[] protocols) argument [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | SSLParameters.java | 40 * the list of protocols to be allowed, the endpoint identification 69 private String[] protocols; field in class:SSLParameters 81 * The values of cipherSuites, protocols, cryptographic algorithm 105 * and protocols. 109 * <code>setCipherSuites(cipherSuites); setProtocols(protocols);</code>. 112 * @param protocols the array of protocols (or null) 114 public SSLParameters(String[] cipherSuites, String[] protocols) { argument 116 setProtocols(protocols); 144 * Returns a copy of the array of protocols o 159 setProtocols(String[] protocols) argument [all...] |
H A D | SSLServerSocket.java | 35 * provides secure server sockets using protocols such as the Secure 36 * Sockets Layer (SSL) or Transport Layer Security (TLS) protocols. 47 * suites and protocols, whether client 249 * Returns the names of the protocols which could be enabled for use. 259 * Returns the names of the protocols which are currently 270 * Controls which particular protocols are enabled for use by 273 * The protocols must have been listed by 275 * Following a successful call to this method, only protocols listed 276 * in the <code>protocols</code> parameter are enabled for use. 281 * @param protocols Name 288 setEnabledProtocols(String protocols[]) argument [all...] |
H A D | SSLSocket.java | 37 * socket using protocols such as the "Secure 38 * Sockets Layer" (SSL) or IETF "Transport Layer Security" (TLS) protocols. 1051 * Returns the names of the protocols which could be enabled for use 1054 * @return an array of protocols supported 1063 * @return an array of protocols 1071 * The protocols must have been listed by 1073 * Following a successful call to this method, only protocols listed 1074 * in the <code>protocols</code> parameter are enabled for use. 1076 * @param protocols Names of all the protocols t 1082 setEnabledProtocols(String protocols[]) argument [all...] |
H A D | SSLEngine.java | 33 * A class which enables secure communications using protocols such as 36 * Layer Security" (TLS) </A> protocols, but is transport independent. 265 * close the SSL/TLS link. The SSL/TLS protocols have closure handshake 342 * <li> The SSL/TLS protocols employ ordered packets. 1164 * wraps are often useful when implementing network protocols or 1318 * unwraps are often useful when implementing network protocols or 1558 * Returns the names of the protocols which could be enabled for use 1561 * @return an array of protocols supported 1570 * @return an array of protocols 1579 * The protocols mus 1590 setEnabledProtocols(String protocols[]) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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);
|
/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/support/src/test/java/libcore/java/security/ |
H A D | StandardNames.java | 42 * This class defines expected string names for protocols, key types, 1080 * Asserts that the protocols array is non-null and that it all of 1081 * its contents are protocols known to this implementation. As a 1082 * convenience, returns any unenabled protocols in a test for 1083 * those that want to verify separately that all protocols were 1086 private static Set<String> assertValidProtocols(Set<String> expected, String[] protocols) { argument 1087 assertNotNull(protocols); 1088 assertTrue(protocols.length != 0); 1090 // Make sure all protocols names are expected 1093 for (String protocol : protocols) { 1107 assertSupportedProtocols(Set<String> expected, String[] protocols) argument 1116 assertSupportedProtocols(String[] protocols) argument 1157 assertSSLContextEnabledProtocols(String version, String[] protocols) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 3149 * An SSLSocketFactory that delegates calls but limits the enabled protocols for any created 3154 private final String[] protocols; field in class:URLConnectionTest.LimitedProtocolsSocketFactory 3156 private LimitedProtocolsSocketFactory(SSLSocketFactory delegate, String... protocols) { argument 3158 this.protocols = protocols; 3165 socket.setEnabledProtocols(protocols); 3172 socket.setEnabledProtocols(protocols); 3180 socket.setEnabledProtocols(protocols); 3188 socket.setEnabledProtocols(protocols); 3195 socket.setEnabledProtocols(protocols); 3247 setEnabledProtocols(String[] protocols) argument [all...] |