Searched refs:Authenticator (Results 1 – 8 of 8) sorted by relevance
19 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()
19 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()
37 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 …]
60 class Authenticator { class63 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()
162 return Authenticator.requestPasswordAuthentication( in authenticate()
21 import java.net.Authenticator;274 Authenticator.setDefault(new Authenticator() { in testProxyAuthorization()303 Authenticator.setDefault(null); in testProxyAuthorization()
34 import java.net.Authenticator;436 Authenticator.setDefault(new Authenticator() { in testProxyAuthConnection()543 Authenticator.setDefault(new Authenticator() { in testProxyAuthConnection_doOutput()
260 ojluni/src/main/java/java/net/Authenticator.java \