Class DeviceConfig

java.lang.Object
com.yubico.yubikit.management.DeviceConfig

public class DeviceConfig extends Object
Describes the configuration of a YubiKey which can be altered via the Management application.
  • Field Details

    • FLAG_EJECT

      public static final int FLAG_EJECT
      In pure CCID mode eject/inject the card with the button.
      See Also:
    • FLAG_REMOTE_WAKEUP

      public static final int FLAG_REMOTE_WAKEUP
      Enables remote wakeup.
      See Also:
  • Method Details

    • getEnabledCapabilities

      @Nullable public Integer getEnabledCapabilities(com.yubico.yubikit.core.Transport transport)
      Get the currently enabled capabilities for a given Interface. NOTE: This method will return null if the Interface is not supported by the YubiKey, OR if the enabled capabilities state isn't readable. The YubiKey 4 series, for example, does not return enabled-status for USB applications.
      Parameters:
      transport - the physical transport to get enabled capabilities for
      Returns:
      the enabled capabilities, represented as Capability bits being set (1) or not (0)
    • getAutoEjectTimeout

      @Nullable public Short getAutoEjectTimeout()
      Returns the timeout used when in CCID-only mode with FLAG_EJECT enabled.
    • getChallengeResponseTimeout

      @Nullable public Byte getChallengeResponseTimeout()
      Returns the timeout value used by the YubiOTP application when waiting for a user presence check (physical touch).
    • getDeviceFlags

      @Nullable public Integer getDeviceFlags()
      Returns the device flags that are set.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object