View RSS Feed

Apache Commons

Apache Commons lang, logging, HttpClient etc.

  1. Security aspects of server authentication

    by , 02-24-2012 at 08:04 PM
    To do communication with non-trusted web applications or websites, extra care shall be taken while using the default credentials. Activation of the preemptive authentication is done, or for a specific authentication when credentials have not been given explicitly and default credentials would be used by the host HttpClient so that to get authentication with the targeted site.

    To avoid giving the critical & sensitive credentials to some non-trustable website, you shall ...
  2. Apache Server Authentication

    by , 02-24-2012 at 08:00 PM
    Transparent mechanism is present in HttpClient for handling of the authentication. Login credentials are required for the development of application.

    • In HttpState instance, login credentials are being stored.
    • Use the setCredentials method to set these credentials.
    • Use the getCredentials method to retrieve these credentials.

    setDoAuthentication method is present in HttpMethod class. Automatic authorization is provided by it for the HttpClient. Changes ...