Package com.yubico.yubikit.piv
Class SlotMetadata
java.lang.Object
com.yubico.yubikit.piv.SlotMetadata
Metadata about a key in a slot.
-
Constructor Summary
ConstructorsConstructorDescriptionSlotMetadata
(KeyType keyType, PinPolicy pinPolicy, TouchPolicy touchPolicy, boolean generated, byte[] publicKeyEncoded) -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the key stored in a slot.Returns the PIN policy for using the key.Deprecated.com.yubico.yubikit.core.keys.PublicKeyValues
Returns the public key corresponding to the key in the slot.Returns the touch policy for using the key.boolean
Whether the key was generated on the YubiKey or imported.
-
Constructor Details
-
SlotMetadata
public SlotMetadata(KeyType keyType, PinPolicy pinPolicy, TouchPolicy touchPolicy, boolean generated, byte[] publicKeyEncoded)
-
-
Method Details
-
getKeyType
Returns the type of the key stored in a slot. -
getPinPolicy
Returns the PIN policy for using the key. -
getTouchPolicy
Returns the touch policy for using the key. -
isGenerated
public boolean isGenerated()Whether the key was generated on the YubiKey or imported. A generated key can be attested, and exists only in a single YubiKey.- Returns:
- true if the key was generated on the YubiKey
-
getPublicKeyValues
public com.yubico.yubikit.core.keys.PublicKeyValues getPublicKeyValues()Returns the public key corresponding to the key in the slot. -
getPublicKey
Deprecated.UsegetPublicKeyValues()
.toPublicKey() instead.Returns the public key corresponding to the key in the slot.
-
getPublicKeyValues()
.toPublicKey() instead.