Package org.eclipse.jetty.client
Class Authentication.HeaderInfo
java.lang.Object
org.eclipse.jetty.client.Authentication.HeaderInfo
- Enclosing interface:
- Authentication
Structure holding information about the
WWW-Authenticate
(or Proxy-Authenticate
) header.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HeaderInfo
public HeaderInfo(HttpHeader header, String type, Map<String, String> params) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
-
Method Details
-
getType
- Returns:
- the authentication type (for example "Basic" or "Digest")
-
getRealm
- Returns:
- the realm name or null if there is no realm parameter
-
getBase64
- Returns:
- the base64 content as a string if it exists otherwise null
-
getParameters
- Returns:
- additional authentication parameters
-
getParameter
- Returns:
- specified authentication parameter or null if does not exist
-
getHeader
- Returns:
- the
Authorization
(orProxy-Authorization
) header
-