Class AbstractWebAuthnRegistrationAuditExtractor<T>
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.audit.AbstractWebAuthnRegistrationAuditExtractor<T>
- Type Parameters:
T- the type to extract
- All Implemented Interfaces:
Function<ProfileRequestContext,T>
- Direct Known Subclasses:
WebAuthnUserCredentialAddedAuditExtractor,WebAuthnUserCredentialToRemoveAuditExtractor
@ThreadSafe
public abstract class AbstractWebAuthnRegistrationAuditExtractor<T>
extends Object
implements Function<ProfileRequestContext,T>
An abstract audit extractor function to extract values directly from the WebAuthn registration context.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<ProfileRequestContext,WebAuthnRegistrationContext> Lookup strategy to locate the WebAuthn registration context. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractWebAuthnRegistrationAuditExtractor(Function<ProfileRequestContext, WebAuthnRegistrationContext> strategy) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionapply(ProfileRequestContext profileRequestContext) protected abstract TdoLookup(WebAuthnRegistrationContext context) Implemented to perform the actual lookup.
-
Field Details
-
webAuthnRegistrationContextLookupStrategy
@Nonnull private final Function<ProfileRequestContext,WebAuthnRegistrationContext> webAuthnRegistrationContextLookupStrategyLookup strategy to locate the WebAuthn registration context.
-
-
Constructor Details
-
AbstractWebAuthnRegistrationAuditExtractor
protected AbstractWebAuthnRegistrationAuditExtractor(@Nonnull Function<ProfileRequestContext, WebAuthnRegistrationContext> strategy) Constructor.- Parameters:
strategy- the strategy used to locate theWebAuthnRegistrationContext.
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<ProfileRequestContext,T>
-
doLookup
Implemented to perform the actual lookup.- Parameters:
context- the WebAuthn registration context- Returns:
- lookup value or
nullif not found
-