public interface AbstractAuthenticationFlowContext
Modifier and Type | Method and Description |
---|---|
void |
attempted()
There was no failure or challenge.
|
void |
challenge(javax.ws.rs.core.Response challenge)
Sends a challenge response back to the HTTP client.
|
void |
failure(AuthenticationFlowError error)
Aborts the current flow
|
void |
failure(AuthenticationFlowError error,
javax.ws.rs.core.Response response)
Aborts the current flow.
|
void |
failureChallenge(AuthenticationFlowError error,
javax.ws.rs.core.Response challenge)
Same behavior as forceChallenge(), but the error count in brute force attack detection will be incremented.
|
void |
forceChallenge(javax.ws.rs.core.Response challenge)
Sends the challenge back to the HTTP client irregardless of the current executionr requirement
|
String |
generateAccessCode()
Generates access code and updates clientsession timestamp
Access codes must be included in form action callbacks as a query parameter.
|
AuthenticatorConfigModel |
getAuthenticatorConfig()
Get any configuration associated with the current execution
|
AuthenticationExecutionModel.Requirement |
getCategoryRequirementFromCurrentFlow(String authenticatorCategory) |
org.keycloak.common.ClientConnection |
getConnection()
Information about the IP address from the connecting HTTP client.
|
AuthenticationFlowError |
getError()
Get the error condition of a failed execution.
|
EventBuilder |
getEvent()
Current event builder being used
|
AuthenticationExecutionModel |
getExecution()
The current execution in the flow
|
FormMessage |
getForwardedErrorMessage()
This could be an error message forwarded from another authenticator that is restarting or continuing the flo.
|
FormMessage |
getForwardedSuccessMessage()
This could be an success message forwarded from another authenticator that is restarting or continuing the flow.
|
org.jboss.resteasy.spi.HttpRequest |
getHttpRequest() |
BruteForceProtector |
getProtector() |
RealmModel |
getRealm()
Current realm
|
KeycloakSession |
getSession()
Current session
|
FlowStatus |
getStatus()
Get the current status of the current execution.
|
javax.ws.rs.core.UriInfo |
getUriInfo()
UriInfo of the current request
|
EventBuilder |
newEvent()
Create a refresh new EventBuilder to use within this context
|
void |
success()
Mark the current execution as successful.
|
EventBuilder getEvent()
EventBuilder newEvent()
AuthenticationExecutionModel getExecution()
RealmModel getRealm()
org.keycloak.common.ClientConnection getConnection()
javax.ws.rs.core.UriInfo getUriInfo()
KeycloakSession getSession()
org.jboss.resteasy.spi.HttpRequest getHttpRequest()
BruteForceProtector getProtector()
AuthenticatorConfigModel getAuthenticatorConfig()
FormMessage getForwardedErrorMessage()
FormMessage getForwardedSuccessMessage()
String generateAccessCode()
AuthenticationExecutionModel.Requirement getCategoryRequirementFromCurrentFlow(String authenticatorCategory)
void success()
void failure(AuthenticationFlowError error)
error
- void failure(AuthenticationFlowError error, javax.ws.rs.core.Response response)
error
- response
- Response that will be sent back to HTTP clientvoid challenge(javax.ws.rs.core.Response challenge)
challenge
- void forceChallenge(javax.ws.rs.core.Response challenge)
challenge
- void failureChallenge(AuthenticationFlowError error, javax.ws.rs.core.Response challenge)
error
- challenge
- void attempted()
FlowStatus getStatus()
AuthenticationFlowError getError()
Copyright © 2019 JBoss by Red Hat. All rights reserved.