1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
5
<!-- Generated by javadoc on Sun Oct 10 17:41:05 EDT 2004 -->
7
HttpClient 2.0.2 API: Class AuthChallengeParser
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
11
<BODY BGCOLOR="white">
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
<TR ALIGN="center" VALIGN="top">
21
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
22
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
23
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
24
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AuthChallengeParser.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
25
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
26
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
27
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
28
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
32
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
39
PREV CLASS
40
<A HREF="../../../../../org/apache/commons/httpclient/auth/AuthSchemeBase.html"><B>NEXT CLASS</B></A></FONT></TD>
41
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
42
<A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
43
<A HREF="AuthChallengeParser.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
46
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
47
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
48
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
49
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
52
<!-- =========== END OF NAVBAR =========== -->
55
<!-- ======== START OF CLASS DATA ======== -->
58
org.apache.commons.httpclient.auth</FONT>
60
Class AuthChallengeParser</H2>
62
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">java.lang.Object</A>
64
+--<B>org.apache.commons.httpclient.auth.AuthChallengeParser</B>
68
<DT>public final class <B>AuthChallengeParser</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></DL>
71
This class provides utility methods for parsing HTTP www and proxy authentication
75
<DT><B>Since: </B><DD>2.0beta1</DD>
76
<DT><B>Author: </B><DD><a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a></DD>
81
<!-- ======== INNER CLASS SUMMARY ======== -->
84
<!-- =========== FIELD SUMMARY =========== -->
87
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
89
<A NAME="constructor_summary"><!-- --></A>
90
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
91
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
92
<TD COLSPAN=2><FONT SIZE="+2">
93
<B>Constructor Summary</B></FONT></TD>
95
<TR BGCOLOR="white" CLASS="TableRowColor">
96
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/auth/AuthChallengeParser.html#AuthChallengeParser()">AuthChallengeParser</A></B>()</CODE>
99
</TD>
103
<!-- ========== METHOD SUMMARY =========== -->
105
<A NAME="method_summary"><!-- --></A>
106
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
107
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
108
<TD COLSPAN=2><FONT SIZE="+2">
109
<B>Method Summary</B></FONT></TD>
111
<TR BGCOLOR="white" CLASS="TableRowColor">
112
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
113
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Map.html">Map</A></CODE></FONT></TD>
114
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/auth/AuthChallengeParser.html#extractParams(java.lang.String)">extractParams</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> challengeStr)</CODE>
117
Extracts a map of challenge parameters from an authentication challenge.</TD>
119
<TR BGCOLOR="white" CLASS="TableRowColor">
120
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121
<CODE>static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
122
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/auth/AuthChallengeParser.html#extractScheme(java.lang.String)">extractScheme</A></B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> challengeStr)</CODE>
125
Extracts authentication scheme from the given authentication
129
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
130
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
131
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
132
<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">Object</A></B></TD>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#<clinit>()"><clinit></A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD>
141
<!-- ============ FIELD DETAIL =========== -->
144
<!-- ========= CONSTRUCTOR DETAIL ======== -->
146
<A NAME="constructor_detail"><!-- --></A>
147
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
148
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
149
<TD COLSPAN=1><FONT SIZE="+2">
150
<B>Constructor Detail</B></FONT></TD>
154
<A NAME="AuthChallengeParser()"><!-- --></A><H3>
155
AuthChallengeParser</H3>
157
public <B>AuthChallengeParser</B>()</PRE>
161
<!-- ============ METHOD DETAIL ========== -->
163
<A NAME="method_detail"><!-- --></A>
164
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
165
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
166
<TD COLSPAN=1><FONT SIZE="+2">
167
<B>Method Detail</B></FONT></TD>
171
<A NAME="extractScheme(java.lang.String)"><!-- --></A><H3>
174
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> <B>extractScheme</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> challengeStr)
175
throws <A HREF="../../../../../org/apache/commons/httpclient/auth/MalformedChallengeException.html">MalformedChallengeException</A></PRE>
177
<DD>Extracts authentication scheme from the given authentication
179
<DT><B>Parameters:</B><DD><CODE>challengeStr</CODE> - the authentication challenge string<DT><B>Returns:</B><DD>authentication scheme<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/auth/MalformedChallengeException.html">MalformedChallengeException</A></CODE> - when the authentication challenge string
180
is malformed<DT><B>Since: </B><DD>2.0beta1</DD>
186
<A NAME="extractParams(java.lang.String)"><!-- --></A><H3>
189
public static <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/Map.html">Map</A> <B>extractParams</B>(<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html">String</A> challengeStr)
190
throws <A HREF="../../../../../org/apache/commons/httpclient/auth/MalformedChallengeException.html">MalformedChallengeException</A></PRE>
192
<DD>Extracts a map of challenge parameters from an authentication challenge.
193
Keys in the map are lower-cased<DD><DL>
194
<DT><B>Parameters:</B><DD><CODE>challengeStr</CODE> - the authentication challenge string<DT><B>Returns:</B><DD>a map of authentication challenge parameters<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/auth/MalformedChallengeException.html">MalformedChallengeException</A></CODE> - when the authentication challenge string
195
is malformed<DT><B>Since: </B><DD>2.0beta1</DD>
199
<!-- ========= END OF CLASS DATA ========= -->
202
<!-- ========== START OF NAVBAR ========== -->
203
<A NAME="navbar_bottom"><!-- --></A>
204
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
206
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
207
<A NAME="navbar_bottom_firstrow"><!-- --></A>
208
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
209
<TR ALIGN="center" VALIGN="top">
210
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
211
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
212
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
213
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AuthChallengeParser.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
214
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
215
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
216
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
217
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
221
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
227
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
228
PREV CLASS
229
<A HREF="../../../../../org/apache/commons/httpclient/auth/AuthSchemeBase.html"><B>NEXT CLASS</B></A></FONT></TD>
230
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
231
<A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
232
<A HREF="AuthChallengeParser.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
235
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
236
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
237
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
238
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
241
<!-- =========== END OF NAVBAR =========== -->
244
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.