@Header(value="Authorization") public class Authorization extends BasicStringHeader
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:
Constructor and Description |
---|
Authorization(Object value)
Constructor.
|
Authorization(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static Authorization |
of(Object value)
Convenience creator.
|
static Authorization |
of(Supplier<?> value)
Convenience creator using supplier.
|
assertString, getValue, of, of
assertName, assertValue, canCast, cast, eqIC, equals, getElements, getName, getRawValue, hashCode, isSupplier, of, ofPair, toString, unwrap
public Authorization(Object value)
public Authorization(String value)
value
- The header value.public static Authorization of(Object value)
value
- The header value.
String
Authorization
object.public static Authorization of(Supplier<?> value)
Header value is re-evaluated on each call to BasicStringHeader.getValue()
.
value
- The header value supplier.
String
Authorization
object.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.