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