Class AbstractWebAuthnAuditExtractor<T>
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.audit.AbstractWebAuthnAuditExtractor<T>
- Type Parameters:
T- the type to extract
- All Implemented Interfaces:
Function<ProfileRequestContext,T>
- Direct Known Subclasses:
WebAuthnFlowModeAuditExtractor,WebAuthnUserIdAuditExtractor,WebAuthnUsernameAuditExtractor,WebAuthnUserVerificationAuditExtractor
@ThreadSafe
public abstract class AbstractWebAuthnAuditExtractor<T>
extends Object
implements Function<ProfileRequestContext,T>
An abstract audit extractor function to extract values directly from various WebAuthn contexts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<ProfileRequestContext,BaseWebAuthnContext> Lookup strategy to locate the WebAuthn base context. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext profileRequestContext) protected abstract TdoLookup(BaseWebAuthnContext context) Implemented to perform the actual lookup.
-
Field Details
-
webAuthnBaseContextLookupStrategy
@Nonnull private final Function<ProfileRequestContext,BaseWebAuthnContext> webAuthnBaseContextLookupStrategyLookup strategy to locate the WebAuthn base context.
-
-
Constructor Details
-
AbstractWebAuthnAuditExtractor
protected AbstractWebAuthnAuditExtractor(@Nonnull Function<ProfileRequestContext, BaseWebAuthnContext> strategy) Constructor.- Parameters:
strategy- the strategy used to locate theBaseWebAuthnContext.
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,T>
-
doLookup
Implemented to perform the actual lookup.- Parameters:
context- the base WebAuthn context- Returns:
- lookup value or
nullif not found
-