public final class Authorization extends HeaderString
Authentication credentials for HTTP authentication.
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.
Authorization = "Authorization" ":" credentials
HTTP access authentication is described in "HTTP Authentication: Basic and Digest Access Authentication".
If a request is authenticated and a realm specified, the same credentials SHOULD be valid for all other requests within this realm (assuming that the authentication scheme itself does not require otherwise, such as credentials that vary according to a challenge value or using synchronized clocks).
When a shared cache (see section 13.7) receives a request containing an Authorization field, it MUST NOT return the corresponding response as a reply to any other request, unless one of the following specific exceptions holds:
Modifier and Type | Method and Description |
---|---|
static Authorization |
forString(String value)
Returns a parsed
Authorization header. |
asString, eq, eqIC, toString
public static Authorization forString(String value)
Authorization
header.value
- The Authorization
header string.Authorization
header, or Copyright © 2018 Apache. All rights reserved.