Enum Slot

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Slot>

    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 Detail

      • 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 Detail

      • value

        public final int value
      • objectId

        public final int objectId
    • Method Detail

      • values

        public static Slot[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Slot c : Slot.values())
            System.out.println(c);
        
        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
      • getStringAlias

        public java.lang.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​(java.lang.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