/libcore/luni/src/main/java/java/net/ |
H A D | URLStreamHandlerFactory.java | 22 * protocol. It is used by the class {@code URL}. 28 * protocol}. 30 * @param protocol 31 * the protocol for which a handler is needed. 34 URLStreamHandler createURLStreamHandler(String protocol); argument
|
H A D | URL.java | 68 * In general, attempts to create URLs with any other protocol will fail with a 71 * java.protocol.handler.pkgs} system property. 73 * <p>The {@link URI} class can be used to manipulate URLs of any protocol. 84 private String protocol; field in class:URL 134 * URL or has an unsupported protocol. 146 * protocol's default stream handler. 148 * be parsed as a URL or an invalid protocol has been found. 159 protocol = UrlUtils.getSchemePrefix(spec); 160 int schemeSpecificPartStart = protocol != null ? (protocol 201 URL(String protocol, String host, String file) argument 215 URL(String protocol, String host, int port, String file) argument 231 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument 305 set(String protocol, String host, int port, String file, String ref) argument 663 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument [all...] |
H A D | Authenticator.java | 39 private String protocol; field in class:Authenticator 88 * Returns the protocol of the connection that requests authorization. 90 * @return protocol of the connection. 93 return this.protocol; 117 * protocol of the connection that requests authentication. 133 thisAuthenticator.protocol = rProtocol; 167 * protocol of the connection that requests authentication. 184 thisAuthenticator.protocol = rProtocol; 217 * protocol of the connection that requests authentication. 239 thisAuthenticator.protocol [all...] |
H A D | URLStreamHandler.java | 26 * can handle the communication with a URL object over a particular protocol 59 * if the protocol handler doesn't support this method. 71 * The string is parsed in HTTP format. If the protocol has a different URL 215 * @param protocol 216 * the protocol. 229 protected void setURL(URL u, String protocol, String host, int port, argument 234 u.set(protocol, host, port, file, ref); 241 protected void setURL(URL u, String protocol, String host, int port, argument 247 u.set(protocol, host, port, authority, userInfo, path, query, ref); 301 * Returns true if {@code a} and {@code b} have the same protocol, hos [all...] |
H A D | URLClassLoader.java | 408 String protocol = url.getProtocol(); 409 if (protocol.equals("jar")) { 411 } else if (protocol.equals("file")) { 600 * method retrieves the permissions from the system policy. If the protocol 706 * the factory that will be used to create protocol-specific 768 String protocol = url.getProtocol(); 770 if (isDirectory(url) || protocol.equals("jar")) { 777 // use jar protocol as the stream handler protocol 829 String protocol [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLContextTest.java | 50 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { 53 SSLContext newContext = SSLContext.getInstance(protocol); 68 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { 69 assertNotNull(SSLContext.getInstance(protocol)); 70 assertNotSame(SSLContext.getInstance(protocol), 71 SSLContext.getInstance(protocol)); 84 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { 86 SSLContext.getInstance(protocol, (String) null); 99 for (String protocol : StandardNames.SSL_CONTEXT_PROTOCOLS) { 100 String protocolName = SSLContext.getInstance(protocol) [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | SSLContext.java | 30 * The public API for secure socket protocol implementations. It acts as factory 83 * Creates a new {@code SSLContext} instance for the specified protocol. 85 * @param protocol 86 * the requested protocol to create a context for. 89 * if no installed provider can provide the requested protocol 91 * if {@code protocol} is {@code null} (instead of 94 public static SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { argument 95 if (protocol == null) { 96 throw new NullPointerException("protocol == null"); 98 Engine.SpiAndProvider sap = ENGINE.getInstance(protocol, nul 120 getInstance(String protocol, String provider) argument 151 getInstance(String protocol, Provider provider) argument 167 private final String protocol; field in class:SSLContext 179 SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol) argument [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | NativeCrypto.java | 830 String protocol = protocols[i]; 831 if (protocol.equals(SUPPORTED_PROTOCOL_SSLV3)) { 834 } else if (protocol.equals(SUPPORTED_PROTOCOL_TLSV1)) { 837 } else if (protocol.equals(SUPPORTED_PROTOCOL_TLSV1_1)) { 840 } else if (protocol.equals(SUPPORTED_PROTOCOL_TLSV1_2)) { 858 String protocol = protocols[i]; 859 if (protocol == null) { 862 if ((!protocol.equals(SUPPORTED_PROTOCOL_SSLV3)) 863 && (!protocol.equals(SUPPORTED_PROTOCOL_TLSV1)) 864 && (!protocol [all...] |
H A D | OpenSSLSessionImpl.java | 51 private String protocol; field in class:OpenSSLSessionImpl 318 * Returns the standard version name of the SSL protocol used in all 322 if (protocol == null) { 323 protocol = NativeCrypto.SSL_SESSION_get_version(sslSessionNativePointer); 325 return protocol; 331 * protocol.
|
H A D | SSLParametersImpl.java | 260 String protocol = protocols[i]; 261 if (protocol == null) { 264 if (!ProtocolVersion.isSupported(protocol)) { 265 throw new IllegalArgumentException("Protocol " + protocol + " is not supported.");
|
H A D | ClientHandshakeImpl.java | 44 * Client side handshake protocol implementation. 45 * Handshake protocol operates on top of the Record Protocol. 50 * to Record Protocol. Detected errors are reported to the Alert protocol. 94 session.protocol = ProtocolVersion.getLatestVersion(parameters.getEnabledProtocols()); 95 recordProtocol.setVersion(session.protocol.version); 115 session.protocol = ProtocolVersion.getLatestVersion(parameters.getEnabledProtocols()); 116 recordProtocol.setVersion(session.protocol.version); 135 session.protocol.version, session.id, cipher_suites); 192 //check protocol version 202 "Bad server hello protocol versio [all...] |
H A D | SSLSessionImpl.java | 50 ProtocolVersion protocol; field in class:SSLSessionImpl 167 return (protocol == null) ? "NONE" : protocol.name;
|
H A D | OpenSSLSocketImpl.java | 209 String protocol = session.getProtocol(); 212 if (protocol.equals(enabledProtocol)) { 653 * read data received via SSL protocol. 1089 * Returns the protocol agreed upon by client and server, or null if no 1090 * protocol was agreed upon. 1097 * Returns the protocol agreed upon by client and server, or {@code null} if 1098 * no protocol was agreed upon. 1108 * @param npnProtocols a non-empty array of protocol names. From 1124 * @param alpnProtocols a non-empty array of protocol names. From
|
H A D | ServerHandshakeImpl.java | 43 * Server side handshake protocol implementation. 44 * Handshake protocol operates on top of the Record Protocol. 49 * to Record Protocol. Detected errors are reported to the Alert protocol. 52 * Handshake protocol.</a> 116 // if protocol planed to send Hello Request message 415 session.protocol = ProtocolVersion.getByVersion(server_version); 581 boolean isTLS = (serverHello.server_version[1] == 1); // TLS 1.0 protocol 585 } else { // SSL 3.0 protocol (http://wp.netscape.com/eng/ssl3)
|
/libcore/luni/src/main/java/libcore/io/ |
H A D | BlockGuardOs.java | 180 @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { argument 181 return tagSocket(os.socket(domain, type, protocol)); 184 @Override public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { argument 185 os.socketpair(domain, type, protocol, fd1, fd2);
|
H A D | ForwardingOs.java | 129 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } argument 130 public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); } argument
|
H A D | Os.java | 122 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument 123 public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
|
H A D | Posix.java | 173 public native FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument 174 public native void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | OldURLStreamHandlerTest.java | 213 String protocol, 218 super.setURL(u, protocol, host, port, file, ref); 222 String protocol, 230 super.setURL(u, protocol, host, port, authority, 212 setURL(URL u, String protocol, String host, int port, String file, String ref) argument 221 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
|
H A D | URLStreamHandlerFactoryTest.java | 75 // clear cached protocol handlers if they exist 80 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName()); 84 System.clearProperty("java.protocol.handler.pkgs"); 89 // clear cached protocol handlers if they exist 99 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName()); 103 System.clearProperty("java.protocol.handler.pkgs"); 113 @Override public URLStreamHandler createURLStreamHandler(String protocol) { argument
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestSSLContext.java | 149 String protocol = "TLS"; 150 SSLContext clientContext = createSSLContext(protocol, clientProvider, 152 SSLContext serverContext = createSSLContext(protocol, serverProvider, 201 public static final SSLContext createSSLContext(final String protocol, argument 207 SSLContext context = SSLContext.getInstance(protocol, provider);
|
/libcore/luni/src/main/native/ |
H A D | libcore_net_RawSocket.cpp | 197 u_int8_t ip_proto = ((iphdr *) packetData)->protocol;
|
H A D | libcore_io_Posix.cpp | 1245 static jobject Posix_socket(JNIEnv* env, jobject, jint domain, jint type, jint protocol) { argument 1246 int fd = throwIfMinusOne(env, "socket", TEMP_FAILURE_RETRY(socket(domain, type, protocol))); 1250 static void Posix_socketpair(JNIEnv* env, jobject, jint domain, jint type, jint protocol, jobject javaFd1, jobject javaFd2) { argument 1252 int rc = throwIfMinusOne(env, "socketpair", TEMP_FAILURE_RETRY(socketpair(domain, type, protocol, fds)));
|
/libcore/support/src/test/java/libcore/java/security/ |
H A D | StandardNames.java | 871 for (String protocol : protocols) { 872 if (!remainingProtocols.remove(protocol)) { 873 unknownProtocols.add(protocol);
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
H A D | HttpURLConnectionTest.java | 18 package org.apache.harmony.luni.tests.internal.net.www.protocol.http;
|