Top Description Methods
org.apache.hc.client5.http.auth

public Interface CredentialsStore

extends CredentialsProvider
Known Direct Implementers
org.apache.hc.client5.http.impl.auth.BasicCredentialsProvider, org.apache.hc.client5.http.impl.auth.SystemDefaultCredentialsProvider

Abstract store 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

Modifier and TypeMethod and Description
public void
clear()

Clears all credentials.

public void
setCredentials(AuthScope authScope, Credentials
the authentication credentials for the given scope.
credentials
)

Sets the credentials for the given authentication scope.

Inherited from org.apache.hc.client5.http.auth.CredentialsProvider:
getCredentials

Method Detail

clearback to summary
public void clear()

Clears all credentials.

setCredentialsback to summary
public void setCredentials(AuthScope authScope, Credentials credentials)

Sets the credentials for the given authentication scope. Any previous credentials for the given scope will be overwritten.

Parameters
authScope:AuthScope

the authentication scope

credentials:Credentials

the authentication credentials for the given scope.

See Also
getCredentials(AuthScope, org.apache.hc.core5.http.protocol.HttpContext)