Class GenerateServiceTicketAction

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean, org.springframework.webflow.execution.Action

    public class GenerateServiceTicketAction
    extends org.springframework.webflow.action.AbstractAction
    Action to generate a service ticket for a given Ticket Granting Ticket and Service.
    Since:
    3.0.0
    • Field Summary

      • Fields inherited from class org.springframework.webflow.action.AbstractAction

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.webflow.execution.Event doExecute​(org.springframework.webflow.execution.RequestContext context)
      protected boolean isGatewayPresent​(org.springframework.webflow.execution.RequestContext context)
      Checks if gateway is present in the request params.
      • 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

      • GenerateServiceTicketAction

        public GenerateServiceTicketAction()
    • Method Detail

      • doExecute

        protected org.springframework.webflow.execution.Event doExecute​(org.springframework.webflow.execution.RequestContext context)

        In the initial primary authentication flow, credentials are cached and available. Since they are authenticated as part of submission first, there is no need to doubly authenticate and verify credentials.

        In subsequent authentication flows where a TGT is available and only an ST needs to be created, there are no cached copies of the credential, since we do have a TGT available. So we will grab the available authentication and produce the final result based on that.

        Specified by:
        doExecute in class org.springframework.webflow.action.AbstractAction
      • isGatewayPresent

        protected boolean isGatewayPresent​(org.springframework.webflow.execution.RequestContext context)
        Checks if gateway is present in the request params.
        Parameters:
        context - the context
        Returns:
        true, if gateway present