Package com.yubico.yubikit.piv
Enum Class Slot
- All Implemented Interfaces:
Serializable,Comparable<Slot>,Constable
A PIV slot for storing a private key, with a corresponding object ID for storing a certificate.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SlotfromStringAlias(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.Gets the String alias for the slot, which is a HEX representation of the slot value.static SlotReturns the enum constant of this class with the specified name.static Slot[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTHENTICATION
-
SIGNATURE
-
KEY_MANAGEMENT
-
CARD_AUTH
-
RETIRED1
-
RETIRED2
-
RETIRED3
-
RETIRED4
-
RETIRED5
-
RETIRED6
-
RETIRED7
-
RETIRED8
-
RETIRED9
-
RETIRED10
-
RETIRED11
-
RETIRED12
-
RETIRED13
-
RETIRED14
-
RETIRED15
-
RETIRED16
-
RETIRED17
-
RETIRED18
-
RETIRED19
-
RETIRED20
-
ATTESTATION
-
-
Field Details
-
value
public final int value -
objectId
public final int objectId
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getStringAlias
Gets the String alias for the slot, which is a HEX representation of the slot value.- Returns:
- the slot alias
-
fromValue
Returns the PIV slot corresponding to the given ID. -
fromStringAlias
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
-