Package com.yubico.yubikit.piv
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.
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and Type Method Description static Slot
fromValue(int value)
Returns the PIV slot corresponding to the given ID.static Slot
valueOf(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 Details
-
Field Details
-
Method Details
-
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
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
-
fromValue
Returns the PIV slot corresponding to the given ID.
-