org.apache.hc.client5.testing.auth

## Class BasicAuthenticationHandler

- java.lang.Object
- - org.apache.hc.client5.testing.auth.BasicAuthenticationHandler

- All Implemented Interfaces:
    AuthenticationHandler<String>

      public class BasicAuthenticationHandler
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasicAuthenticationHandler()` Deprecated. Use `BasicAuthenticationHandler(Charset)`
    `BasicAuthenticationHandler(Charset charset)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `challenge(List<NameValuePair> params)`
    `String` | `extractAuthToken(String challengeResponse)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasicAuthenticationHandler

          public BasicAuthenticationHandler(Charset charset)

      Since:
        5.3

    - #### BasicAuthenticationHandler

          @Deprecated
          public BasicAuthenticationHandler()

      Deprecated. Use `BasicAuthenticationHandler(Charset)`

  - ### Method Detail

    - #### challenge

          public final String challenge(List<NameValuePair> params)

      Specified by:
        `challenge` in interface `AuthenticationHandler<String>`

    - #### extractAuthToken

          public final String extractAuthToken(String challengeResponse)
                                        throws HttpException

      Specified by:
        `extractAuthToken` in interface `AuthenticationHandler<String>`
      Throws:
        `HttpException`

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.