public class org.apache.hc.client.http.impl.auth.AuthChallengeParser extends java.lang.Object
{
public static final org.apache.hc.client.http.impl.auth.AuthChallengeParser INSTANCE;
private final org.apache.hc.core.util.Tokenizer tokenParser;
private static final char BLANK;
private static final char COMMA_CHAR;
private static final char EQUAL_CHAR;
private static final java.util.BitSet TERMINATORS;
private static final java.util.BitSet DELIMITER;
private static final java.util.BitSet SPACE;
public void <init>()
{
org.apache.hc.core.util.Tokenizer v;
org.apache.hc.client.http.impl.auth.AuthChallengeParser v;
v := @this: org.apache.hc.client.http.impl.auth.AuthChallengeParser;
specialinvoke v.<java.lang.Object: void <init>()>();
v = <org.apache.hc.core.util.Tokenizer: org.apache.hc.core.util.Tokenizer INSTANCE>;
v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: org.apache.hc.core.util.Tokenizer tokenParser> = v;
return;
}
public java.util.List parse(org.apache.hc.client.http.auth.ChallengeType, java.lang.CharSequence, org.apache.hc.core.http.message.ParserCursor) throws org.apache.hc.core.http.ParseException
{
org.apache.hc.core.util.Tokenizer v, v;
org.apache.hc.core.http.message.ParserCursor v;
java.util.ArrayList v, v;
org.apache.hc.client.http.auth.AuthChallenge v;
int v, v;
java.lang.String v, v, v, v, v;
boolean v, v, v, v;
java.lang.CharSequence v;
java.util.Iterator v;
org.apache.hc.core.http.ParseException v, v;
java.util.List v, v;
org.apache.hc.client.http.impl.auth.AuthChallengeParser v;
org.apache.hc.client.http.auth.ChallengeType v;
java.lang.Object v, v;
java.util.BitSet v;
org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt v, v;
v := @this: org.apache.hc.client.http.impl.auth.AuthChallengeParser;
v := @parameter: org.apache.hc.client.http.auth.ChallengeType;
v := @parameter: java.lang.CharSequence;
v := @parameter: org.apache.hc.core.http.message.ParserCursor;
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: org.apache.hc.core.util.Tokenizer tokenParser>;
virtualinvoke v.<org.apache.hc.core.util.Tokenizer: void skipWhiteSpace(java.lang.CharSequence,org.apache.hc.core.util.Tokenizer$Cursor)>(v, v);
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: boolean atEnd()>();
if v == 0 goto label;
v = new org.apache.hc.core.http.ParseException;
specialinvoke v.<org.apache.hc.core.http.ParseException: void <init>(java.lang.String)>("Malformed auth challenge");
throw v;
label:
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: org.apache.hc.core.util.Tokenizer tokenParser>;
v = <org.apache.hc.client.http.impl.auth.AuthChallengeParser: java.util.BitSet SPACE>;
v = virtualinvoke v.<org.apache.hc.core.util.Tokenizer: java.lang.String parseToken(java.lang.CharSequence,org.apache.hc.core.util.Tokenizer$Cursor,java.util.BitSet)>(v, v, v);
v = staticinvoke <org.apache.hc.core.util.TextUtils: boolean isBlank(java.lang.CharSequence)>(v);
if v == 0 goto label;
v = new org.apache.hc.core.http.ParseException;
specialinvoke v.<org.apache.hc.core.http.ParseException: void <init>(java.lang.String)>("Malformed auth challenge");
throw v;
label:
v = new org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt;
specialinvoke v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt: void <init>(java.lang.String)>(v);
v = v;
label:
if v == null goto label;
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = virtualinvoke v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt parseChallenge(java.lang.CharSequence,org.apache.hc.core.http.message.ParserCursor,org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt)>(v, v, v);
goto label;
label:
v = new java.util.ArrayList;
v = interfaceinvoke v.<java.util.List: int size()>();
specialinvoke v.<java.util.ArrayList: void <init>(int)>(v);
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt: java.util.List params>;
v = null;
v = interfaceinvoke v.<java.util.List: int size()>();
if v != 1 goto label;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v = interfaceinvoke v.<org.apache.hc.core.http.NameValuePair: java.lang.String getValue()>();
if v != null goto label;
v = interfaceinvoke v.<org.apache.hc.core.http.NameValuePair: java.lang.String getName()>();
interfaceinvoke v.<java.util.List: void clear()>();
label:
v = new org.apache.hc.client.http.auth.AuthChallenge;
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt: java.lang.String schemeName>;
v = v;
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v != 0 goto label;
v = v;
goto label;
label:
v = null;
label:
specialinvoke v.<org.apache.hc.client.http.auth.AuthChallenge: void <init>(org.apache.hc.client.http.auth.ChallengeType,java.lang.String,java.lang.String,java.util.List)>(v, v, v, v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
return v;
}
org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt parseChallenge(java.lang.CharSequence, org.apache.hc.core.http.message.ParserCursor, org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt) throws org.apache.hc.core.http.ParseException
{
org.apache.hc.core.util.Tokenizer v, v, v, v;
org.apache.hc.core.http.message.ParserCursor v;
boolean v, v, v, v, v;
java.lang.CharSequence v;
java.util.List v, v, v, v;
org.apache.hc.client.http.impl.auth.AuthChallengeParser v;
org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt v, v;
org.apache.hc.core.http.message.BasicNameValuePair v, v, v;
int v, v, v, v, v, v, v, v;
java.lang.String v, v;
org.apache.hc.core.http.ParseException v, v;
char v, v;
java.util.BitSet v;
v := @this: org.apache.hc.client.http.impl.auth.AuthChallengeParser;
v := @parameter: java.lang.CharSequence;
v := @parameter: org.apache.hc.core.http.message.ParserCursor;
v := @parameter: org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt;
label:
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: org.apache.hc.core.util.Tokenizer tokenParser>;
virtualinvoke v.<org.apache.hc.core.util.Tokenizer: void skipWhiteSpace(java.lang.CharSequence,org.apache.hc.core.util.Tokenizer$Cursor)>(v, v);
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: boolean atEnd()>();
if v == 0 goto label;
return null;
label:
v = virtualinvoke v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: java.lang.String parseToken(java.lang.CharSequence,org.apache.hc.core.http.message.ParserCursor)>(v, v);
v = staticinvoke <org.apache.hc.core.util.TextUtils: boolean isBlank(java.lang.CharSequence)>(v);
if v == 0 goto label;
v = new org.apache.hc.core.http.ParseException;
specialinvoke v.<org.apache.hc.core.http.ParseException: void <init>(java.lang.String)>("Malformed auth challenge");
throw v;
label:
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: org.apache.hc.core.util.Tokenizer tokenParser>;
virtualinvoke v.<org.apache.hc.core.util.Tokenizer: void skipWhiteSpace(java.lang.CharSequence,org.apache.hc.core.util.Tokenizer$Cursor)>(v, v);
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: boolean atEnd()>();
if v == 0 goto label;
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt: java.util.List params>;
v = new org.apache.hc.core.http.message.BasicNameValuePair;
specialinvoke v.<org.apache.hc.core.http.message.BasicNameValuePair: void <init>(java.lang.String,java.lang.String)>(v, null);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: int getPos()>();
v = interfaceinvoke v.<java.lang.CharSequence: char charAt(int)>(v);
if v != 61 goto label;
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: int getPos()>();
v = v + 1;
virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: void updatePos(int)>(v);
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: org.apache.hc.core.util.Tokenizer tokenParser>;
v = <org.apache.hc.client.http.impl.auth.AuthChallengeParser: java.util.BitSet DELIMITER>;
v = virtualinvoke v.<org.apache.hc.core.util.Tokenizer: java.lang.String parseValue(java.lang.CharSequence,org.apache.hc.core.util.Tokenizer$Cursor,java.util.BitSet)>(v, v, v);
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: org.apache.hc.core.util.Tokenizer tokenParser>;
virtualinvoke v.<org.apache.hc.core.util.Tokenizer: void skipWhiteSpace(java.lang.CharSequence,org.apache.hc.core.util.Tokenizer$Cursor)>(v, v);
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: boolean atEnd()>();
if v != 0 goto label;
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: int getPos()>();
v = interfaceinvoke v.<java.lang.CharSequence: char charAt(int)>(v);
if v != 44 goto label;
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: int getPos()>();
v = v + 1;
virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: void updatePos(int)>(v);
label:
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt: java.util.List params>;
v = new org.apache.hc.core.http.message.BasicNameValuePair;
specialinvoke v.<org.apache.hc.core.http.message.BasicNameValuePair: void <init>(java.lang.String,java.lang.String)>(v, v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
if v != 44 goto label;
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: int getPos()>();
v = v + 1;
virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: void updatePos(int)>(v);
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt: java.util.List params>;
v = new org.apache.hc.core.http.message.BasicNameValuePair;
specialinvoke v.<org.apache.hc.core.http.message.BasicNameValuePair: void <init>(java.lang.String,java.lang.String)>(v, null);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
v = v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt: java.util.List params>;
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v == 0 goto label;
v = new org.apache.hc.core.http.ParseException;
specialinvoke v.<org.apache.hc.core.http.ParseException: void <init>(java.lang.String)>("Malformed auth challenge");
throw v;
label:
v = new org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt;
specialinvoke v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser$ChallengeInt: void <init>(java.lang.String)>(v);
return v;
}
java.lang.String parseToken(java.lang.CharSequence, org.apache.hc.core.http.message.ParserCursor)
{
org.apache.hc.core.http.message.ParserCursor v;
int v, v, v, v, v;
java.lang.String v;
boolean v, v, v;
java.lang.CharSequence v;
char v, v;
org.apache.hc.client.http.impl.auth.AuthChallengeParser v;
java.lang.StringBuilder v;
java.util.BitSet v;
v := @this: org.apache.hc.client.http.impl.auth.AuthChallengeParser;
v := @parameter: java.lang.CharSequence;
v := @parameter: org.apache.hc.core.http.message.ParserCursor;
v = new java.lang.StringBuilder;
specialinvoke v.<java.lang.StringBuilder: void <init>()>();
label:
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: boolean atEnd()>();
if v != 0 goto label;
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: int getPos()>();
v = interfaceinvoke v.<java.lang.CharSequence: char charAt(int)>(v);
v = <org.apache.hc.client.http.impl.auth.AuthChallengeParser: java.util.BitSet TERMINATORS>;
v = virtualinvoke v.<java.util.BitSet: boolean get(int)>(v);
if v == 0 goto label;
if v != 61 goto label;
v = v + 1;
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: int getUpperBound()>();
if v >= v goto label;
v = v + 1;
v = interfaceinvoke v.<java.lang.CharSequence: char charAt(int)>(v);
if v != 61 goto label;
label:
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(char)>(v);
v = v + 1;
virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: void updatePos(int)>(v);
v = virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: boolean atEnd()>();
if v != 0 goto label;
v = interfaceinvoke v.<java.lang.CharSequence: char charAt(int)>(v);
if v == 61 goto label;
goto label;
label:
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(char)>(v);
v = v + 1;
virtualinvoke v.<org.apache.hc.core.http.message.ParserCursor: void updatePos(int)>(v);
goto label;
label:
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.String toString()>();
return v;
}
static void <clinit>()
{
int[] v, v, v;
org.apache.hc.client.http.impl.auth.AuthChallengeParser v;
java.util.BitSet v, v, v;
v = new org.apache.hc.client.http.impl.auth.AuthChallengeParser;
specialinvoke v.<org.apache.hc.client.http.impl.auth.AuthChallengeParser: void <init>()>();
<org.apache.hc.client.http.impl.auth.AuthChallengeParser: org.apache.hc.client.http.impl.auth.AuthChallengeParser INSTANCE> = v;
v = newarray (int)[3];
v[0] = 32;
v[1] = 61;
v[2] = 44;
v = staticinvoke <org.apache.hc.core.util.Tokenizer: java.util.BitSet INIT_BITSET(int[])>(v);
<org.apache.hc.client.http.impl.auth.AuthChallengeParser: java.util.BitSet TERMINATORS> = v;
v = newarray (int)[1];
v[0] = 44;
v = staticinvoke <org.apache.hc.core.util.Tokenizer: java.util.BitSet INIT_BITSET(int[])>(v);
<org.apache.hc.client.http.impl.auth.AuthChallengeParser: java.util.BitSet DELIMITER> = v;
v = newarray (int)[1];
v[0] = 32;
v = staticinvoke <org.apache.hc.core.util.Tokenizer: java.util.BitSet INIT_BITSET(int[])>(v);
<org.apache.hc.client.http.impl.auth.AuthChallengeParser: java.util.BitSet SPACE> = v;
return;
}
}