Class ProxyAuthenticate

All Implemented Interfaces:
Serializable, Cloneable, Header, NameValuePair

@Header("Proxy-Authenticate") public class ProxyAuthenticate extends BasicStringHeader
Represents a parsed Proxy-Authenticate HTTP response header.

Request authentication to access the proxy.

Example

Proxy-Authenticate: Basic

RFC2616 Specification
The Proxy-Authenticate response-header field MUST be included as part of a 407 (Proxy Authentication Required) response. The field value consists of a challenge that indicates the authentication scheme and parameters applicable to the proxy for this Request-URI.

Proxy-Authenticate = "Proxy-Authenticate" ":" 1#challenge

The HTTP access authentication process is described in "HTTP Authentication: Basic and Digest Access Authentication". Unlike WWW-Authenticate, the Proxy-Authenticate header field applies only to the current connection and SHOULD NOT be passed on to downstream clients. However, an intermediate proxy might need to obtain its own credentials by requesting them from the downstream client, which in some circumstances will appear as if the proxy is forwarding the Proxy-Authenticate header field.

See Also:
  • Constructor Details

  • Method Details

    • of

      public static ProxyAuthenticate of(String value)
      Static creator.
      Parameters:
      value - The header value.
      Can be null.
      Returns:
      A new header bean, or null if the value is null.
    • of

      public static ProxyAuthenticate of(Supplier<String> value)
      Static 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 is null.