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

## Class SPNegoSchemeFactory

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

- All Implemented Interfaces:
    AuthSchemeFactory

  Deprecated.
  Do not use. The GGS based experimental authentication schemes are no longer supported. Consider using Basic or Bearer authentication with TLS instead.

      @Deprecated
       @Contract(threading=STATELESS)
       @Experimental
      public class SPNegoSchemeFactory
      extends Object
      implements AuthSchemeFactory

  `AuthSchemeFactory` implementation that creates and initializes `SPNegoScheme` instances.

  Please note this class is considered experimental and may be discontinued or removed in the future.

  Since:
    4.2
  See Also:
    `BasicSchemeFactory`, `BearerSchemeFactory`

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static SPNegoSchemeFactory` | `DEFAULT` Deprecated. Singleton instance for the default configuration.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SPNegoSchemeFactory(KerberosConfig config, DnsResolver dnsResolver)` Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `AuthScheme` | `create(HttpContext context)` Deprecated. 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

    - #### DEFAULT

          public static final SPNegoSchemeFactory DEFAULT

      Deprecated.
      Singleton instance for the default configuration.

  - ### Constructor Detail

    - #### SPNegoSchemeFactory

          public SPNegoSchemeFactory(KerberosConfig config,
                                     DnsResolver dnsResolver)

      Deprecated.
      Since:
        5.0

  - ### Method Detail

    - #### create

          public AuthScheme create(HttpContext context)

      Deprecated.
      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.