Class WebAuthnRegister
- java.lang.Object
- 
- org.keycloak.authentication.requiredactions.WebAuthnRegister
 
- 
- All Implemented Interfaces:
- 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 SummaryConstructors Constructor Description WebAuthnRegister(KeycloakSession session, com.webauthn4j.validator.attestation.trustworthiness.certpath.CertPathTrustworthinessValidator certPathtrustValidator)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidevaluateTriggers(RequiredActionContext context)Called every time a user authenticates.protected StringgetCredentialProviderId()protected StringgetCredentialType()protected WebAuthnPolicygetWebAuthnPolicy(RequiredActionContext context)InitiatedActionSupportinitiatedActionSupport()Determines what type of support is provided for application-initiated actions.voidprocessAction(RequiredActionContext context)Called when a required action has form input you want to process.voidrequiredActionChallenge(RequiredActionContext context)If the user has a required action set, this method will be the initial call to obtain what to display to the user's browser.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.authentication.RequiredActionProvidergetMaxAuthAge, initiatedActionCanceled
 
- 
 
- 
- 
- 
Constructor Detail- 
WebAuthnRegisterpublic WebAuthnRegister(KeycloakSession session, com.webauthn4j.validator.attestation.trustworthiness.certpath.CertPathTrustworthinessValidator certPathtrustValidator) 
 
- 
 - 
Method Detail- 
initiatedActionSupportpublic InitiatedActionSupport initiatedActionSupport() Description copied from interface:RequiredActionProviderDetermines what type of support is provided for application-initiated actions.- Specified by:
- initiatedActionSupportin interface- RequiredActionProvider
- Returns:
- InititatedActionsSupport
 
 - 
requiredActionChallengepublic void requiredActionChallenge(RequiredActionContext context) Description copied from interface:RequiredActionProviderIf the user has a required action set, this method will be the initial call to obtain what to display to the user's browser. Return null if no action should be done.- Specified by:
- requiredActionChallengein interface- RequiredActionProvider
 
 - 
getWebAuthnPolicyprotected WebAuthnPolicy getWebAuthnPolicy(RequiredActionContext context) 
 - 
getCredentialTypeprotected String getCredentialType() 
 - 
getCredentialProviderIdprotected String getCredentialProviderId() 
 - 
processActionpublic void processAction(RequiredActionContext context) Description copied from interface:RequiredActionProviderCalled when a required action has form input you want to process.- Specified by:
- processActionin interface- RequiredActionProvider
 
 - 
evaluateTriggerspublic void evaluateTriggers(RequiredActionContext context) Description copied from interface:RequiredActionProviderCalled every time a user authenticates. This checks to see if this required action should be triggered. The implementation of this method is responsible for setting the required action on the UserModel. For example, the UpdatePassword required actions checks the password policies to see if the password has expired.- Specified by:
- evaluateTriggersin interface- RequiredActionProvider
 
 
- 
 
-