Class WebAuthnRegister
java.lang.Object
org.keycloak.authentication.requiredactions.WebAuthnRegister
- All Implemented Interfaces:
CredentialAction,CredentialRegistrator,RequiredActionProvider,Provider
- Direct Known Subclasses:
WebAuthnPasswordlessRegister
public class WebAuthnRegister
extends Object
implements RequiredActionProvider, CredentialRegistrator
Required action for register WebAuthn 2-factor credential for the user
-
Constructor Summary
ConstructorsConstructorDescriptionWebAuthnRegister(KeycloakSession session, com.webauthn4j.validator.attestation.trustworthiness.certpath.CertPathTrustworthinessValidator certPathtrustValidator) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected com.webauthn4j.WebAuthnRegistrationManagerCreate WebAuthnRegistrationManager instance Can be overridden in subclasses to customize the used attestation validatorsvoidevaluateTriggers(RequiredActionContext context) protected Stringprotected StringgetCredentialType(KeycloakSession session, AuthenticationSessionModel authenticationSession) protected EventTypeDeprecated.protected WebAuthnPolicygetWebAuthnPolicy(RequiredActionContext context) voidprocessAction(RequiredActionContext context) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.authentication.RequiredActionProvider
getMaxAuthAge, initiatedActionCanceled
-
Constructor Details
-
WebAuthnRegister
public WebAuthnRegister(KeycloakSession session, com.webauthn4j.validator.attestation.trustworthiness.certpath.CertPathTrustworthinessValidator certPathtrustValidator)
-
-
Method Details
-
initiatedActionSupport
- Specified by:
initiatedActionSupportin interfaceRequiredActionProvider
-
requiredActionChallenge
- Specified by:
requiredActionChallengein interfaceRequiredActionProvider
-
getWebAuthnPolicy
-
getCredentialType
public String getCredentialType(KeycloakSession session, AuthenticationSessionModel authenticationSession) - Specified by:
getCredentialTypein interfaceCredentialAction
-
getCredentialType
-
getCredentialProviderId
-
getOriginalEventTypeForBackwardsCompatibility
@Deprecated protected EventType getOriginalEventTypeForBackwardsCompatibility(RequiredActionContext context) Deprecated.For compatibility sake as long as we use @linkEventType.UPDATE_PASSWORD,EventType.UPDATE_TOTPa.s.o.Method to provide removal and deprecation hint -
processAction
- Specified by:
processActionin interfaceRequiredActionProvider
-
createWebAuthnRegistrationManager
protected com.webauthn4j.WebAuthnRegistrationManager createWebAuthnRegistrationManager()Create WebAuthnRegistrationManager instance Can be overridden in subclasses to customize the used attestation validators- Returns:
- webauthn4j WebAuthnRegistrationManager instance
-
close
public void close() -
evaluateTriggers
- Specified by:
evaluateTriggersin interfaceRequiredActionProvider
-
EventType.UPDATE_PASSWORD,EventType.UPDATE_TOTPa.s.o.