Package com.yubico.yubikit.piv
Class ManagementKeyMetadata
java.lang.Object
com.yubico.yubikit.piv.ManagementKeyMetadata
Metadata about the card management key.
-
Constructor Summary
ConstructorDescriptionManagementKeyMetadata
(ManagementKeyType keyType, boolean defaultValue, TouchPolicy touchPolicy) -
Method Summary
Modifier and TypeMethodDescriptionGet the algorithm of key used for the Management Key.Whether or not the YubiKey sensor needs to be touched when performing authentication.boolean
Whether or not the default card management key is set.
-
Constructor Details
-
ManagementKeyMetadata
public ManagementKeyMetadata(ManagementKeyType keyType, boolean defaultValue, TouchPolicy touchPolicy)
-
-
Method Details
-
getKeyType
Get the algorithm of key used for the Management Key.- Returns:
- a ManagementKeyType value
-
isDefaultValue
public boolean isDefaultValue()Whether or not the default card management key is set. The key should be changed from the default to prevent unwanted modification to the application.- Returns:
- true if the default key is set.
-
getTouchPolicy
Whether or not the YubiKey sensor needs to be touched when performing authentication.- Returns:
- the touch policy of the card management key
-