org.rhq.enterprise.gui.authentication
Class AuthenticateUserAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.apache.struts.tiles.actions.TilesAction
          extended by org.rhq.enterprise.gui.authentication.AuthenticateUserAction

public class AuthenticateUserAction
extends org.apache.struts.tiles.actions.TilesAction

Authenticates the web user's credentials and establishes his identity.


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
AuthenticateUserAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static boolean usingLDAPAuthentication(javax.servlet.ServletContext context)
          This returns true if the RHQ Server has been configured to allow for authentication via LDAP.
 
Methods inherited from class org.apache.struts.tiles.actions.TilesAction
execute
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticateUserAction

public AuthenticateUserAction()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws Exception
Overrides:
execute in class org.apache.struts.tiles.actions.TilesAction
Throws:
Exception
See Also:
TilesAction.execute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse)

usingLDAPAuthentication

public static boolean usingLDAPAuthentication(javax.servlet.ServletContext context)
                                       throws Exception
This returns true if the RHQ Server has been configured to allow for authentication via LDAP. false if only database authentication is available.

Parameters:
context -
Returns:
true if LDAP authentication is allowed
Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.