1 /* 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.net; 27 28 import android.compat.annotation.UnsupportedAppUsage; 29 30 @SuppressWarnings({"unchecked", "deprecation", "all"}) 31 public abstract class Authenticator { 32 Authenticator()33 public Authenticator() { 34 throw new RuntimeException("Stub!"); 35 } 36 reset()37 private void reset() { 38 throw new RuntimeException("Stub!"); 39 } 40 setDefault(java.net.Authenticator a)41 public static synchronized void setDefault(java.net.Authenticator a) { 42 throw new RuntimeException("Stub!"); 43 } 44 requestPasswordAuthentication( java.net.InetAddress addr, int port, java.lang.String protocol, java.lang.String prompt, java.lang.String scheme)45 public static java.net.PasswordAuthentication requestPasswordAuthentication( 46 java.net.InetAddress addr, 47 int port, 48 java.lang.String protocol, 49 java.lang.String prompt, 50 java.lang.String scheme) { 51 throw new RuntimeException("Stub!"); 52 } 53 requestPasswordAuthentication( java.lang.String host, java.net.InetAddress addr, int port, java.lang.String protocol, java.lang.String prompt, java.lang.String scheme)54 public static java.net.PasswordAuthentication requestPasswordAuthentication( 55 java.lang.String host, 56 java.net.InetAddress addr, 57 int port, 58 java.lang.String protocol, 59 java.lang.String prompt, 60 java.lang.String scheme) { 61 throw new RuntimeException("Stub!"); 62 } 63 requestPasswordAuthentication( java.lang.String host, java.net.InetAddress addr, int port, java.lang.String protocol, java.lang.String prompt, java.lang.String scheme, java.net.URL url, java.net.Authenticator.RequestorType reqType)64 public static java.net.PasswordAuthentication requestPasswordAuthentication( 65 java.lang.String host, 66 java.net.InetAddress addr, 67 int port, 68 java.lang.String protocol, 69 java.lang.String prompt, 70 java.lang.String scheme, 71 java.net.URL url, 72 java.net.Authenticator.RequestorType reqType) { 73 throw new RuntimeException("Stub!"); 74 } 75 getRequestingHost()76 protected final java.lang.String getRequestingHost() { 77 throw new RuntimeException("Stub!"); 78 } 79 getRequestingSite()80 protected final java.net.InetAddress getRequestingSite() { 81 throw new RuntimeException("Stub!"); 82 } 83 getRequestingPort()84 protected final int getRequestingPort() { 85 throw new RuntimeException("Stub!"); 86 } 87 getRequestingProtocol()88 protected final java.lang.String getRequestingProtocol() { 89 throw new RuntimeException("Stub!"); 90 } 91 getRequestingPrompt()92 protected final java.lang.String getRequestingPrompt() { 93 throw new RuntimeException("Stub!"); 94 } 95 getRequestingScheme()96 protected final java.lang.String getRequestingScheme() { 97 throw new RuntimeException("Stub!"); 98 } 99 getPasswordAuthentication()100 protected java.net.PasswordAuthentication getPasswordAuthentication() { 101 throw new RuntimeException("Stub!"); 102 } 103 getRequestingURL()104 protected java.net.URL getRequestingURL() { 105 throw new RuntimeException("Stub!"); 106 } 107 getRequestorType()108 protected java.net.Authenticator.RequestorType getRequestorType() { 109 throw new RuntimeException("Stub!"); 110 } 111 112 private java.net.Authenticator.RequestorType requestingAuthType; 113 114 private java.lang.String requestingHost; 115 116 private int requestingPort; 117 118 private java.lang.String requestingPrompt; 119 120 private java.lang.String requestingProtocol; 121 122 private java.lang.String requestingScheme; 123 124 private java.net.InetAddress requestingSite; 125 126 private java.net.URL requestingURL; 127 128 @UnsupportedAppUsage 129 private static java.net.Authenticator theAuthenticator; 130 131 @SuppressWarnings({"unchecked", "deprecation", "all"}) 132 public static enum RequestorType { 133 PROXY, 134 SERVER; 135 RequestorType()136 private RequestorType() { 137 throw new RuntimeException("Stub!"); 138 } 139 } 140 } 141