public class WebAuthnAuthenticator extends Object implements Authenticator, CredentialValidator<WebAuthnCredentialProvider>
Constructor and Description |
---|
WebAuthnAuthenticator(KeycloakSession session) |
Modifier and Type | Method and Description |
---|---|
void |
action(AuthenticationFlowContext context)
Called from a form action invocation.
|
void |
authenticate(AuthenticationFlowContext context)
Initial call for the authenticator.
|
void |
close() |
boolean |
configuredFor(KeycloakSession session,
RealmModel realm,
UserModel user)
Is this authenticator configured for this user.
|
WebAuthnCredentialProvider |
getCredentialProvider(KeycloakSession session) |
protected String |
getCredentialType() |
List<RequiredActionFactory> |
getRequiredActions(KeycloakSession session)
Overwrite this if the authenticator is associated with
|
protected String |
getRpID(AuthenticationFlowContext context) |
protected WebAuthnPolicy |
getWebAuthnPolicy(AuthenticationFlowContext context) |
boolean |
requiresUser()
Does this authenticator require that the user has already been identified? That AuthenticatorContext.getUser() is not null?
|
void |
setRequiredActions(KeycloakSession session,
RealmModel realm,
UserModel user)
Set actions to configure authenticator
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
areRequiredActionsEnabled
getCredentials, getType
public WebAuthnAuthenticator(KeycloakSession session)
public void authenticate(AuthenticationFlowContext context)
Authenticator
authenticate
in interface Authenticator
protected WebAuthnPolicy getWebAuthnPolicy(AuthenticationFlowContext context)
protected String getRpID(AuthenticationFlowContext context)
protected String getCredentialType()
public void action(AuthenticationFlowContext context)
Authenticator
action
in interface Authenticator
public boolean requiresUser()
Authenticator
requiresUser
in interface Authenticator
public boolean configuredFor(KeycloakSession session, RealmModel realm, UserModel user)
Authenticator
configuredFor
in interface Authenticator
public void setRequiredActions(KeycloakSession session, RealmModel realm, UserModel user)
Authenticator
setRequiredActions
in interface Authenticator
public List<RequiredActionFactory> getRequiredActions(KeycloakSession session)
Authenticator
getRequiredActions
in interface Authenticator
public WebAuthnCredentialProvider getCredentialProvider(KeycloakSession session)
getCredentialProvider
in interface CredentialValidator<WebAuthnCredentialProvider>
Copyright © 2020 JBoss by Red Hat. All rights reserved.