Searched defs:protocol (Results 1 - 18 of 18) sorted by path

/libcore/luni/src/main/java/java/net/
H A DAuthenticator.java39 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 DURL.java70 * In general, attempts to create URLs with any other protocol will fail with a
73 * java.protocol.handler.pkgs} system property.
75 * <p>The {@link URI} class can be used to manipulate URLs of any protocol.
86 private String protocol; field in class:URL
136 * URL or has an unsupported protocol.
148 * protocol's default stream handler.
150 * be parsed as a URL or an invalid protocol has been found.
161 protocol = UrlUtils.getSchemePrefix(spec);
162 int schemeSpecificPartStart = protocol != null ? (protocol
203 URL(String protocol, String host, String file) argument
217 URL(String protocol, String host, int port, String file) argument
233 URL(String protocol, String host, int port, String file, URLStreamHandler handler) argument
307 set(String protocol, String host, int port, String file, String ref) argument
655 set(String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref) argument
[all...]
H A DURLStreamHandler.java26 * 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 DURLStreamHandlerFactory.java22 * 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
/libcore/luni/src/main/java/javax/net/ssl/
H A DSSLContext.java30 * 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/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java180 @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 DForwardingOs.java123 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } argument
124 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 DOs.java116 public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument
117 public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
H A DPosix.java167 public native FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException; argument
168 public native void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException; argument
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DOpenSSLSessionImpl.java51 private String protocol; field in class:OpenSSLSessionImpl
319 * Returns the standard version name of the SSL protocol used in all
323 if (protocol == null) {
324 protocol = NativeCrypto.SSL_SESSION_get_version(sslSessionNativePointer);
326 return protocol;
332 * protocol.
H A DSSLSessionImpl.java45 ProtocolVersion protocol; field in class:SSLSessionImpl
158 return (protocol == null) ? "NONE" : protocol.name;
/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp1166 static jobject Posix_socket(JNIEnv* env, jobject, jint domain, jint type, jint protocol) { argument
1167 int fd = throwIfMinusOne(env, "socket", TEMP_FAILURE_RETRY(socket(domain, type, protocol)));
1171 static void Posix_socketpair(JNIEnv* env, jobject, jint domain, jint type, jint protocol, jobject javaFd1, jobject javaFd2) { argument
1173 int rc = throwIfMinusOne(env, "socketpair", TEMP_FAILURE_RETRY(socketpair(domain, type, protocol, fds)));
H A Dorg_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp343 sslErrorStr = "Failure in SSL library, usually a protocol error";
382 // For protocol errors, SSL might have more information.
2232 * select a protocol (on the client). We eagerly acquire a pointer to the array
3385 * Callback for the client to select a protocol.
3620 * completed, but everything is within the bounds of the TLS protocol.
4310 * Gets and returns in a string the version of the SSL protocol. If it
4319 const char* protocol = SSL_SESSION_get_version(ssl_session); local
4320 JNI_TRACE("ssl_session=%p NativeCrypto_SSL_SESSION_get_version => %s", ssl_session, protocol);
4321 return env->NewStringUTF(protocol);
/libcore/luni/src/test/java/libcore/java/net/
H A DOldURLStreamHandlerTest.java213 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 DURLStreamHandlerFactoryTest.java75 // 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/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
H A DHttpURLConnectionTest.java18 package org.apache.harmony.luni.tests.internal.net.www.protocol.http;
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
H A DHttpsURLConnectionTest.java18 package org.apache.harmony.luni.tests.internal.net.www.protocol.https;
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLContext.java149 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);

Completed in 2430 milliseconds