public class SecretQuestionAuthenticator extends Object implements Authenticator, CredentialValidator<SecretQuestionCredentialProvider>
| Constructor and Description |
|---|
SecretQuestionAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
action(AuthenticationFlowContext context) |
void |
addCookie(AuthenticationFlowContext context,
String name,
String value,
String path,
String domain,
String comment,
int maxAge,
boolean secure,
boolean httpOnly) |
void |
authenticate(AuthenticationFlowContext context) |
void |
close() |
boolean |
configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user) |
SecretQuestionCredentialProvider |
getCredentialProvider(KeycloakSession session) |
List<RequiredActionFactory> |
getRequiredActions(KeycloakSession session) |
protected boolean |
hasCookie(AuthenticationFlowContext context) |
boolean |
requiresUser() |
protected void |
setCookie(AuthenticationFlowContext context) |
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user) |
protected boolean |
validateAnswer(AuthenticationFlowContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitareRequiredActionsEnabledgetCredentials, getTypeprotected boolean hasCookie(AuthenticationFlowContext context)
public void authenticate(AuthenticationFlowContext context)
authenticate in interface Authenticatorpublic void action(AuthenticationFlowContext context)
action in interface Authenticatorprotected void setCookie(AuthenticationFlowContext context)
public void addCookie(AuthenticationFlowContext context, String name, String value, String path, String domain, String comment, int maxAge, boolean secure, boolean httpOnly)
protected boolean validateAnswer(AuthenticationFlowContext context)
public boolean requiresUser()
requiresUser in interface Authenticatorpublic boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
configuredFor in interface Authenticatorpublic void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
setRequiredActions in interface Authenticatorpublic List<RequiredActionFactory> getRequiredActions(KeycloakSession session)
getRequiredActions in interface Authenticatorpublic SecretQuestionCredentialProvider getCredentialProvider(KeycloakSession session)
getCredentialProvider in interface CredentialValidator<SecretQuestionCredentialProvider>Copyright © 2021 JBoss by Red Hat. All rights reserved.