Package com.yubico.yubikit.piv
Class PinMetadata
- java.lang.Object
-
- com.yubico.yubikit.piv.PinMetadata
-
public class PinMetadata extends java.lang.Object
Metadata about the PIN or PUK.
-
-
Constructor Summary
Constructors Constructor Description PinMetadata(boolean defaultValue, int totalAttempts, int attemptsRemaining)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAttemptsRemaining()
Returns the number of PIN/PUK attempts currently remaining.int
getTotalAttempts()
Returns the number of PIN/PUK attempts available after successful verification.boolean
isDefaultValue()
Whether or not the default PIN/PUK is set.
-
-
-
Method Detail
-
isDefaultValue
public boolean isDefaultValue()
Whether or not the default PIN/PUK is set. The PIN/PUK should be changed from the default to prevent unwanted usage of the application.- Returns:
- true if the default key is set.
-
getTotalAttempts
public int getTotalAttempts()
Returns the number of PIN/PUK attempts available after successful verification.
-
getAttemptsRemaining
public int getAttemptsRemaining()
Returns the number of PIN/PUK attempts currently remaining.
-
-