Class DeviceConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new DeviceConfig.Builder.
    • Method Detail

      • enabledCapabilities

        public DeviceConfig.Builder enabledCapabilities​(com.yubico.yubikit.core.Transport transport,
                                                        int capabilities)
        Sets the enabled capabilities for the given transport.
        Parameters:
        transport - the transport to change capabilities for
        capabilities - the capabilities to set
      • autoEjectTimeout

        public DeviceConfig.Builder autoEjectTimeout​(short autoEjectTimeout)
        Sets the timeout used when the YubiKey is in CCID-only mode with DeviceConfig.FLAG_EJECT set.
        Parameters:
        autoEjectTimeout - the timeout, in seconds
      • challengeResponseTimeout

        public DeviceConfig.Builder challengeResponseTimeout​(byte challengeResponseTimeout)
        Sets the timeout used by the YubiOTP application, when waiting for a user presence check (physical touch).
        Parameters:
        challengeResponseTimeout - the timeout, in seconds
      • deviceFlags

        public DeviceConfig.Builder deviceFlags​(int deviceFlags)
        Sets the Device flags of the YubiKey.
      • build

        public DeviceConfig build()
        Constructs a DeviceConfig using the current configuration.