Interface CredentialsProvider

  • All Known Subinterfaces:
    CredentialsStore
    All Known Implementing Classes:
    BasicCredentialsProvider, SystemDefaultCredentialsProvider

    public interface CredentialsProvider
    Provider 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 Detail

      • getCredentials

        Credentials getCredentials​(AuthScope authScope,
                                   org.apache.hc.core5.http.protocol.HttpContext context)
        Returns credentials for the given authentication scope, if available.
        Parameters:
        authScope - the authentication scope
        context - the http context
        Returns:
        the credentials
        Since:
        5.0