public class AuthenticationViaFormAction extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHENTICATION_FAILURE
Authentication failure result.
|
static String |
ERROR
Error result.
|
protected org.slf4j.Logger |
logger
Logger instance.
|
static String |
PUBLIC_WORKSTATION_ATTRIBUTE
Flow scope attribute that determines if authn is happening at a public workstation.
|
static String |
SUCCESS
Authentication success result.
|
static String |
SUCCESS_WITH_WARNINGS
Authentication succeeded with warnings from authn subsystem that should be displayed to user.
|
static String |
WARN
Authentication success with "warn" enabled.
|
| Constructor and Description |
|---|
AuthenticationViaFormAction() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addWarningMessagesToMessageContextIfNeeded(TicketGrantingTicket tgtId,
org.springframework.binding.message.MessageContext messageContext)
Add warning messages to message context if needed.
|
protected boolean |
checkLoginTicketIfExists(org.springframework.webflow.execution.RequestContext context)
Tries to to determine if the login ticket in the request flow scope
matches the login ticket provided by the request.
|
protected org.springframework.webflow.execution.Event |
createTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context,
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,
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?
|
protected org.springframework.webflow.execution.Event |
returnInvalidLoginTicketEvent(org.springframework.webflow.execution.RequestContext context,
org.springframework.binding.message.MessageContext messageContext)
Return invalid login ticket event.
|
void |
setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService) |
void |
setTicketRegistry(TicketRegistry ticketRegistry)
Deprecated.
As of 4.1
|
void |
setWarnCookieGenerator(org.springframework.web.util.CookieGenerator warnCookieGenerator) |
org.springframework.webflow.execution.Event |
submit(org.springframework.webflow.execution.RequestContext context,
Credential credential,
org.springframework.binding.message.MessageContext messageContext)
Handle the submission of credentials from the post.
|
public static final String SUCCESS
public static final String SUCCESS_WITH_WARNINGS
public static final String WARN
public static final String AUTHENTICATION_FAILURE
public static final String ERROR
public static final String PUBLIC_WORKSTATION_ATTRIBUTE
protected final org.slf4j.Logger logger
public final org.springframework.webflow.execution.Event submit(org.springframework.webflow.execution.RequestContext context,
Credential credential,
org.springframework.binding.message.MessageContext messageContext)
context - the contextcredential - the credentialmessageContext - the message contextprotected boolean checkLoginTicketIfExists(org.springframework.webflow.execution.RequestContext context)
context - the contextprotected org.springframework.webflow.execution.Event returnInvalidLoginTicketEvent(org.springframework.webflow.execution.RequestContext context,
org.springframework.binding.message.MessageContext messageContext)
context - the contextmessageContext - 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,
Credential credential)
context - the contextcredential - the credentialprotected org.springframework.webflow.execution.Event createTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context,
Credential credential,
org.springframework.binding.message.MessageContext messageContext)
context - the contextcredential - the credentialmessageContext - the message contextprotected boolean addWarningMessagesToMessageContextIfNeeded(TicketGrantingTicket tgtId, org.springframework.binding.message.MessageContext messageContext)
tgtId - the tgt idmessageContext - the message contextpublic final void setCentralAuthenticationService(CentralAuthenticationService centralAuthenticationService)
public final void setWarnCookieGenerator(org.springframework.web.util.CookieGenerator warnCookieGenerator)
@Deprecated public void setTicketRegistry(TicketRegistry ticketRegistry)
ticketRegistry - the ticket registry. No longer needed as the core service layer
returns the correct object type. Will be removed in future versions.Copyright © 2004-2016 Apereo. All Rights Reserved.