[−][src]Enum yubirs::piv::id::Key
This enumeration describes the identifiers for the various slots the Yubikey has for certificates.
Variants
Used to authenticate the card and the cardholder. Used for things like system login. The PIN is required to perform any private key operations.
The card management key, used to authenticate administrative / management functionality on the Yubikey itself.
Used for digital dignatures for the purpose of document signing, or signing files and executables. The PIN is required to perform any private key operations.
Used for encryption for confidentiality, e.g. encrypting e-mails or files. The PIN is required to perform any private key operations.
Used to support additional physical access applications, such as providing physical access to buildings via PIV-enabled door locks. The PIN is NOT required to perform private key operations.
This slot is only available on Yubikey 4.3 and newer. It is used for attestation of other keys generated on device. This slot is not cleared on reset, but can be overwritten.
Methods
impl Key
[src]
pub fn to_value(&self) -> c_uchar
[src]
pub fn to_object(&self) -> Result<Object>
[src]
Each key is stored as a data object on the Yubikey. So, to retrieve a stored key, we need the Object ID associated with it (which this function returns).
Note that, for some Keys, there is no associated Object. In this case, an error will be returned instead.
Trait Implementations
impl Clone for Key
[src]
impl Copy for Key
[src]
impl Debug for Key
[src]
impl<'de> Deserialize<'de> for Key
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Key
[src]
impl Eq for Key
[src]
impl FromStr for Key
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self>
[src]
impl Hash for Key
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Key> for Key
[src]
impl Serialize for Key
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Key
[src]
impl StructuralPartialEq for Key
[src]
Auto Trait Implementations
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,