Class SingleCredentialsProvider
java.lang.Object
org.apache.hc.client5.http.impl.auth.SingleCredentialsProvider
- All Implemented Interfaces:
CredentialsProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingleCredentialsProvider(AuthScope authScope, String username, char[] password) SingleCredentialsProvider(AuthScope authScope, Credentials credentials) -
Method Summary
Modifier and TypeMethodDescriptiongetCredentials(AuthScope authScope, org.apache.hc.core5.http.protocol.HttpContext context) Returnscredentialsfor the given authentication scope, if available.toString()
-
Field Details
-
authScope
-
credentials
-
-
Constructor Details
-
SingleCredentialsProvider
-
SingleCredentialsProvider
-
-
Method Details
-
getCredentials
public Credentials getCredentials(AuthScope authScope, org.apache.hc.core5.http.protocol.HttpContext context) Description copied from interface:CredentialsProviderReturnscredentialsfor the given authentication scope, if available.- Specified by:
getCredentialsin interfaceCredentialsProvider- Parameters:
authScope- theauthentication scopecontext- thehttp context- Returns:
- the credentials
-
toString
-