org.apache.hc.client5.http.impl.auth

## Class BearerSchemeFactory

- java.lang.Object
- - org.apache.hc.client5.http.impl.auth.BearerSchemeFactory

- All Implemented Interfaces:
    AuthSchemeFactory

      @Contract(threading=STATELESS)
      public class BearerSchemeFactory
      extends Object
      implements AuthSchemeFactory

  `AuthSchemeFactory` implementation that creates and initializes `BearerScheme` instances.
  Since:
    5.3

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static BearerSchemeFactory` | `INSTANCE` Default instance of `BearerSchemeFactory`.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BearerSchemeFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `AuthScheme` | `create(org.apache.hc.core5.http.protocol.HttpContext context)` Creates an instance of `AuthScheme`.

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

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

- - ### Field Detail

    - #### INSTANCE

          public static final BearerSchemeFactory INSTANCE

      Default instance of `BearerSchemeFactory`.

  - ### Constructor Detail

    - #### BearerSchemeFactory

          public BearerSchemeFactory()

  - ### Method Detail

    - #### create

          public AuthScheme create(org.apache.hc.core5.http.protocol.HttpContext context)

      Description copied from interface: `AuthSchemeFactory`
      Creates an instance of `AuthScheme`.
      Specified by:
        `create` in interface `AuthSchemeFactory`
      Returns:
        auth scheme.

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