© 2002 BEA Systems, Inc.


com.bea.portal.appflow.processor.security
Class LoginFormProcessor

java.lang.Object
  |
  +--com.bea.portal.appflow.processor.AbstractPortalProcessor
        |
        +--com.bea.portal.appflow.processor.security.LoginFormProcessor

public class LoginFormProcessor
extends AbstractPortalProcessor

This processor validates (NOT authenticates) the login html form parameters. If the username/password don't meet the minimum validation criteria this processor will throw an InvalidFormDataException and the user will be redirected back to the login page with an appropriate message. The minimum and maximum lengths for a username and password can be set in the web.xml or you may create your own processor for validating username and passwords and register that processor in the portal.wf webflow file. This processor also checks to see if the user has checked the "remember username & password" check box on the login JSP. If it was checked this processor will return SecurityConstants.DROP_COOKIES, otherwise it just return SecurityConstants.LOGIN

See Also:
com.bea.portal.appflow.processor.security.SecurityConstants.DROP_COOKIES, com.bea.portal.appflow.processor.security.SecurityConstants.LOGIN

Constructor Summary
LoginFormProcessor()
           
 
Method Summary
 java.lang.Object process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PortalRequest portalRequest, java.lang.Object requestContext)
          Main process method called by webflow.
 
Methods inherited from class com.bea.portal.appflow.processor.AbstractPortalProcessor
getCurrentPortletState, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginFormProcessor

public LoginFormProcessor()
Method Detail

process

public java.lang.Object process(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                PortalRequest portalRequest,
                                java.lang.Object requestContext)
                         throws ProcessingException
Main process method called by webflow.

Returns:
SecurityConstants.DROP_COOKIES if the user selected "remember username & password", otherwise SecurityConstants.LOGIN
Overrides:
process in class AbstractPortalProcessor

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved