Class Challenge
- java.lang.Object
-
- org.sblim.cimclient.internal.http.Challenge
-
public class Challenge extends java.lang.ObjectClass Challenge holds a http authentication challenge
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpHeadergetParams()Returns the parametersjava.lang.StringgetRealm()Returns the realmjava.lang.StringgetScheme()Returns the schemestatic Challenge[]parseChallenge(java.lang.String pLine)Parses the challenge as received from the host.
-
-
-
Method Detail
-
getParams
public HttpHeader getParams()
Returns the parameters- Returns:
- The parameters
-
getScheme
public java.lang.String getScheme()
Returns the scheme- Returns:
- The scheme
-
getRealm
public java.lang.String getRealm()
Returns the realm- Returns:
- The realm
-
parseChallenge
public static Challenge[] parseChallenge(java.lang.String pLine) throws HttpParseException
Parses the challenge as received from the host. RFC 2617 defines the following syntax for a challenge:challenge = auth-scheme 1*SP 1#auth-param auth-scheme = token auth-param = token "=" ( token | quoted-string )
- Parameters:
pLine- The challenge string- Returns:
- The parsed challenge
- Throws:
HttpParseException- If the challenge string is ill-formed
-
-