Home
last modified time | relevance | path

Searched refs:Authenticator (Results 1 – 8 of 8) 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()
/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/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java34 import java.net.Authenticator;
436 Authenticator.setDefault(new Authenticator() { in testProxyAuthConnection()
543 Authenticator.setDefault(new Authenticator() { in testProxyAuthConnection_doOutput()
/libcore/
Dopenjdk_java_files.bp271 "ojluni/src/main/java/java/net/Authenticator.java",