Class CreateTicketGrantingTicketAction

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

    public class CreateTicketGrantingTicketAction
    extends org.springframework.webflow.action.AbstractAction
    Action that handles the TicketGrantingTicket creation and destruction. If the action is given a TicketGrantingTicket and one also already exists, the old one is destroyed and replaced with the new one. This action always returns "success".
    Since:
    3.0.0
    • Field Summary

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

        logger
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void addMessageDescriptorToMessageContext​(org.springframework.binding.message.MessageContext context, org.apereo.cas.authentication.MessageDescriptor warning)
      Adds a warning message to the message context.
      protected org.apereo.cas.authentication.Authentication buildFinalAuthentication​(org.apereo.cas.authentication.AuthenticationResult authenticationResult)
      Build final authentication authentication.
      protected org.apereo.cas.ticket.TicketGrantingTicket createOrUpdateTicketGrantingTicket​(org.apereo.cas.authentication.AuthenticationResult authenticationResult, org.apereo.cas.authentication.Authentication authentication, java.lang.String ticketGrantingTicket)
      Create or update ticket granting ticket ticket granting ticket.
      org.springframework.webflow.execution.Event doExecute​(org.springframework.webflow.execution.RequestContext context)  
      • 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

      • CreateTicketGrantingTicketAction

        public CreateTicketGrantingTicketAction()
    • Method Detail

      • doExecute

        public org.springframework.webflow.execution.Event doExecute​(org.springframework.webflow.execution.RequestContext context)
        Specified by:
        doExecute in class org.springframework.webflow.action.AbstractAction
      • addMessageDescriptorToMessageContext

        protected static void addMessageDescriptorToMessageContext​(org.springframework.binding.message.MessageContext context,
                                                                   org.apereo.cas.authentication.MessageDescriptor warning)
        Adds a warning message to the message context.
        Parameters:
        context - Message context.
        warning - Warning message.
      • buildFinalAuthentication

        protected org.apereo.cas.authentication.Authentication buildFinalAuthentication​(org.apereo.cas.authentication.AuthenticationResult authenticationResult)
        Build final authentication authentication.
        Parameters:
        authenticationResult - the authentication result
        Returns:
        the authentication
      • createOrUpdateTicketGrantingTicket

        protected org.apereo.cas.ticket.TicketGrantingTicket createOrUpdateTicketGrantingTicket​(org.apereo.cas.authentication.AuthenticationResult authenticationResult,
                                                                                                org.apereo.cas.authentication.Authentication authentication,
                                                                                                java.lang.String ticketGrantingTicket)
        Create or update ticket granting ticket ticket granting ticket.
        Parameters:
        authenticationResult - the authentication result
        authentication - the authentication
        ticketGrantingTicket - the ticket granting ticket
        Returns:
        the ticket granting ticket