Class FidoConfig

  • All Implemented Interfaces:

    
    public final class FidoConfig
    
                        

    Configuration options for the FIDO UI experience.

    This data class holds all configurable settings that affect how the FIDO operations are presented to the user. Use FidoConfigManager to modify the global configuration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      FidoConfig(Boolean isPinPrioritized, Boolean isCustomThemeEnabled, List<Extension> fidoExtensions, Function1<Function0<Unit>, Unit> customTheme)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean isPinPrioritized() When true, the PIN entry UI is shown before prompting for security key interaction.
      final Boolean isCustomThemeEnabled()
      final List<Extension> getFidoExtensions() List of FIDO extensions to enable for all operations, or null to use the default set of extensions provided by the underlying CTAP2 client.
      final Function1<Function0<Unit>, Unit> getCustomTheme() Optional Compose theme wrapper to apply to the FIDO UI screens.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FidoConfig

        FidoConfig(Boolean isPinPrioritized, Boolean isCustomThemeEnabled, List<Extension> fidoExtensions, Function1<Function0<Unit>, Unit> customTheme)
    • Method Detail

      • isPinPrioritized

         final Boolean isPinPrioritized()

        When true, the PIN entry UI is shown before prompting for security key interaction. When false (default), the user is prompted to touch their security key first. Set to true for workflows where PIN entry upfront provides a better user experience.

      • getFidoExtensions

         final List<Extension> getFidoExtensions()

        List of FIDO extensions to enable for all operations, or null to use the default set of extensions provided by the underlying CTAP2 client. The default extensions include: CredBlob, CredProps, CredProtect, HmacSecret, LargeBlob, and MinPinLength. Provide an explicit list to override or disable specific extensions.

      • getCustomTheme

         final Function1<Function0<Unit>, Unit> getCustomTheme()

        Optional Compose theme wrapper to apply to the FIDO UI screens. If null, the default theme is used. Provide a composable function that wraps the content with your app's theme for visual consistency.