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

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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