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.

    @FunctionalInterface
    public static interface AbstractCredentialsAgent.CredentialsProvider
    Synchronous credentials provider. Called if no credentials are cached. Can be used for user login prompt.
    Since:
    12821
    • Method Detail

      • provideCredentials

        void provideCredentials​(java.net.Authenticator.RequestorType requestorType,
                                AbstractCredentialsAgent agent,
                                CredentialsAgentResponse response,
                                java.lang.String username,
                                java.lang.String password,
                                java.lang.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