@Header(value="Proxy-Authorization") public class ProxyAuthorization extends BasicStringHeader
Authorization credentials for connecting to a proxy.
Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Proxy-Authorization = "Proxy-Authorization" ":" credentials
The HTTP access authentication process is described in "HTTP Authentication: Basic and Digest Access Authentication". Unlike Authorization, the Proxy-Authorization header field applies only to the next outbound proxy that demanded authentication using the Proxy-Authenticate field. When multiple proxies are used in a chain, the Proxy-Authorization header field is consumed by the first outbound proxy that was expecting to receive credentials. A proxy MAY relay the credentials from the client request to the next proxy if that is the mechanism by which the proxies cooperatively authenticate a given request.
Constructor and Description |
---|
ProxyAuthorization(Object value)
Constructor.
|
ProxyAuthorization(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static ProxyAuthorization |
of(Object value)
Convenience creator.
|
static ProxyAuthorization |
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 ProxyAuthorization(Object value)
public ProxyAuthorization(String value)
value
- The header value.public static ProxyAuthorization of(Object value)
value
- The header value.
String
ProxyAuthorization
object.public static ProxyAuthorization of(Supplier<?> value)
Header value is re-evaluated on each call to BasicStringHeader.getValue()
.
value
- The header value supplier.
String
ProxyAuthorization
object.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.