Searched refs:Authenticator (Results 1 - 25 of 43) sorted by relevance

12

/openjdk7/jdk/src/share/classes/sun/net/httpserver/
H A DAuthFilter.java40 private Authenticator authenticator;
42 public AuthFilter (Authenticator authenticator) {
50 public void setAuthenticator (Authenticator a) {
67 Authenticator.Result r = authenticator.authenticate (t);
68 if (r instanceof Authenticator.Success) {
69 Authenticator.Success s = (Authenticator.Success)r;
73 } else if (r instanceof Authenticator.Retry) {
74 Authenticator.Retry ry = (Authenticator
[all...]
H A DHttpContextImpl.java52 private Authenticator authenticator;
139 public Authenticator setAuthenticator (Authenticator auth) {
140 Authenticator old = authenticator;
146 public Authenticator getAuthenticator () {
/openjdk7/jdk/src/share/classes/com/sun/net/httpserver/
H A DHttpContext.java93 * Sets the Authenticator for this HttpContext. Once an authenticator
100 * @return the previous Authenticator, if any set, or <code>null</code>
103 public abstract Authenticator setAuthenticator (Authenticator auth);
106 * Returns the currently set Authenticator for this context
108 * @return this HttpContext's Authenticator, or <code>null</code>
111 public abstract Authenticator getAuthenticator ();
H A DAuthenticator.java32 * Authenticator represents an implementation of an HTTP authentication
39 public abstract class Authenticator { class
88 * getResponseCode(). The Authenticator must also have
H A DBasicAuthenticator.java34 public abstract class BasicAuthenticator extends Authenticator {
65 return new Authenticator.Retry (401);
69 return new Authenticator.Failure (401);
78 return new Authenticator.Success (
88 return new Authenticator.Failure(401);
95 * Authenticator's realm. Any caching of credentials
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/
H A DAuthContext.java47 public Authenticator authenticator;
/openjdk7/jdk/test/java/net/Authenticator/
H A DB4962064.java30 * @summary Extend Authenticator to provide access to request URI and server/proxy
98 Authenticator.setDefault (auth);
122 static class MyAuthenticator extends Authenticator {
133 Authenticator.RequestorType expected;
135 expected = Authenticator.RequestorType.SERVER;
137 expected = Authenticator.RequestorType.PROXY;
H A DB4759514.java98 Authenticator.setDefault (auth);
111 except ("Authenticator was called "+f+" times. Should be 1");
121 static class MyAuthenticator extends Authenticator {
H A DB4921848.java89 Authenticator.setDefault (auth);
108 static class MyAuthenticator extends Authenticator {
H A DAuthNPETest.java100 static class MyAuthenticator extends Authenticator {
133 Authenticator.setDefault (auth);
H A DB4678055.java126 Authenticator.setDefault (auth);
141 except ("Authenticator was called "+f+" times. Should be 2");
155 static class MyAuthenticator extends Authenticator {
H A DB4722333.java121 Authenticator.setDefault (auth);
138 except ("Authenticator was called "+f+" times. Should be " + expected.length);
148 static class MyAuthenticator extends Authenticator {
H A DBasicTest3.java99 static class MyAuthenticator3 extends Authenticator {
132 Authenticator.setDefault (auth);
/openjdk7/jdk/src/share/classes/java/net/
H A DAuthenticator.java29 * The class Authenticator represents an object that knows how to obtain
42 * with the system by calling {@link #setDefault(Authenticator)}.
50 * @see java.net.Authenticator#setDefault(java.net.Authenticator)
51 * @see java.net.Authenticator#getPasswordAuthentication()
60 class Authenticator { class
63 private static Authenticator theAuthenticator;
122 public synchronized static void setDefault(Authenticator a) {
146 * ({@link java.net.Authenticator#getRequestingProtocol()})
174 Authenticator
[all...]
/openjdk7/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/
H A DHttpsProxyStackOverflow.java24 // No way to reserve default Authenticator, need to run in othervm mode.
35 import java.net.Authenticator;
68 Authenticator.setDefault(new Authenticator() {
/openjdk7/jdk/test/sun/net/www/protocol/http/
H A DWebGet.java28 import java.net.Authenticator;
46 static class MyAuthenticator extends Authenticator {
71 Authenticator.setDefault (new MyAuthenticator ());
H A DRelativeRedirect.java40 static class MyAuthenticator extends Authenticator {
90 Authenticator.setDefault (auth);
H A DBasicLongCredentials.java38 import java.net.Authenticator;
66 Authenticator.setDefault(new MyAuthenticator());
85 static class MyAuthenticator extends java.net.Authenticator {
H A DNTLMTest.java38 Authenticator.setDefault(new NullAuthenticator());
144 static class NullAuthenticator extends java.net.Authenticator
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/spnego/
H A DNegotiateCallbackHandler.java29 import java.net.Authenticator;
49 * Authenticator asks for username and password in a single prompt,
51 * gets handled first, make sure Authenticator is only called once.
65 Authenticator.requestPasswordAuthentication(
70 * when the underlying Authenticator is canceled, username and
/openjdk7/jdk/test/com/sun/net/httpserver/bugs/
H A DB6341616.java57 java.net.Authenticator.setDefault (new MyAuthenticator());
76 static class MyAuthenticator extends java.net.Authenticator {
/openjdk7/jdk/test/sun/net/www/
H A DAuthHeaderTest.java97 Authenticator.setDefault (auth);
110 except ("Authenticator was called "+f+" times. Should be 1");
120 static class MyAuthenticator extends Authenticator {
/openjdk7/jdk/test/sun/security/krb5/auto/
H A DHttpNegotiateServer.java28 * @summary Undefined requesting URL in java.net.Authenticator.getPasswordAuthentication()
29 * @summary HTTP/Negotiate: Authenticator triggered again when user cancels the first one
85 // For 6829283, count how many times the Authenticator is called.
95 * This Authenticator checks everything:
98 static class KnowAllAuthenticator extends java.net.Authenticator {
137 * This Authenticator knows nothing
139 static class KnowNothingAuthenticator extends java.net.Authenticator {
219 java.net.Authenticator.setDefault(new KnowAllAuthenticator());
239 java.net.Authenticator.setDefault(new KnowNothingAuthenticator());
247 throw new RuntimeException("Authenticator calle
[all...]
/openjdk7/jdk/test/com/sun/net/httpserver/
H A DTest2.java61 java.net.Authenticator.setDefault (new MyAuthenticator());
89 static class MyAuthenticator extends java.net.Authenticator {
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/www/protocol/https/HttpsClient/
H A DProxyAuthTest.java31 * No way to reserve and restore java.lang.Authenticator, need to run this
189 Authenticator.setDefault(new TestAuthenticator());
201 public static class TestAuthenticator extends Authenticator {

Completed in 81 milliseconds

12