Package org.apache.juneau.http.header
Class ProxyAuthorization
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.HttpStringHeader
org.apache.juneau.http.header.ProxyAuthorization
- All Implemented Interfaces:
HttpHeader
Represents an HTTP Proxy-Authorization header.
Authorization credentials for connecting to a proxy.
See Also:
- Since:
- 9.2.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent builder for assembling an HTTPProxy-Authorization credentials value. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProxyAuthorization(String value) Constructor with an eager value.ProxyAuthorization(Supplier<String> valueSupplier) Constructor with a lazy value supplier. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyAuthorization.BuilderCreates aProxyAuthorization.Builderpre-populated withBasic credentials (base64 ofuser:password ).static ProxyAuthorization.BuilderCreates aProxyAuthorization.Builderpre-populated withBearer credentials.static ProxyAuthorization.Buildercreate()Creates a new emptyProxyAuthorization.Builder.static ProxyAuthorization.Builderdigest()Creates aProxyAuthorization.Builderpre-populated with aDigest scheme.static ProxyAuthorizationStatic factory method with an eager value.static ProxyAuthorizationStatic 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
-
ProxyAuthorization
Constructor with an eager value.- Parameters:
value- The header value. May benull .
-
ProxyAuthorization
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 emptyProxyAuthorization.Builder.- Returns:
- A new builder. Never
null .
-
basic
Creates aProxyAuthorization.Builderpre-populated withBasic credentials (base64 ofuser:password ).- Parameters:
user- The username. Must not benull .password- The password. Must not benull .- Returns:
- A new builder. Never
null .
-
bearer
Creates aProxyAuthorization.Builderpre-populated withBearer credentials.- Parameters:
token- The bearer token. Must not benull .- Returns:
- A new builder. Never
null .
-
digest
Creates aProxyAuthorization.Builderpre-populated with aDigest scheme.- Returns:
- A new builder. Never
null .
-