class BasicAuthConfigurer {

    public void configure(ConfigurerParameters parameters)
    {
        SecurityComponentsProvider securityProvider = parameters.getProvider();
        String host = parameters.getHost();
        String serverKey = parameters.getServerKey();
        Supplier<? extends Component> parentComponent = parameters.getParentComponent();
        SecurityManager securityManager = parameters.getSecurityManager();

        HttpClient client = parameters.getClient();
        int port = parameters.getPort();

        CredentialsProvider credentialsProvider = client.getOptions().getCredentialsProvider();
        credentialsProvider.setCredentials(new AuthenticationScope(host, port),
                securityProvider.getUserCredentials(host, serverKey, parentComponent, securityManager));
    }

}