public interface AuthenticationFlowContext extends AbstractAuthenticationFlowContext
Modifier and Type | Method and Description |
---|---|
void |
attachUserSession(UserSessionModel userSession) |
void |
cancelLogin()
End the flow and redirect browser based on protocol specific respones.
|
void |
clearUser()
Clear the user from the flow.
|
void |
fork()
Fork the current flow.
|
void |
forkWithErrorMessage(FormMessage message)
Fork the current flow.
|
void |
forkWithSuccessMessage(FormMessage message)
Fork the current flow.
|
LoginFormsProvider |
form()
Create a Freemarker form builder that presets the user, action URI, and a generated access code
|
URI |
getActionUrl()
Get the action URL for the required action.
|
URI |
getActionUrl(String code)
Get the action URL for the required action.
|
ClientSessionModel |
getClientSession()
ClientSessionModel attached to this flow
|
UserModel |
getUser()
Current user attached to this flow.
|
void |
resetFlow()
Reset the current flow to the beginning and restarts it.
|
void |
setUser(UserModel user)
Attach a specific user to this flow.
|
attempted, challenge, failure, failure, failureChallenge, forceChallenge, generateAccessCode, getAuthenticatorConfig, getCategoryRequirementFromCurrentFlow, getConnection, getError, getEvent, getExecution, getForwardedErrorMessage, getForwardedSuccessMessage, getHttpRequest, getProtector, getRealm, getSession, getStatus, getUriInfo, newEvent, success
UserModel getUser()
void setUser(UserModel user)
user
- void clearUser()
void attachUserSession(UserSessionModel userSession)
ClientSessionModel getClientSession()
LoginFormsProvider form()
URI getActionUrl(String code)
code
- client session access codeURI getActionUrl()
void cancelLogin()
void resetFlow()
void fork()
void forkWithSuccessMessage(FormMessage message)
message
- Corresponds to raw text or a message property defined in a message bundlevoid forkWithErrorMessage(FormMessage message)
message
- Corresponds to raw text or a message property defined in a message bundleCopyright © 2016 JBoss by Red Hat. All rights reserved.