Package org.apereo.cas.web.flow.login
Class VerifyRequiredServiceAction
- java.lang.Object
-
- org.springframework.webflow.action.AbstractAction
-
- org.apereo.cas.web.flow.login.VerifyRequiredServiceAction
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.webflow.execution.Action
public class VerifyRequiredServiceAction extends org.springframework.webflow.action.AbstractActionClass to automatically set the paths for the CookieGenerators.Note: This is technically not thread-safe, but because its overriding with a constant value it doesn't matter.
Note: As of CAS 3.1, this is a required class that retrieves and exposes the values in the two cookies for subclasses to use.
- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description VerifyRequiredServiceAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<org.apereo.cas.authentication.principal.Service>collectServicesToMatch(org.springframework.webflow.execution.RequestContext context, java.lang.String ticketGrantingTicketId)Collect services to match.org.springframework.webflow.execution.EventdoExecute(org.springframework.webflow.execution.RequestContext context)protected voidenforceInitialMandatoryService(org.springframework.webflow.execution.RequestContext context, java.lang.String ticketGrantingTicketId, java.util.regex.Pattern initialServicePattern)Configure webflow for initial mandatory service.protected booleanshouldSkipRequiredServiceCheck(org.springframework.webflow.execution.RequestContext context, java.util.regex.Pattern initialServicePattern)Should skip required service check.
-
-
-
Method Detail
-
doExecute
public org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext context)
- Specified by:
doExecutein classorg.springframework.webflow.action.AbstractAction
-
enforceInitialMandatoryService
protected void enforceInitialMandatoryService(org.springframework.webflow.execution.RequestContext context, java.lang.String ticketGrantingTicketId, java.util.regex.Pattern initialServicePattern)Configure webflow for initial mandatory service.- Parameters:
context- the contextticketGrantingTicketId- the ticket granting ticket idinitialServicePattern- the initial service pattern
-
shouldSkipRequiredServiceCheck
protected boolean shouldSkipRequiredServiceCheck(org.springframework.webflow.execution.RequestContext context, java.util.regex.Pattern initialServicePattern)Should skip required service check.- Parameters:
context- the contextinitialServicePattern- the initial service pattern- Returns:
- true/false
-
collectServicesToMatch
protected java.util.List<org.apereo.cas.authentication.principal.Service> collectServicesToMatch(org.springframework.webflow.execution.RequestContext context, java.lang.String ticketGrantingTicketId)Collect services to match.- Parameters:
context- the contextticketGrantingTicketId- the ticket granting ticket id- Returns:
- the list
-
-