@Component(value="authenticationViaFormAction")
public class AuthenticationViaFormAction
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTHENTICATION_FAILURE
Authentication failure result.
|
protected org.slf4j.Logger |
logger
Logger instance.
|
static java.lang.String |
PUBLIC_WORKSTATION_ATTRIBUTE
Flow scope attribute that determines if authn is happening at a public workstation.
|
static java.lang.String |
SUCCESS_WITH_WARNINGS
Authentication succeeded with warnings from authn subsystem that should be displayed to user.
|
| Constructor and Description |
|---|
AuthenticationViaFormAction() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addWarningMessagesToMessageContextIfNeeded(org.jasig.cas.ticket.TicketGrantingTicket tgtId,
org.springframework.binding.message.MessageContext messageContext)
Add warning messages to message context if needed.
|
protected org.springframework.webflow.execution.Event |
createTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.Credential credential,
org.springframework.binding.message.MessageContext messageContext)
Create ticket granting ticket for the given credentials.
|
protected org.springframework.webflow.execution.Event |
grantServiceTicket(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.Credential credential)
Grant service ticket for the given credential based on the service and tgt
that are found in the request context.
|
protected boolean |
isRequestAskingForServiceTicket(org.springframework.webflow.execution.RequestContext context)
Is request asking for service ticket?
|
void |
setAuthenticationSystemSupport(org.jasig.cas.authentication.AuthenticationSystemSupport authenticationSystemSupport) |
void |
setCentralAuthenticationService(org.jasig.cas.CentralAuthenticationService centralAuthenticationService) |
void |
setWarnCookieGenerator(org.springframework.web.util.CookieGenerator warnCookieGenerator) |
org.springframework.webflow.execution.Event |
submit(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.Credential credential,
org.springframework.binding.message.MessageContext messageContext)
Handle the submission of credentials from the post.
|
public static final java.lang.String SUCCESS_WITH_WARNINGS
public static final java.lang.String AUTHENTICATION_FAILURE
public static final java.lang.String PUBLIC_WORKSTATION_ATTRIBUTE
protected final transient org.slf4j.Logger logger
public final org.springframework.webflow.execution.Event submit(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.Credential credential,
org.springframework.binding.message.MessageContext messageContext)
context - the contextcredential - the credentialmessageContext - the message contextprotected boolean isRequestAskingForServiceTicket(org.springframework.webflow.execution.RequestContext context)
context - the contextprotected org.springframework.webflow.execution.Event grantServiceTicket(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.Credential credential)
context - the contextcredential - the credentialprotected org.springframework.webflow.execution.Event createTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context,
org.jasig.cas.authentication.Credential credential,
org.springframework.binding.message.MessageContext messageContext)
context - the contextcredential - the credentialmessageContext - the message contextprotected boolean addWarningMessagesToMessageContextIfNeeded(org.jasig.cas.ticket.TicketGrantingTicket tgtId,
org.springframework.binding.message.MessageContext messageContext)
tgtId - the tgt idmessageContext - the message contextpublic void setCentralAuthenticationService(org.jasig.cas.CentralAuthenticationService centralAuthenticationService)
public void setWarnCookieGenerator(org.springframework.web.util.CookieGenerator warnCookieGenerator)
public void setAuthenticationSystemSupport(org.jasig.cas.authentication.AuthenticationSystemSupport authenticationSystemSupport)