Interface AbstractCredentialsAgent.CredentialsProvider

Enclosing class:
AbstractCredentialsAgent
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Synchronous credentials provider. Called if no credentials are cached. Can be used for user login prompt.
Since:
12821
  • Method Details

    • provideCredentials

      void provideCredentials(Authenticator.RequestorType requestorType, AbstractCredentialsAgent agent, CredentialsAgentResponse response, String username, String password, String host)
      Fills the given response with appropriate user credentials.
      Parameters:
      requestorType - type of the entity requesting authentication
      agent - the credentials agent requesting credentials
      response - authentication response to fill
      username - the known username, if any. Likely to be empty
      password - the known password, if any. Likely to be empty
      host - the host against authentication will be performed