Top Description Methods
org.apache.hc.client5.http.auth

public Interface CredentialsProvider

Known Direct Subinterfaces
org.apache.hc.client5.http.auth.CredentialsStore
Known Direct Implementers
org.apache.hc.client5.http.impl.auth.FixedCredentialsProvider, org.apache.hc.client5.http.impl.auth.SingleCredentialsProvider
Imports
org.apache.hc.core5.http.protocol.HttpContext

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

Modifier and TypeMethod and Description
public Credentials

Returns:

the credentials
getCredentials
(AuthScope authScope, HttpContext context)

Returns credentials for the given authentication scope, if available.

Method Detail

getCredentialsback to summary
public Credentials getCredentials(AuthScope authScope, HttpContext context)

Returns credentials for the given authentication scope, if available.

Parameters
authScope:AuthScope

the authentication scope

context:HttpContext

the http context

Returns:Credentials

the credentials

Since
5.0