Package com.yubico.yubikit.piv
Enum Slot
- java.lang.Object
-
- java.lang.Enum<Slot>
-
- com.yubico.yubikit.piv.Slot
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTESTATIONAUTHENTICATIONCARD_AUTHKEY_MANAGEMENTRETIRED1RETIRED10RETIRED11RETIRED12RETIRED13RETIRED14RETIRED15RETIRED16RETIRED17RETIRED18RETIRED19RETIRED2RETIRED20RETIRED3RETIRED4RETIRED5RETIRED6RETIRED7RETIRED8RETIRED9SIGNATURE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SlotfromStringAlias(java.lang.String alias)Returns the PIV slot corresponding to the given String alias.static SlotfromValue(int value)Returns the PIV slot corresponding to the given ID.java.lang.StringgetStringAlias()Gets the String alias for the slot, which is a HEX representation of the slot value.static SlotvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Slot[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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
-
-
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 namejava.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
-
-