Class ProxyAuthorization
- All Implemented Interfaces:
- Serializable,- Cloneable,- Header,- NameValuePair
Authorization credentials for connecting to a proxy.
Example
Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
RFC2616 Specification
The Proxy-Authorization request-header field allows the client to identify itself (or its user) to a proxy which requires authentication. The Proxy-Authorization field value consists of credentials containing the authentication information of the user agent for the proxy and/or realm of the resource being requested.Proxy-Authorization = "Proxy-Authorization" ":" credentials
The HTTP access authentication process is described in "HTTP Authentication: Basic and Digest Access Authentication". Unlike Authorization, the Proxy-Authorization header field applies only to the next outbound proxy that demanded authentication using the Proxy-Authenticate field. When multiple proxies are used in a chain, the Proxy-Authorization header field is consumed by the first outbound proxy that was expecting to receive credentials. A proxy MAY relay the credentials from the client request to the next proxy if that is the mechanism by which the proxies cooperatively authenticate a given request.
See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionProxyAuthorization(String value) Constructor.ProxyAuthorization(Supplier<String> value) Constructor with delayed value.
- 
Method SummaryModifier and TypeMethodDescriptionstatic ProxyAuthorizationStatic creator.static ProxyAuthorizationStatic creator with delayed value.Methods inherited from class org.apache.juneau.http.header.BasicStringHeaderassertString, asString, getValue, of, of, ofPair, orElseMethods inherited from class org.apache.juneau.http.header.BasicHeaderassertName, assertStringValue, equals, equalsIgnoreCase, get, getElements, getName, hashCode, isNotEmpty, isPresent, of, of, toString
- 
Constructor Details- 
ProxyAuthorizationConstructor.- Parameters:
- value- The header value.
 Can be- null .
 
- 
ProxyAuthorizationConstructor with delayed value.Header value is re-evaluated on each call to BasicStringHeader.getValue().- Parameters:
- value- The supplier of the header value.
 Can be- null .
 
 
- 
- 
Method Details- 
ofStatic creator.- Parameters:
- value- The header value.
 Can be- null .
- Returns:
- A new header bean, or null if the value isnull .
 
- 
ofStatic creator with delayed value.Header value is re-evaluated on each call to BasicStringHeader.getValue().- Parameters:
- value- The supplier of the header value.
 Can be- null .
- Returns:
- A new header bean, or null if the value isnull .
 
 
-