Interface HttpAuthentication


public interface HttpAuthentication
Represents a supported method of HTTP authentication, including proxy authentication.
Since:
4.13.0
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  HttpAuthentication.Challenge
    Properties of an HTTP authentication challenge.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String provideAuthorization​(java.lang.Iterable<HttpAuthentication.Challenge> challenges)
    Computes the Authorization or Proxy-Authorization header for an authentication challenge.
  • Method Details

    • provideAuthorization

      java.lang.String provideAuthorization​(java.lang.Iterable<HttpAuthentication.Challenge> challenges)
      Computes the Authorization or Proxy-Authorization header for an authentication challenge.
      Parameters:
      challenges - the authentication challenges provided by the server, if any (may be empty if this is pre-emptive authentication)
      Returns:
      the value for the authorization request header