Class AuthenticationManager


  • public class AuthenticationManager
    extends java.lang.Object
    The AuthenticationManager handle basic HTTP authentication.
    Author:
    Tim Roes
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearAuthData()
      Clear the username and password.
      void setAuthData​(java.lang.String user, java.lang.String pass)
      Set the username and password that should be used to perform basic http authentication.
      void setAuthentication​(java.net.HttpURLConnection http)
      Set the authentication at the HttpURLConnection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthenticationManager

        public AuthenticationManager()
    • Method Detail

      • clearAuthData

        public void clearAuthData()
        Clear the username and password. No basic HTTP authentication will be used in the next calls.
      • setAuthData

        public void setAuthData​(java.lang.String user,
                                java.lang.String pass)
        Set the username and password that should be used to perform basic http authentication.
        Parameters:
        user - Username
        pass - Password
      • setAuthentication

        public void setAuthentication​(java.net.HttpURLConnection http)
        Set the authentication at the HttpURLConnection.
        Parameters:
        http - The HttpURLConnection to set authentication.