@Header(value="Proxy-Authenticate") public class ProxyAuthenticate extends BasicStringHeader
Request authentication to access the proxy.
Proxy-Authenticate: Basic
Proxy-Authenticate = "Proxy-Authenticate" ":" 1#challenge
The HTTP access authentication process is described in "HTTP Authentication: Basic and Digest Access Authentication". Unlike WWW-Authenticate, the Proxy-Authenticate header field applies only to the current connection and SHOULD NOT be passed on to downstream clients. However, an intermediate proxy might need to obtain its own credentials by requesting them from the downstream client, which in some circumstances will appear as if the proxy is forwarding the Proxy-Authenticate header field.
Constructor and Description |
---|
ProxyAuthenticate(Object value)
Constructor.
|
ProxyAuthenticate(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static ProxyAuthenticate |
of(Object value)
Convenience creator.
|
static ProxyAuthenticate |
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 ProxyAuthenticate(Object value)
public ProxyAuthenticate(String value)
value
- The header value.public static ProxyAuthenticate of(Object value)
value
- The header value.
String
ProxyAuthenticate
object.public static ProxyAuthenticate of(Supplier<?> value)
Header value is re-evaluated on each call to BasicStringHeader.getValue()
.
value
- The header value supplier.
String
ProxyAuthenticate
object.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.