org.apache.hc.client5.testing.auth

## Class BearerAuthenticationHandler

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

- All Implemented Interfaces:
    AuthenticationHandler<String>

      public class BearerAuthenticationHandler
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BearerAuthenticationHandler()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `challenge(List<org.apache.hc.core5.http.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

    - #### BearerAuthenticationHandler

          public BearerAuthenticationHandler()

  - ### Method Detail

    - #### challenge

          public final String challenge(List<org.apache.hc.core5.http.NameValuePair> params)

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

    - #### extractAuthToken

          public final String extractAuthToken(String challengeResponse)
                                        throws org.apache.hc.core5.http.HttpException

      Specified by:
        `extractAuthToken` in interface `AuthenticationHandler<String>`
      Throws:
        `org.apache.hc.core5.http.HttpException`

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