Class BaseWebAuthnAuthenticationContextConsumer
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.impl.BaseWebAuthnAuthenticationContextConsumer
- All Implemented Interfaces:
Consumer<ProfileRequestContext>
- Direct Known Subclasses:
SetPaswordlessUsageToContextConsumer,SetSecondFactorUsageToContextConsumer,SetUsernamelessUsageToContextConsumer
public abstract class BaseWebAuthnAuthenticationContextConsumer
extends Object
implements Consumer<ProfileRequestContext>
A base class that pulls out the
WebAuthnAuthenticationContext for consumers to use.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<ProfileRequestContext,WebAuthnAuthenticationContext> Strategy used to locate theWebAuthnAuthenticationContextto populate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ProfileRequestContext input) protected abstract voiddoAccept(WebAuthnAuthenticationContext webAuthnContext) Consume the WebAuthn authentication context.
-
Field Details
-
webauthnAuthContextCreationStrategy
@Nonnull private final Function<ProfileRequestContext,WebAuthnAuthenticationContext> webauthnAuthContextCreationStrategyStrategy used to locate theWebAuthnAuthenticationContextto populate.
-
-
Constructor Details
-
BaseWebAuthnAuthenticationContextConsumer
BaseWebAuthnAuthenticationContextConsumer()Constructor.
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<ProfileRequestContext>
-
doAccept
Consume the WebAuthn authentication context. Implementations must override this method.- Parameters:
webAuthnContext- the WebAuthn authentication context
-