Package org.eclipse.jetty.client.api
Class Authentication.HeaderInfo
- java.lang.Object
-
- org.eclipse.jetty.client.api.Authentication.HeaderInfo
-
- Enclosing interface:
- Authentication
public static class Authentication.HeaderInfo extends Object
Structure holding information about theWWW-Authenticate(orProxy-Authenticate) header.
-
-
Constructor Summary
Constructors Constructor Description HeaderInfo(org.eclipse.jetty.http.HttpHeader header, String type, Map<String,String> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBase64()org.eclipse.jetty.http.HttpHeadergetHeader()StringgetParameter(String paramName)Map<String,String>getParameters()StringgetRealm()StringgetType()
-
-
-
Constructor Detail
-
HeaderInfo
public HeaderInfo(org.eclipse.jetty.http.HttpHeader header, String type, Map<String,String> params) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
-
Method Detail
-
getType
public String getType()
- Returns:
- the authentication type (for example "Basic" or "Digest")
-
getRealm
public String getRealm()
- Returns:
- the realm name or null if there is no realm parameter
-
getBase64
public String getBase64()
- Returns:
- the base64 content as a string if it exists otherwise null
-
getParameters
public Map<String,String> getParameters()
- Returns:
- additional authentication parameters
-
getParameter
public String getParameter(String paramName)
- Returns:
- specified authentication parameter or null if does not exist
-
getHeader
public org.eclipse.jetty.http.HttpHeader getHeader()
- Returns:
- the
Authorization(orProxy-Authorization) header
-
-