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) Returnscredentials
for 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:CredentialsProvider
Returnscredentials
for the given authentication scope, if available.- Specified by:
getCredentials
in interfaceCredentialsProvider
- Parameters:
authScope
- theauthentication scope
context
- thehttp context
- Returns:
- the credentials
-
toString
-