Enum Slot

java.lang.Object
java.lang.Enum<Slot>
com.yubico.yubikit.piv.Slot
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Slot>, java.lang.constant.Constable

public enum Slot
extends java.lang.Enum<Slot>
A PIV slot for storing a private key, with a corresponding object ID for storing a certificate.
  • Enum Constant Details

  • Field Details

    • value

      public final int value
    • objectId

      public final int objectId
  • Method Details

    • values

      public static Slot[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Slot valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • fromValue

      public static Slot fromValue​(int value)
      Returns the PIV slot corresponding to the given ID.