org.jasig.cas.web.flow
Class AbstractNonInteractiveCredentialsAction

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

public abstract class AbstractNonInteractiveCredentialsAction
extends org.springframework.webflow.action.AbstractAction

Abstract class to handle the retrieval and authentication of non-interactive credentials such as client certificates, NTLM, etc.

Since:
3.0.4
Version:
$Revision: 47522 $ $Date: 2009-12-14 23:33:36 -0500 (Mon, 14 Dec 2009) $
Author:
Scott Battaglia

Field Summary
 
Fields inherited from class org.springframework.webflow.action.AbstractAction
logger
 
Constructor Summary
AbstractNonInteractiveCredentialsAction()
           
 
Method Summary
protected abstract  Credentials constructCredentialsFromRequest(org.springframework.webflow.execution.RequestContext context)
          Abstract method to implement to construct the credentials from the request object.
protected  org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext context)
           
protected  boolean isRenewPresent(org.springframework.webflow.execution.RequestContext context)
           
protected  void onError(org.springframework.webflow.execution.RequestContext context, Credentials credentials)
          Hook method to allow for additional processing of the response before returning an error event.
protected  void onSuccess(org.springframework.webflow.execution.RequestContext context, Credentials credentials)
          Hook method to allow for additional processing of the response before returning a success event.
 void setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)
           
 
Methods inherited from class org.springframework.webflow.action.AbstractAction
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, 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
 

Constructor Detail

AbstractNonInteractiveCredentialsAction

public AbstractNonInteractiveCredentialsAction()
Method Detail

isRenewPresent

protected final boolean isRenewPresent(org.springframework.webflow.execution.RequestContext context)

doExecute

protected final org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext context)
Specified by:
doExecute in class org.springframework.webflow.action.AbstractAction

setCentralAuthenticationService

public final void setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)

onError

protected void onError(org.springframework.webflow.execution.RequestContext context,
                       Credentials credentials)
Hook method to allow for additional processing of the response before returning an error event.

Parameters:
context - the context for this specific request.
credentials - the credentials for this request.

onSuccess

protected void onSuccess(org.springframework.webflow.execution.RequestContext context,
                         Credentials credentials)
Hook method to allow for additional processing of the response before returning a success event.

Parameters:
context - the context for this specific request.
credentials - the credentials for this request.

constructCredentialsFromRequest

protected abstract Credentials constructCredentialsFromRequest(org.springframework.webflow.execution.RequestContext context)
Abstract method to implement to construct the credentials from the request object.

Parameters:
context - the context for this request.
Returns:
the constructed credentials or null if none could be constructed from the request.


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