org.jasig.cas.web.flow
Class AuthenticationViaFormAction

java.lang.Object
  extended by org.springframework.webflow.action.AbstractAction
      extended by org.springframework.webflow.action.MultiAction
          extended by org.springframework.webflow.action.FormAction
              extended by org.jasig.cas.web.flow.AuthenticationViaFormAction
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.webflow.execution.Action

public class AuthenticationViaFormAction
extends org.springframework.webflow.action.FormAction

Action to authenticate credentials and retrieve a TicketGrantingTicket for those credentials. If there is a request for renew, then it also generates the Service Ticket required.

Since:
3.0.4
Version:
$Revision: 42776 $ $Date: 2008-01-04 09:15:42 -0500 (Fri, 04 Jan 2008) $
Author:
Scott Battaglia

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.webflow.action.MultiAction
org.springframework.webflow.action.MultiAction.MethodResolver
 
Field Summary
 
Fields inherited from class org.springframework.webflow.action.FormAction
DEFAULT_FORM_OBJECT_NAME, VALIDATOR_METHOD_ATTRIBUTE
 
Fields inherited from class org.springframework.webflow.action.AbstractAction
logger
 
Constructor Summary
AuthenticationViaFormAction()
           
 
Method Summary
protected  void doBind(org.springframework.webflow.execution.RequestContext context, org.springframework.validation.DataBinder binder)
           
protected  void initAction()
           
 org.springframework.webflow.execution.Event referenceData(org.springframework.webflow.execution.RequestContext context)
           
 void setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)
           
 void setCredentialsBinder(CredentialsBinder credentialsBinder)
          Set a CredentialsBinder for additional binding of the HttpServletRequest to the Credentials instance, beyond our default binding of the Credentials as a Form Object in Spring WebMVC parlance.
 void setWarnCookieGenerator(org.springframework.web.util.CookieGenerator warnCookieGenerator)
           
 org.springframework.webflow.execution.Event submit(org.springframework.webflow.execution.RequestContext context)
           
 
Methods inherited from class org.springframework.webflow.action.FormAction
bind, bindAndValidate, createBinder, createFormObject, doValidate, getFormErrors, getFormErrorsScope, getFormObject, getFormObjectAccessor, getFormObjectClass, getFormObjectName, getFormObjectScope, getMessageCodesResolver, getPropertyEditorRegistrar, getValidateMethodInvoker, getValidator, initBinder, registerPropertyEditors, registerPropertyEditors, resetForm, setFormErrorsScope, setFormObjectClass, setFormObjectName, setFormObjectScope, setMessageCodesResolver, setPropertyEditorRegistrar, setupForm, setValidator, validate, validationEnabled
 
Methods inherited from class org.springframework.webflow.action.MultiAction
doExecute, getMethodResolver, setMethodResolver, setTarget
 
Methods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, no, result, result, result, result, success, success, yes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 

Constructor Detail

AuthenticationViaFormAction

public AuthenticationViaFormAction()
Method Detail

doBind

protected final void doBind(org.springframework.webflow.execution.RequestContext context,
                            org.springframework.validation.DataBinder binder)
                     throws java.lang.Exception
Overrides:
doBind in class org.springframework.webflow.action.FormAction
Throws:
java.lang.Exception

referenceData

public org.springframework.webflow.execution.Event referenceData(org.springframework.webflow.execution.RequestContext context)
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

submit

public final org.springframework.webflow.execution.Event submit(org.springframework.webflow.execution.RequestContext context)
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

setCentralAuthenticationService

public final void setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)

setCredentialsBinder

public final void setCredentialsBinder(CredentialsBinder credentialsBinder)
Set a CredentialsBinder for additional binding of the HttpServletRequest to the Credentials instance, beyond our default binding of the Credentials as a Form Object in Spring WebMVC parlance. By the time we invoke this CredentialsBinder, we have already engaged in default binding such that for each HttpServletRequest parameter, if there was a JavaBean property of the Credentials implementation of the same name, we have set that property to be the value of the corresponding request parameter. This CredentialsBinder plugin point exists to allow consideration of things other than HttpServletRequest parameters in populating the Credentials (or more sophisticated consideration of the HttpServletRequest parameters).


setWarnCookieGenerator

public final void setWarnCookieGenerator(org.springframework.web.util.CookieGenerator warnCookieGenerator)

initAction

protected void initAction()
Overrides:
initAction in class org.springframework.webflow.action.FormAction


Copyright © 2004-2009 Java Architectures Special Interest Group. All Rights Reserved.