Home
last modified time | relevance | path

Searched refs:Authenticator (Results 1 – 13 of 13) sorted by relevance

/libcore/luni/src/test/java/libcore/java/net/
DOldAuthenticatorRequestorTypeTest.java19 import java.net.Authenticator;
25 assertEquals(Authenticator.RequestorType.PROXY, in test_valueOfLjava_lang_String()
26 Authenticator.RequestorType.valueOf("PROXY")); in test_valueOfLjava_lang_String()
27 assertEquals(Authenticator.RequestorType.SERVER, in test_valueOfLjava_lang_String()
28 Authenticator.RequestorType.valueOf("SERVER")); in test_valueOfLjava_lang_String()
30 Authenticator.RequestorType.valueOf("TEST"); in test_valueOfLjava_lang_String()
37 Authenticator.RequestorType[] expectedTypes = { in test_values()
38 Authenticator.RequestorType.PROXY, in test_values()
39 Authenticator.RequestorType.SERVER in test_values()
42 Authenticator.RequestorType[] types = Authenticator.RequestorType.values(); in test_values()
DOldAuthenticatorTest.java19 import java.net.Authenticator;
30 PasswordAuthentication pa = Authenticator.requestPasswordAuthentication( in test_setDefault()
35 Authenticator.setDefault(mock); in test_setDefault()
38 pa = Authenticator.requestPasswordAuthentication(addr, 80, "http", "promt", "HTTP"); in test_setDefault()
41 Authenticator.setDefault(null); in test_setDefault()
55 class MockAuthenticator extends Authenticator {
60 public Authenticator.RequestorType getRequestorType() { in getRequestorType()
DAuthenticatorTest.java23 import java.net.Authenticator;
34 private class MockAuthenticator extends Authenticator {
96 Authenticator.setDefault(auth); in testRequestPasswordAuthentication()
97 PasswordAuthentication passAuth = Authenticator.requestPasswordAuthentication( in testRequestPasswordAuthentication()
111 passAuth = Authenticator.requestPasswordAuthentication( in testRequestPasswordAuthentication()
136 Authenticator.setDefault(null); in testRequestPasswordAuthenticationWithNullAuthenticator()
137 assertNull(Authenticator.requestPasswordAuthentication( in testRequestPasswordAuthenticationWithNullAuthenticator()
140 assertNull(Authenticator.requestPasswordAuthentication( in testRequestPasswordAuthenticationWithNullAuthenticator()
DURLConnectionTest.java43 import java.net.Authenticator;
128 Authenticator.setDefault(null); in tearDown()
1087 Authenticator.setDefault(new SimpleAuthenticator()); in proxyConnectIncludesProxyHeadersOnly()
1140 Authenticator.setDefault(new SimpleAuthenticator()); in proxyAuthenticateOnConnect()
1674 Authenticator.setDefault(new SimpleAuthenticator());
1856 Authenticator.setDefault(new SimpleAuthenticator());
1893 Authenticator.setDefault(authenticator);
1896 assertEquals(Authenticator.RequestorType.SERVER, authenticator.requestorType);
1931 Authenticator.setDefault(authenticator);
1934 assertEquals(Authenticator.RequestorType.SERVER, authenticator.requestorType);
[all …]
/libcore/ojluni/annotations/hiddenapi/java/net/
DAuthenticator.java31 public abstract class Authenticator { class
33 public Authenticator() { in Authenticator() method in Authenticator
41 public static synchronized void setDefault(java.net.Authenticator a) { in setDefault()
72 java.net.Authenticator.RequestorType reqType) { in requestPasswordAuthentication()
108 protected java.net.Authenticator.RequestorType getRequestorType() { in getRequestorType()
112 private java.net.Authenticator.RequestorType requestingAuthType;
129 private static java.net.Authenticator theAuthenticator;
/libcore/ojluni/src/main/java/java/net/
DAuthenticator.java60 class Authenticator { class
63 private static Authenticator theAuthenticator;
122 public synchronized static void setDefault(Authenticator a) { in setDefault()
174 Authenticator a = theAuthenticator; in requestPasswordAuthentication()
236 Authenticator a = theAuthenticator; in requestPasswordAuthentication()
303 Authenticator a = theAuthenticator; in requestPasswordAuthentication()
DSocksSocketImpl.java162 return Authenticator.requestPasswordAuthentication( in authenticate()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
DHttpURLConnectionTest.java21 import java.net.Authenticator;
274 Authenticator.setDefault(new Authenticator() { in testProxyAuthorization()
303 Authenticator.setDefault(null); in testProxyAuthorization()
/libcore/ojluni/src/test/java/net/Socks/
DSocksIPv6Test.java37 import java.net.Authenticator;
101 Authenticator.setDefault(new Authenticator() { in setUp()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java35 import java.net.Authenticator;
437 Authenticator.setDefault(new Authenticator() { in testProxyAuthConnection()
544 Authenticator.setDefault(new Authenticator() { in testProxyAuthConnection_doOutput()
/libcore/
Dopenjdk_java_files.bp286 "ojluni/src/main/java/java/net/Authenticator.java",
DEXPECTED_UPSTREAM321 ojluni/src/main/java/java/net/Authenticator.java,jdk8u/jdk8u121-b13,jdk/src/share/classes/java/net/
/libcore/api/
Dcurrent.txt5415 public abstract class Authenticator {
5416 ctor public Authenticator();
5425 method protected java.net.Authenticator.RequestorType getRequestorType();
5428 ….net.InetAddress, int, String, String, String, java.net.URL, java.net.Authenticator.RequestorType);
5429 method public static void setDefault(java.net.Authenticator);
5432 public enum Authenticator.RequestorType {
5433 enum_constant public static final java.net.Authenticator.RequestorType PROXY;
5434 enum_constant public static final java.net.Authenticator.RequestorType SERVER;