Package org.apache.juneau.http.header
Class ProxyAuthenticate
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.HttpStringHeader
org.apache.juneau.http.header.ProxyAuthenticate
- All Implemented Interfaces:
HttpHeader
Represents an HTTP Proxy-Authenticate header.
Request authentication to access the proxy.
See Also:
- Since:
- 9.2.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent builder for assembling an HTTPProxy-Authenticate challenge value. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProxyAuthenticate(String value) Constructor with an eager value.ProxyAuthenticate(Supplier<String> valueSupplier) Constructor with a lazy value supplier. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyAuthenticate.BuilderCreates aProxyAuthenticate.Builderpre-populated with aBasic challenge for the given realm.static ProxyAuthenticate.Builderbearer()Creates aProxyAuthenticate.Builderpre-populated with aBearer challenge.static ProxyAuthenticate.Buildercreate()Creates a new emptyProxyAuthenticate.Builder.static ProxyAuthenticate.Builderdigest()Creates aProxyAuthenticate.Builderpre-populated with aDigest challenge.static ProxyAuthenticateStatic factory method with an eager value.static ProxyAuthenticateStatic 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
-
ProxyAuthenticate
Constructor with an eager value.- Parameters:
value- The header value. May benull .
-
ProxyAuthenticate
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 emptyProxyAuthenticate.Builder.- Returns:
- A new builder. Never
null .
-
basic
Creates aProxyAuthenticate.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 aProxyAuthenticate.Builderpre-populated with aBearer challenge.- Returns:
- A new builder. Never
null .
-
digest
Creates aProxyAuthenticate.Builderpre-populated with aDigest challenge.- Returns:
- A new builder. Never
null .
-