Package org.apereo.cas.web.flow.login
Class CreateTicketGrantingTicketAction
- java.lang.Object
-
- org.springframework.webflow.action.AbstractAction
-
- org.apereo.cas.web.flow.login.CreateTicketGrantingTicketAction
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.webflow.execution.Action
public class CreateTicketGrantingTicketAction extends org.springframework.webflow.action.AbstractActionAction that handles theTicketGrantingTicketcreation and destruction. If the action is given aTicketGrantingTicketand one also already exists, the old one is destroyed and replaced with the new one. This action always returns "success".- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description CreateTicketGrantingTicketAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidaddMessageDescriptorToMessageContext(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.AuthenticationbuildFinalAuthentication(org.apereo.cas.authentication.AuthenticationResult authenticationResult)Build final authentication authentication.protected org.apereo.cas.ticket.TicketGrantingTicketcreateOrUpdateTicketGrantingTicket(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.EventdoExecute(org.springframework.webflow.execution.RequestContext context)
-
-
-
Method Detail
-
doExecute
public org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext context)
- Specified by:
doExecutein classorg.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 resultauthentication- the authenticationticketGrantingTicket- the ticket granting ticket- Returns:
- the ticket granting ticket
-
-