Edit D:\app\Administrator\product\11.2.0\dbhome_1\owb\lib\int\HTTPClient\doc\api\HTTPClient\AuthorizationInfo.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Mon May 07 18:52:23 PDT 2001 --> <TITLE> HTTPClient API: Class AuthorizationInfo </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white"> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../HTTPClient/Codecs.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AuthorizationInfo.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> HTTPClient</FONT> <BR> Class AuthorizationInfo</H2> <PRE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">java.lang.Object</A> | +--<B>HTTPClient.AuthorizationInfo</B> </PRE> <HR> <DL> <DT>public class <B>AuthorizationInfo</B><DT>extends <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A><DT>implements <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Cloneable.html">Cloneable</A></DL> <P> Holds the information for an authorization response. <P>There are 7 fields which make up this class: host, port, scheme, realm, cookie, params, and extra_info. The host and port select which server the info will be sent to. The realm is server specified string which groups various URLs under a given server together and which is used to select the correct info when a server issues an auth challenge; for schemes which don't use a realm (such as "NTLM", "PEM", and "Kerberos") the realm must be the empty string (""). The scheme is the authorization scheme used (such as "Basic" or "Digest"). <P>There are basically two formats used for the Authorization header, the one used by the "Basic" scheme and derivatives, and the one used by the "Digest" scheme and derivatives. The first form contains just the the scheme and a "cookie": <PRE> Authorization: Basic aGVsbG86d29ybGQ=</PRE> The second form contains the scheme followed by a number of parameters in the form of name=value pairs: <PRE> Authorization: Digest username="hello", realm="test", nonce="42", ...</PRE> The two fields "cookie" and "params" correspond to these two forms. <A HREF="#toString()">toString()</A> is used by the AuthorizationModule when generating the Authorization header and will format the info accordingly. Note that "cookie" and "params" are mutually exclusive: if the cookie field is non-null then toString() will generate the first form; otherwise it will generate the second form. <P>In some schemes "extra" information needs to be kept which doesn't appear directly in the Authorization header. An example of this are the A1 and A2 strings in the Digest scheme. Since all elements in the params field will appear in the Authorization header this field can't be used for storing such info. This is what the extra_info field is for. It is an arbitrary object which can be manipulated by the corresponding setExtraInfo() and getExtraInfo() methods, but which will not be printed by toString(). <P>The addXXXAuthorization(), removeXXXAuthorization(), and getAuthorization() methods manipulate and query an internal list of AuthorizationInfo instances. There can be only one instance per host, port, scheme, and realm combination (see <A HREF="#equals">equals()</A>). <P> <DL> <DT><B>Since: </B><DD>V0.1</DD> <DT><B>Version: </B><DD>0.3-3 06/05/2001</DD> <DT><B>Author: </B><DD>Ronald Tschal?</DD> </DL> <HR> <P> <!-- ======== INNER CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#AuthorizationInfo(java.lang.String, int, java.lang.String, java.lang.String, HTTPClient.NVPair[], java.lang.Object)">AuthorizationInfo</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="../HTTPClient/NVPair.html">NVPair</A>[] params, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> info)</CODE> <BR> Creates a new info structure for the specified host and port with the specified scheme, realm, params.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#AuthorizationInfo(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)">AuthorizationInfo</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> cookie)</CODE> <BR> Creates a new info structure for the specified host and port with the specified scheme, realm and cookie.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#addAuthorization(HTTPClient.AuthorizationInfo)">addAuthorization</A></B>(<A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> auth_info)</CODE> <BR> Adds an authorization entry to the list using the default context.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#addAuthorization(HTTPClient.AuthorizationInfo, java.lang.Object)">addAuthorization</A></B>(<A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> auth_info, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</CODE> <BR> Adds an authorization entry to the list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#addAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, HTTPClient.NVPair[], java.lang.Object)">addAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> cookie, <A HREF="../HTTPClient/NVPair.html">NVPair</A>[] params, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> info)</CODE> <BR> Adds an authorization entry to the list using the default context.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#addAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, HTTPClient.NVPair[], java.lang.Object, java.lang.Object)">addAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> cookie, <A HREF="../HTTPClient/NVPair.html">NVPair</A>[] params, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> info, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</CODE> <BR> Adds an authorization entry to the list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#addBasicAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)">addBasicAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> user, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> passwd)</CODE> <BR> Adds an authorization entry for the "Basic" authorization scheme to the list using the default context.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#addBasicAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.Object)">addBasicAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> user, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> passwd, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</CODE> <BR> Adds an authorization entry for the "Basic" authorization scheme to the list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#addDigestAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)">addDigestAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> user, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> passwd)</CODE> <BR> Adds an authorization entry for the "Digest" authorization scheme to the list using the default context.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#addDigestAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.Object)">addDigestAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> user, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> passwd, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</CODE> <BR> Adds an authorization entry for the "Digest" authorization scheme to the list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#addPath(java.lang.String)">addPath</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> resource)</CODE> <BR> Adds the path from the given resource to our path list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#clone()">clone</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> obj)</CODE> <BR> Two AuthorizationInfos are considered equal if their host, port, scheme and realm match.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../HTTPClient/AuthorizationHandler.html">AuthorizationHandler</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getAuthHandler()">getAuthHandler</A></B>()</CODE> <BR> Get's the current authorization handler.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getAuthorization(java.lang.String, int, java.lang.String, java.lang.String)">getAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm)</CODE> <BR> Searches for the authorization info using the given host, port, scheme and realm.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.Object)">getAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</CODE> <BR> Searches for the authorization info in the given context using the given host, port, scheme and realm.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getCookie()">getCookie</A></B>()</CODE> <BR> Get the cookie</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getExtraInfo()">getExtraInfo</A></B>()</CODE> <BR> Get the extra info.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getHost()">getHost</A></B>()</CODE> <BR> Get the host.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../HTTPClient/NVPair.html">NVPair</A>[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getParams()">getParams</A></B>()</CODE> <BR> Get the authentication parameters.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getPort()">getPort</A></B>()</CODE> <BR> Get the port.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getRealm()">getRealm</A></B>()</CODE> <BR> Get the realm.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#getScheme()">getScheme</A></B>()</CODE> <BR> Get the scheme.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#hashCode()">hashCode</A></B>()</CODE> <BR> Produces a hash code based on host, scheme and realm.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#removeAuthorization(HTTPClient.AuthorizationInfo)">removeAuthorization</A></B>(<A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> auth_info)</CODE> <BR> Removes an authorization entry from the list using the default context.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#removeAuthorization(HTTPClient.AuthorizationInfo, java.lang.Object)">removeAuthorization</A></B>(<A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> auth_info, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</CODE> <BR> Removes an authorization entry from the list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#removeAuthorization(java.lang.String, int, java.lang.String, java.lang.String)">removeAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm)</CODE> <BR> Removes an authorization entry from the list using the default context.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#removeAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.Object)">removeAuthorization</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</CODE> <BR> Removes an authorization entry from the list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static <A HREF="../HTTPClient/AuthorizationHandler.html">AuthorizationHandler</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#setAuthHandler(HTTPClient.AuthorizationHandler)">setAuthHandler</A></B>(<A HREF="../HTTPClient/AuthorizationHandler.html">AuthorizationHandler</A> handler)</CODE> <BR> Set's the authorization handler.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#setCookie(java.lang.String)">setCookie</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> cookie)</CODE> <BR> Set the cookie</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#setExtraInfo(java.lang.Object)">setExtraInfo</A></B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> info)</CODE> <BR> Set the extra info.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#setParams(HTTPClient.NVPair[])">setParams</A></B>(<A HREF="../HTTPClient/NVPair.html">NVPair</A>[] params)</CODE> <BR> Set the authentication parameters.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../HTTPClient/AuthorizationInfo.html#toString()">toString</A></B>()</CODE> <BR> Constructs a string containing the authorization info.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A></B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE> <A NAME="AuthorizationInfo(java.lang.String, int, java.lang.String, java.lang.String, HTTPClient.NVPair[], java.lang.Object)"><!-- --></A><H3> AuthorizationInfo</H3> <PRE> public <B>AuthorizationInfo</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="../HTTPClient/NVPair.html">NVPair</A>[] params, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> info)</PRE> <DL> <DD>Creates a new info structure for the specified host and port with the specified scheme, realm, params. The cookie is set to null.<DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>scheme</CODE> - the scheme<DD><CODE>realm</CODE> - the realm<DD><CODE>params</CODE> - the parameters as an array of name/value pairs, or null<DD><CODE>info</CODE> - arbitrary extra info, or null</DL> </DD> </DL> <HR> <A NAME="AuthorizationInfo(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> AuthorizationInfo</H3> <PRE> public <B>AuthorizationInfo</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> cookie)</PRE> <DL> <DD>Creates a new info structure for the specified host and port with the specified scheme, realm and cookie. The params is set to a zero-length array, and the extra_info is set to null.<DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>scheme</CODE> - the scheme<DD><CODE>realm</CODE> - the realm<DD><CODE>cookie</CODE> - for the "Basic" scheme this is the base64-encoded username/password; for the "NTLM" scheme this is the base64-encoded username/password message.</DL> </DD> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="setAuthHandler(HTTPClient.AuthorizationHandler)"><!-- --></A><H3> setAuthHandler</H3> <PRE> public static <A HREF="../HTTPClient/AuthorizationHandler.html">AuthorizationHandler</A> <B>setAuthHandler</B>(<A HREF="../HTTPClient/AuthorizationHandler.html">AuthorizationHandler</A> handler)</PRE> <DL> <DD>Set's the authorization handler. This handler is called whenever the server requests authorization and no entry for the requested scheme and realm can be found in the list. The handler must implement the AuthorizationHandler interface. <P>If no handler is set then a <A HREF="../HTTPClient/DefaultAuthHandler.html"><CODE>default handler</CODE></A> is used. This handler currently only handles the "Basic" and "Digest" schemes and brings up a popup which prompts for the username and password. <P>The default handler can be disabled by setting the auth handler to <var>null</var>.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>handler</CODE> - the new authorization handler<DT><B>Returns:</B><DD>the old authorization handler<DT><B>See Also: </B><DD><A HREF="../HTTPClient/AuthorizationHandler.html"><CODE>AuthorizationHandler</CODE></A></DL> </DD> </DL> <HR> <A NAME="getAuthHandler()"><!-- --></A><H3> getAuthHandler</H3> <PRE> public static <A HREF="../HTTPClient/AuthorizationHandler.html">AuthorizationHandler</A> <B>getAuthHandler</B>()</PRE> <DL> <DD>Get's the current authorization handler.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the current authorization handler, or null if none is set.<DT><B>See Also: </B><DD><A HREF="../HTTPClient/AuthorizationHandler.html"><CODE>AuthorizationHandler</CODE></A></DL> </DD> </DL> <HR> <A NAME="getAuthorization(java.lang.String, int, java.lang.String, java.lang.String)"><!-- --></A><H3> getAuthorization</H3> <PRE> public static <A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> <B>getAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm)</PRE> <DL> <DD>Searches for the authorization info using the given host, port, scheme and realm. The context is the default context.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>scheme</CODE> - the scheme<DD><CODE>realm</CODE> - the realm<DT><B>Returns:</B><DD>a pointer to the authorization data or null if not found</DL> </DD> </DL> <HR> <A NAME="getAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.Object)"><!-- --></A><H3> getAuthorization</H3> <PRE> public static <A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> <B>getAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</PRE> <DL> <DD>Searches for the authorization info in the given context using the given host, port, scheme and realm.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>scheme</CODE> - the scheme<DD><CODE>realm</CODE> - the realm<DD><CODE>context</CODE> - the context this info is associated with<DT><B>Returns:</B><DD>a pointer to the authorization data or null if not found</DL> </DD> </DL> <HR> <A NAME="addAuthorization(HTTPClient.AuthorizationInfo)"><!-- --></A><H3> addAuthorization</H3> <PRE> public static void <B>addAuthorization</B>(<A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> auth_info)</PRE> <DL> <DD>Adds an authorization entry to the list using the default context. If an entry for the specified scheme and realm already exists then its cookie and params are replaced with the new data.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>auth_info</CODE> - the AuthorizationInfo to add</DL> </DD> </DL> <HR> <A NAME="addAuthorization(HTTPClient.AuthorizationInfo, java.lang.Object)"><!-- --></A><H3> addAuthorization</H3> <PRE> public static void <B>addAuthorization</B>(<A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> auth_info, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</PRE> <DL> <DD>Adds an authorization entry to the list. If an entry for the specified scheme and realm already exists then its cookie and params are replaced with the new data.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>auth_info</CODE> - the AuthorizationInfo to add<DD><CODE>context</CODE> - the context to associate this info with</DL> </DD> </DL> <HR> <A NAME="addAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, HTTPClient.NVPair[], java.lang.Object)"><!-- --></A><H3> addAuthorization</H3> <PRE> public static void <B>addAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> cookie, <A HREF="../HTTPClient/NVPair.html">NVPair</A>[] params, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> info)</PRE> <DL> <DD>Adds an authorization entry to the list using the default context. If an entry for the specified scheme and realm already exists then its cookie and params are replaced with the new data.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>scheme</CODE> - the scheme<DD><CODE>realm</CODE> - the realm<DD><CODE>cookie</CODE> - the cookie<DD><CODE>params</CODE> - an array of name/value pairs of parameters<DD><CODE>info</CODE> - arbitrary extra auth info</DL> </DD> </DL> <HR> <A NAME="addAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, HTTPClient.NVPair[], java.lang.Object, java.lang.Object)"><!-- --></A><H3> addAuthorization</H3> <PRE> public static void <B>addAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> cookie, <A HREF="../HTTPClient/NVPair.html">NVPair</A>[] params, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> info, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</PRE> <DL> <DD>Adds an authorization entry to the list. If an entry for the specified scheme and realm already exists then its cookie and params are replaced with the new data.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>scheme</CODE> - the scheme<DD><CODE>realm</CODE> - the realm<DD><CODE>cookie</CODE> - the cookie<DD><CODE>params</CODE> - an array of name/value pairs of parameters<DD><CODE>info</CODE> - arbitrary extra auth info<DD><CODE>context</CODE> - the context to associate this info with</DL> </DD> </DL> <HR> <A NAME="addBasicAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> addBasicAuthorization</H3> <PRE> public static void <B>addBasicAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> user, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> passwd)</PRE> <DL> <DD>Adds an authorization entry for the "Basic" authorization scheme to the list using the default context. If an entry already exists for the "Basic" scheme and the specified realm then it is overwritten.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>realm</CODE> - the realm<DD><CODE>user</CODE> - the username<DD><CODE>passwd</CODE> - the password</DL> </DD> </DL> <HR> <A NAME="addBasicAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.Object)"><!-- --></A><H3> addBasicAuthorization</H3> <PRE> public static void <B>addBasicAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> user, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> passwd, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</PRE> <DL> <DD>Adds an authorization entry for the "Basic" authorization scheme to the list. If an entry already exists for the "Basic" scheme and the specified realm then it is overwritten.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>realm</CODE> - the realm<DD><CODE>user</CODE> - the username<DD><CODE>passwd</CODE> - the password<DD><CODE>context</CODE> - the context to associate this info with</DL> </DD> </DL> <HR> <A NAME="addDigestAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> addDigestAuthorization</H3> <PRE> public static void <B>addDigestAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> user, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> passwd)</PRE> <DL> <DD>Adds an authorization entry for the "Digest" authorization scheme to the list using the default context. If an entry already exists for the "Digest" scheme and the specified realm then it is overwritten.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>realm</CODE> - the realm<DD><CODE>user</CODE> - the username<DD><CODE>passwd</CODE> - the password</DL> </DD> </DL> <HR> <A NAME="addDigestAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.Object)"><!-- --></A><H3> addDigestAuthorization</H3> <PRE> public static void <B>addDigestAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> user, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> passwd, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</PRE> <DL> <DD>Adds an authorization entry for the "Digest" authorization scheme to the list. If an entry already exists for the "Digest" scheme and the specified realm then it is overwritten.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>realm</CODE> - the realm<DD><CODE>user</CODE> - the username<DD><CODE>passwd</CODE> - the password<DD><CODE>context</CODE> - the context to associate this info with</DL> </DD> </DL> <HR> <A NAME="removeAuthorization(HTTPClient.AuthorizationInfo)"><!-- --></A><H3> removeAuthorization</H3> <PRE> public static void <B>removeAuthorization</B>(<A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> auth_info)</PRE> <DL> <DD>Removes an authorization entry from the list using the default context. If no entry for the specified host, port, scheme and realm exists then this does nothing.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>auth_info</CODE> - the AuthorizationInfo to remove</DL> </DD> </DL> <HR> <A NAME="removeAuthorization(HTTPClient.AuthorizationInfo, java.lang.Object)"><!-- --></A><H3> removeAuthorization</H3> <PRE> public static void <B>removeAuthorization</B>(<A HREF="../HTTPClient/AuthorizationInfo.html">AuthorizationInfo</A> auth_info, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</PRE> <DL> <DD>Removes an authorization entry from the list. If no entry for the specified host, port, scheme and realm exists then this does nothing.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>auth_info</CODE> - the AuthorizationInfo to remove<DD><CODE>context</CODE> - the context this info is associated with</DL> </DD> </DL> <HR> <A NAME="removeAuthorization(java.lang.String, int, java.lang.String, java.lang.String)"><!-- --></A><H3> removeAuthorization</H3> <PRE> public static void <B>removeAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm)</PRE> <DL> <DD>Removes an authorization entry from the list using the default context. If no entry for the specified host, port, scheme and realm exists then this does nothing.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>scheme</CODE> - the scheme<DD><CODE>realm</CODE> - the realm</DL> </DD> </DL> <HR> <A NAME="removeAuthorization(java.lang.String, int, java.lang.String, java.lang.String, java.lang.Object)"><!-- --></A><H3> removeAuthorization</H3> <PRE> public static void <B>removeAuthorization</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> host, int port, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> scheme, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> realm, <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> context)</PRE> <DL> <DD>Removes an authorization entry from the list. If no entry for the specified host, port, scheme and realm exists then this does nothing.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>host</CODE> - the host<DD><CODE>port</CODE> - the port<DD><CODE>scheme</CODE> - the scheme<DD><CODE>realm</CODE> - the realm<DD><CODE>context</CODE> - the context this info is associated with</DL> </DD> </DL> <HR> <A NAME="addPath(java.lang.String)"><!-- --></A><H3> addPath</H3> <PRE> public void <B>addPath</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> resource)</PRE> <DL> <DD>Adds the path from the given resource to our path list. The path list is used for deciding when to preemptively send auth info.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>resource</CODE> - the resource from which to extract the path</DL> </DD> </DL> <HR> <A NAME="getHost()"><!-- --></A><H3> getHost</H3> <PRE> public final <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>getHost</B>()</PRE> <DL> <DD>Get the host.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a string containing the host name.</DL> </DD> </DL> <HR> <A NAME="getPort()"><!-- --></A><H3> getPort</H3> <PRE> public final int <B>getPort</B>()</PRE> <DL> <DD>Get the port.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>an int containing the port number.</DL> </DD> </DL> <HR> <A NAME="getScheme()"><!-- --></A><H3> getScheme</H3> <PRE> public final <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>getScheme</B>()</PRE> <DL> <DD>Get the scheme.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a string containing the scheme.</DL> </DD> </DL> <HR> <A NAME="getRealm()"><!-- --></A><H3> getRealm</H3> <PRE> public final <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>getRealm</B>()</PRE> <DL> <DD>Get the realm.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a string containing the realm.</DL> </DD> </DL> <HR> <A NAME="getCookie()"><!-- --></A><H3> getCookie</H3> <PRE> public final <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>getCookie</B>()</PRE> <DL> <DD>Get the cookie<DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the cookie String<DT><B>Since: </B><DD>V0.3-1</DD> </DL> </DD> </DL> <HR> <A NAME="setCookie(java.lang.String)"><!-- --></A><H3> setCookie</H3> <PRE> public final void <B>setCookie</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> cookie)</PRE> <DL> <DD>Set the cookie<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>cookie</CODE> - the new cookie<DT><B>Since: </B><DD>V0.3-1</DD> </DL> </DD> </DL> <HR> <A NAME="getParams()"><!-- --></A><H3> getParams</H3> <PRE> public final <A HREF="../HTTPClient/NVPair.html">NVPair</A>[] <B>getParams</B>()</PRE> <DL> <DD>Get the authentication parameters.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>an array of name/value pairs.</DL> </DD> </DL> <HR> <A NAME="setParams(HTTPClient.NVPair[])"><!-- --></A><H3> setParams</H3> <PRE> public final void <B>setParams</B>(<A HREF="../HTTPClient/NVPair.html">NVPair</A>[] params)</PRE> <DL> <DD>Set the authentication parameters.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>an</CODE> - array of name/value pairs.</DL> </DD> </DL> <HR> <A NAME="getExtraInfo()"><!-- --></A><H3> getExtraInfo</H3> <PRE> public final <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> <B>getExtraInfo</B>()</PRE> <DL> <DD>Get the extra info.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the extra_info object</DL> </DD> </DL> <HR> <A NAME="setExtraInfo(java.lang.Object)"><!-- --></A><H3> setExtraInfo</H3> <PRE> public final void <B>setExtraInfo</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> info)</PRE> <DL> <DD>Set the extra info.<DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>info</CODE> - the extra info</DL> </DD> </DL> <HR> <A NAME="toString()"><!-- --></A><H3> toString</H3> <PRE> public <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html">String</A> <B>toString</B>()</PRE> <DL> <DD>Constructs a string containing the authorization info. The format is that of the http Authorization header.<DD><DL> <DT><B>Overrides:</B><DD><A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#toString()">toString</A> in class <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a String containing all info.</DL> </DD> </DL> <HR> <A NAME="hashCode()"><!-- --></A><H3> hashCode</H3> <PRE> public int <B>hashCode</B>()</PRE> <DL> <DD>Produces a hash code based on host, scheme and realm. Port is not included for simplicity (and because it probably won't make much difference). Used in the AuthorizationInfo.AuthList hash table.<DD><DL> <DT><B>Overrides:</B><DD><A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#hashCode()">hashCode</A> in class <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the hash code</DL> </DD> </DL> <HR> <A NAME="equals(java.lang.Object)"><!-- --></A><H3> equals</H3> <PRE> public boolean <B>equals</B>(<A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> obj)</PRE> <DL> <DD>Two AuthorizationInfos are considered equal if their host, port, scheme and realm match. Used in the AuthorizationInfo.AuthList hash table.<DD><DL> <DT><B>Overrides:</B><DD><A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A> in class <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>obj</CODE> - another AuthorizationInfo against which this one is to be compared.<DT><B>Returns:</B><DD>true if they match in the above mentioned fields; false otherwise.</DL> </DD> </DL> <HR> <A NAME="clone()"><!-- --></A><H3> clone</H3> <PRE> public <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A> <B>clone</B>()</PRE> <DL> <DD><DL> <DT><B>Overrides:</B><DD><A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html#clone()">clone</A> in class <A HREF="http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Object.html">Object</A></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a clone of this AuthorizationInfo using a deep copy</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../HTTPClient/Codecs.html"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AuthorizationInfo.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== --> <HR> </BODY> </HTML>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de