Package com.yubico.yubikit.yubiotp
Class ConfigurationState
- java.lang.Object
-
- com.yubico.yubikit.yubiotp.ConfigurationState
-
public class ConfigurationState extends java.lang.ObjectData object containing the state of slot programming for a YubiKey.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisConfigured(Slot slot)Checks if a slot is configured or emptybooleanisLedInverted()Checks if the LED has been configured to be inverted.booleanisTouchTriggered(Slot slot)Checks if a configured slot is triggered by touch or not.
-
-
-
Method Detail
-
isConfigured
public boolean isConfigured(Slot slot)
Checks if a slot is configured or emptyThis functionality requires support for
YubiOtpSession.FEATURE_CHECK_CONFIGURED, available on YubiKey 2.1 or later.- Parameters:
slot- the slot to check- Returns:
- true if the slot holds configuration, false if empty
-
isTouchTriggered
public boolean isTouchTriggered(Slot slot)
Checks if a configured slot is triggered by touch or not.This functionality requires support for
YubiOtpSession.FEATURE_CHECK_TOUCH_TRIGGERED, available on YubiKey 3.0 or later. A slot is triggered by touch if a user-initiated touch of the sensor causes it to output a payload over the keyboard interface. Only HMAC-SHA1 challenge-response credentials are not triggered by touch.- Parameters:
slot- the slot to check- Returns:
- true of the slot is triggered by touch, false if not (or if checking isn't supported)
-
isLedInverted
public boolean isLedInverted()
Checks if the LED has been configured to be inverted.- Returns:
- true if inverted, false if not
-
-