Class AddAttestationConveyancePreference

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

public class AddAttestationConveyancePreference extends AbstractWebAuthnAction<WebAuthnRegistrationContext>
Add an attestation conveyance preference to the context. The default preference is 'none'.
Precondition:
ProfileRequestContext.getSubcontext(WebAuthnRegistrationContext.class) != null
Postcondition:
WebAuthnRegistrationContext.getAttestationConveyancePreference() != null
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
    • attestationConveyancePreferenceLookupStrategy

      @Nonnull private Function<ProfileRequestContext,com.yubico.webauthn.data.AttestationConveyancePreference> attestationConveyancePreferenceLookupStrategy
      A strategy to lookup the attestation conveyance preference. Default is 'none'.
  • Constructor Details

    • AddAttestationConveyancePreference

      public AddAttestationConveyancePreference()
      Constructor.
  • Method Details

    • setAttestationConveyancePreference

      public void setAttestationConveyancePreference(@Nullable String preference)
      Set the attestation conveyance preference.
      Parameters:
      preference - the attestation conveyance preference to set.
    • setAttestationConveyancePreferenceLookupStrategy

      public void setAttestationConveyancePreferenceLookupStrategy(@Nullable Function<ProfileRequestContext,com.yubico.webauthn.data.AttestationConveyancePreference> strategy)
      Set the strategy used to lookup the attestation conveyance preference.
      Parameters:
      strategy - The attestation conveyance preference lookup strategy to set.
    • doExecute

      protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull WebAuthnRegistrationContext context)
      Performs this WebAuthn authentication action using the supplied WebAuthn context. Implementations should override this method.
      Overrides:
      doExecute in class AbstractWebAuthnAction<WebAuthnRegistrationContext>
      Parameters:
      profileRequestContext - the current IdP profile request context
      context - the WebAuthn context