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()
DURLConnectionTest.java37 import java.net.Authenticator;
118 Authenticator.setDefault(null); in tearDown()
956 Authenticator.setDefault(new SimpleAuthenticator()); in testProxyConnectIncludesProxyHeadersOnly()
1009 Authenticator.setDefault(new SimpleAuthenticator()); in testProxyAuthenticateOnConnect()
1440 Authenticator.setDefault(new SimpleAuthenticator());
1621 Authenticator.setDefault(new SimpleAuthenticator());
1658 Authenticator.setDefault(authenticator);
1661 assertEquals(Authenticator.RequestorType.SERVER, authenticator.requestorType);
1696 Authenticator.setDefault(authenticator);
1699 assertEquals(Authenticator.RequestorType.SERVER, authenticator.requestorType);
[all …]
/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.mk260 ojluni/src/main/java/java/net/Authenticator.java \