Enum Class Slot

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

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

    • AUTHENTICATION

      public static final Slot AUTHENTICATION
    • SIGNATURE

      public static final Slot SIGNATURE
    • KEY_MANAGEMENT

      public static final Slot KEY_MANAGEMENT
    • CARD_AUTH

      public static final Slot CARD_AUTH
    • RETIRED1

      public static final Slot RETIRED1
    • RETIRED2

      public static final Slot RETIRED2
    • RETIRED3

      public static final Slot RETIRED3
    • RETIRED4

      public static final Slot RETIRED4
    • RETIRED5

      public static final Slot RETIRED5
    • RETIRED6

      public static final Slot RETIRED6
    • RETIRED7

      public static final Slot RETIRED7
    • RETIRED8

      public static final Slot RETIRED8
    • RETIRED9

      public static final Slot RETIRED9
    • RETIRED10

      public static final Slot RETIRED10
    • RETIRED11

      public static final Slot RETIRED11
    • RETIRED12

      public static final Slot RETIRED12
    • RETIRED13

      public static final Slot RETIRED13
    • RETIRED14

      public static final Slot RETIRED14
    • RETIRED15

      public static final Slot RETIRED15
    • RETIRED16

      public static final Slot RETIRED16
    • RETIRED17

      public static final Slot RETIRED17
    • RETIRED18

      public static final Slot RETIRED18
    • RETIRED19

      public static final Slot RETIRED19
    • RETIRED20

      public static final Slot RETIRED20
    • ATTESTATION

      public static final Slot ATTESTATION
  • 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 class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Slot valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getStringAlias

      public String getStringAlias()
      Gets the String alias for the slot, which is a HEX representation of the slot value.
      Returns:
      the slot alias
    • fromValue

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

      public static Slot fromStringAlias(String alias)
      Returns the PIV slot corresponding to the given String alias.

      The alias should be the HEX representation of the slot value.

      Parameters:
      alias - a slot value as HEX string
      Returns:
      a Slot