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

pack-priv final Class FixedCredentialsProvider

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

Field Summary

Modifier and TypeField and Description
private final Map<AuthScope, Credentials>

Constructor Summary

AccessConstructor and Description
public

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

credMapback to summary
private final Map<AuthScope, Credentials> credMap

Constructor Detail

FixedCredentialsProviderback to summary
public FixedCredentialsProvider(final Map<AuthScope, Credentials> credMap)

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