Package org.apache.hc.client5.http.auth
Interface CredentialsProvider
-
- All Known Subinterfaces:
CredentialsStore
- All Known Implementing Classes:
BasicCredentialsProvider
,FixedCredentialsProvider
,SingleCredentialsProvider
,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 Description Credentials
getCredentials(AuthScope authScope, org.apache.hc.core5.http.protocol.HttpContext context)
Returnscredentials
for the given authentication scope, if available.
-
-
-
Method Detail
-
getCredentials
Credentials getCredentials(AuthScope authScope, org.apache.hc.core5.http.protocol.HttpContext context)
Returnscredentials
for the given authentication scope, if available.- Parameters:
authScope
- theauthentication scope
context
- thehttp context
- Returns:
- the credentials
- Since:
- 5.0
-
-