Top Description Inners Fields Constructors Methods
org.apache.hc.client5.http.impl.auth

public Class AuthChallengeParser

extends Object
Class Inheritance
Imports
java.util.ArrayList, .BitSet, .List, org.apache.hc.client5.http.auth.AuthChallenge, .ChallengeType, org.apache.hc.core5.http.NameValuePair, .ParseException, org.apache.hc.core5.http.message.BasicNameValuePair, .ParserCursor, org.apache.hc.core5.util.TextUtils, .Tokenizer

Authentication challenge parser.
Since
5.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final char
private static final char
private static final BitSet
private static final char
public static final AuthChallengeParser
private static final BitSet
private static final BitSet
private final Tokenizer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<AuthChallenge>

Returns:

a list of auth challenge elements.
parse
(final ChallengeType
the type of challenge (target or proxy).
challengeType
,
final CharSequence
the sequence of characters to be parsed.
buffer
,
final ParserCursor
the parser cursor.
cursor
)

Parses the given sequence of characters into a list of AuthChallenge elements.

pack-priv AuthChallengeParser.ChallengeInt
parseChallenge(final CharSequence buffer, final ParserCursor cursor, final AuthChallengeParser.ChallengeInt currentChallenge)

pack-priv String
parseToken(final CharSequence buf, final ParserCursor cursor)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BLANKback to summary
private static final char BLANK
COMMA_CHARback to summary
private static final char COMMA_CHAR
DELIMITERback to summary
private static final BitSet DELIMITER
EQUAL_CHARback to summary
private static final char EQUAL_CHAR
INSTANCEback to summary
public static final AuthChallengeParser INSTANCE
SPACEback to summary
private static final BitSet SPACE
TERMINATORSback to summary
private static final BitSet TERMINATORS
tokenParserback to summary
private final Tokenizer tokenParser

Constructor Detail

AuthChallengeParserback to summary
public AuthChallengeParser()

Method Detail

parseback to summary
public List<AuthChallenge> parse(final ChallengeType challengeType, final CharSequence buffer, final ParserCursor cursor) throws ParseException

Parses the given sequence of characters into a list of AuthChallenge elements.

Parameters
challengeType:ChallengeType

the type of challenge (target or proxy).

buffer:CharSequence

the sequence of characters to be parsed.

cursor:ParserCursor

the parser cursor.

Returns:List<AuthChallenge>

a list of auth challenge elements.

parseChallengeback to summary
pack-priv AuthChallengeParser.ChallengeInt parseChallenge(final CharSequence buffer, final ParserCursor cursor, final AuthChallengeParser.ChallengeInt currentChallenge) throws ParseException
parseTokenback to summary
pack-priv String parseToken(final CharSequence buf, final ParserCursor cursor)
org.apache.hc.client5.http.impl.auth back to summary

pack-priv Class AuthChallengeParser.ChallengeInt

extends Object
Class Inheritance
  • java.lang.Object
  • org.apache.hc.client5.http.impl.auth.AuthChallengeParser.ChallengeInt

Field Summary

Modifier and TypeField and Description
pack-priv final List<NameValuePair>
pack-priv final String

Constructor Summary

AccessConstructor and Description
pack-priv
ChallengeInt(final String schemeName)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

paramsback to summary
pack-priv final List<NameValuePair> params
schemeNameback to summary
pack-priv final String schemeName

Constructor Detail

ChallengeIntback to summary
pack-priv ChallengeInt(final String schemeName)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override