@Header(value="WWW-Authenticate") public class WwwAuthenticate extends BasicStringHeader
Indicates the authentication scheme that should be used to access the requested entity.
WWW-Authenticate: Basic
WWW-Authenticate = "WWW-Authenticate" ":" 1#challenge
The HTTP access authentication process is described in "HTTP Authentication: Basic and Digest Access Authentication". User agents are advised to take special care in parsing the WWW-Authenticate field value as it might contain more than one challenge, or if more than one WWW-Authenticate header field is provided, the contents of a challenge itself can contain a comma-separated list of authentication parameters.
Constructor and Description |
---|
WwwAuthenticate(Object value)
Constructor.
|
WwwAuthenticate(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static WwwAuthenticate |
of(Object value)
Convenience creator.
|
static WwwAuthenticate |
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 WwwAuthenticate(Object value)
public WwwAuthenticate(String value)
value
- The header value.public static WwwAuthenticate of(Object value)
value
- The header value.
String
WwwAuthenticate
object.public static WwwAuthenticate of(Supplier<?> value)
Header value is re-evaluated on each call to BasicStringHeader.getValue()
.
value
- The header value supplier.
String
WwwAuthenticate
object.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.