Class CheckCredentialPolicy

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class CheckCredentialPolicy extends AbstractWebAuthnAction<WebAuthnAuthenticationContext>
A policy engine action that checks with the configured policy if the credential, used to sign the assertion can be used to authenticate. If it is rejected by the policy, a WebAuthnAuthenticationEventIds.CREDENTIAL_POLICY_REJECTION is returned. Similarly, if a credential can not be found to evaluate the policy returns an WebAuthnAuthenticationEventIds.CREDENTIAL_POLICY_REJECTION.
Event:
{EventIds#INVALID_PROFILE_CTX}, {WebAuthnAuthenticationEventIds#CREDENTIAL_POLICY_REJECTION}
Precondition:
ProfileRequestContext.getSubcontext(WebAuthnRegistrationContext.class) != null
Postcondition:
the credential is allowed to be used for authentication, or an error event is triggered