Top Fields Constructors Methods
org.apache.hc.client5.http.impl.auth

pack-priv final Class SingleCredentialsProvider

extends Object
implements CredentialsProvider
Class Inheritance
All Implemented Interfaces
org.apache.hc.client5.http.auth.CredentialsProvider
Imports
org.apache.hc.client5.http.auth.AuthScope, .Credentials, .CredentialsProvider, .UsernamePasswordCredentials, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.util.Args

Field Summary

Modifier and TypeField and Description
private final AuthScope
private final Credentials

Constructor Summary

AccessConstructor and Description
public
SingleCredentialsProvider(final AuthScope authScope, final Credentials credentials)

public
SingleCredentialsProvider(final AuthScope authScope, final String username, final char[] password)

Method Summary

Modifier and TypeMethod and Description
public Credentials
getCredentials(final AuthScope authScope, final HttpContext context)

Implements org.apache.hc.client5.http.auth.CredentialsProvider.getCredentials.

Returns credentials for the given authentication scope, if available.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

authScopeback to summary
private final AuthScope authScope
credentialsback to summary
private final Credentials credentials

Constructor Detail

SingleCredentialsProviderback to summary
public SingleCredentialsProvider(final AuthScope authScope, final Credentials credentials)
SingleCredentialsProviderback to summary
public SingleCredentialsProvider(final AuthScope authScope, final String username, final char[] password)

Method Detail

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

Implements org.apache.hc.client5.http.auth.CredentialsProvider.getCredentials.

Doc from org.apache.hc.client5.http.auth.CredentialsProvider.getCredentials.

Returns credentials for the given authentication scope, if available.

Parameters
authScope:AuthScope

the authentication scope

context:HttpContext

the http context

Returns:Credentials

the credentials

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override