org.apache.hc.client5.http.auth

## Interface CredentialsProvider

- All Known Subinterfaces:
    CredentialsStore
  All Known Implementing Classes:
    BasicCredentialsProvider, SystemDefaultCredentialsProvider

      public interface CredentialsProvider

  Provider of authentication credentials.

  Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.

  Since:
    4.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Credentials` | `getCredentials(AuthScope authScope, HttpContext context)` Returns `credentials` for the given authentication scope, if available.

- - ### Method Detail

    - #### getCredentials

          Credentials getCredentials(AuthScope authScope,
                                     HttpContext context)

      Returns `credentials` for the given authentication scope, if available.
      Parameters:
        `authScope` - the `authentication scope`
        `context` - the `http context`
      Returns:
        the credentials
      Since:
        5.0

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