Class WebAuthnAuthenticator
java.lang.Object
org.keycloak.authentication.authenticators.browser.WebAuthnAuthenticator
- All Implemented Interfaces:
Authenticator,CredentialValidator<WebAuthnCredentialProvider>,Provider
- Direct Known Subclasses:
WebAuthnPasswordlessAuthenticator
public class WebAuthnAuthenticator
extends Object
implements Authenticator, CredentialValidator<WebAuthnCredentialProvider>
Authenticator for WebAuthn authentication, which will be typically used when WebAuthn is used as second factor.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaction(AuthenticationFlowContext context) voidauthenticate(AuthenticationFlowContext context) voidclose()booleanconfiguredFor(KeycloakSession session, RealmModel realm, UserModel user) protected jakarta.ws.rs.core.ResponsecreateErrorResponse(AuthenticationFlowContext context, String errorCase) fillContextForm(AuthenticationFlowContext context) getCredentialProvider(KeycloakSession session) protected StringgetRequiredActions(KeycloakSession session) protected StringgetRpID(AuthenticationFlowContext context) protected WebAuthnPolicybooleanprotected voidsetErrorResponse(AuthenticationFlowContext context, String errorCase, String errorMessage) voidsetRequiredActions(KeycloakSession session, RealmModel realm, UserModel user) protected booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authentication.Authenticator
areRequiredActionsEnabledMethods inherited from interface org.keycloak.authentication.CredentialValidator
getCredentials, getType
-
Field Details
-
session
-
-
Constructor Details
-
WebAuthnAuthenticator
-
-
Method Details
-
authenticate
- Specified by:
authenticatein interfaceAuthenticator
-
fillContextForm
-
getWebAuthnPolicy
-
getRpID
-
getCredentialType
-
shouldDisplayAuthenticators
-
action
- Specified by:
actionin interfaceAuthenticator
-
requiresUser
public boolean requiresUser()- Specified by:
requiresUserin interfaceAuthenticator
-
configuredFor
- Specified by:
configuredForin interfaceAuthenticator
-
setRequiredActions
- Specified by:
setRequiredActionsin interfaceAuthenticator
-
getRequiredActions
- Specified by:
getRequiredActionsin interfaceAuthenticator
-
close
public void close() -
getCredentialProvider
- Specified by:
getCredentialProviderin interfaceCredentialValidator<WebAuthnCredentialProvider>
-
setErrorResponse
protected void setErrorResponse(AuthenticationFlowContext context, String errorCase, String errorMessage) -
createErrorResponse
protected jakarta.ws.rs.core.Response createErrorResponse(AuthenticationFlowContext context, String errorCase)
-