Package org.apache.juneau.http.header
Class WwwAuthenticate
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.HttpStringHeader
org.apache.juneau.http.header.WwwAuthenticate
- All Implemented Interfaces:
HttpHeader
Represents an HTTP WWW-Authenticate header.
Indicates the authentication scheme that should be used to access the requested entity.
See Also:
- Since:
- 9.2.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent builder for assembling an HTTPWWW-Authenticate challenge value. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWwwAuthenticate(String value) Constructor with an eager value.WwwAuthenticate(Supplier<String> valueSupplier) Constructor with a lazy value supplier. -
Method Summary
Modifier and TypeMethodDescriptionstatic WwwAuthenticate.BuilderCreates aWwwAuthenticate.Builderpre-populated with aBasic challenge for the given realm.static WwwAuthenticate.Builderbearer()Creates aWwwAuthenticate.Builderpre-populated with aBearer challenge.static WwwAuthenticate.Buildercreate()Creates a new emptyWwwAuthenticate.Builder.static WwwAuthenticate.Builderdigest()Creates aWwwAuthenticate.Builderpre-populated with aDigest challenge.static WwwAuthenticateStatic factory method with an eager value.static WwwAuthenticateStatic factory method with a lazy value supplier.Methods inherited from class org.apache.juneau.http.header.HttpStringHeader
of, of, ofPairMethods inherited from class org.apache.juneau.http.header.HttpHeaderBean
equals, equalsIgnoreCase, getName, getValue, hashCode, toString
-
Field Details
-
NAME
The header name- See Also:
-
-
Constructor Details
-
WwwAuthenticate
Constructor with an eager value.- Parameters:
value- The header value. May benull .
-
WwwAuthenticate
Constructor with a lazy value supplier.- Parameters:
valueSupplier- Supplier for the header value. Must not benull .
-
-
Method Details
-
of
Static factory method with an eager value.- Parameters:
value- The header value. May benull .- Returns:
- A new instance. Never
null .
-
of
Static factory method with a lazy value supplier.- Parameters:
valueSupplier- Supplier for the header value. Must not benull .- Returns:
- A new instance. Never
null .
-
create
Creates a new emptyWwwAuthenticate.Builder.- Returns:
- A new builder. Never
null .
-
basic
Creates aWwwAuthenticate.Builderpre-populated with aBasic challenge for the given realm.- Parameters:
realm- The protection space realm. Must not benull .- Returns:
- A new builder. Never
null .
-
bearer
Creates aWwwAuthenticate.Builderpre-populated with aBearer challenge.- Returns:
- A new builder. Never
null .
-
digest
Creates aWwwAuthenticate.Builderpre-populated with aDigest challenge.- Returns:
- A new builder. Never
null .
-