Package com.yubico.yubikit.piv
Class ManagementKeyMetadata
- java.lang.Object
-
- com.yubico.yubikit.piv.ManagementKeyMetadata
-
public class ManagementKeyMetadata extends java.lang.Object
Metadata about the card management key.
-
-
Constructor Summary
Constructors Constructor Description ManagementKeyMetadata(ManagementKeyType keyType, boolean defaultValue, TouchPolicy touchPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagementKeyType
getKeyType()
Get the algorithm of key used for the Management Key.TouchPolicy
getTouchPolicy()
Whether or not the YubiKey sensor needs to be touched when performing authentication.boolean
isDefaultValue()
Whether or not the default card management key is set.
-
-
-
Constructor Detail
-
ManagementKeyMetadata
public ManagementKeyMetadata(ManagementKeyType keyType, boolean defaultValue, TouchPolicy touchPolicy)
-
-
Method Detail
-
getKeyType
public ManagementKeyType 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
public TouchPolicy getTouchPolicy()
Whether or not the YubiKey sensor needs to be touched when performing authentication.- Returns:
- the touch policy of the card management key
-
-