code: public String getBrowserBasedAuthenticationMechanism() {
  
          if (m_useBrowserBasedHttpAuthentication) {
              return AUTHENTICATION_BASIC;
          } else if (m_browserBasedAuthenticationMechanism != null) {
              return m_browserBasedAuthenticationMechanism;
          } else if (m_formBasedHttpAuthenticationUri != null) {
              return AUTHENTICATION_FORM;
          } else {
              return null;
          }
      }
docs: Returns the browser based authentication mechanism or <code>null</code> if unused.
  
  @return "BASIC" in case of browser based basic authentication, "FORM" in case of form based authentication or the alternative mechanism or <code>null</code> if unused.