Class UpdateWebAuthnContextWithC14nPrincipal

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

public class UpdateWebAuthnContextWithC14nPrincipal extends AbstractWebAuthnAction<BaseWebAuthnContext>
A WebAuthn action that sets the principal name from the SubjectCanonicalizationContext back onto the WebAuthn context. It then removes the SubjectCanonicalizationContext from the parent, this can help avoid conflicting/confusing situations where a new c14n context will be created by subsequent authentication steps.
Event:
EventIds.PROCEED_EVENT_ID
Precondition:
ProfileRequestContext.getSubcontext(BaseWebAuthnContext.class) != null
Postcondition:
ProfileRequestContext.getSubcontext(BaseWebAuthnContext.class).getUsername() != null