Enum oath_authenticator::command::Command
source · [−]pub enum Command<'l> {
Select(Select<'l>),
Calculate(Calculate<'l>),
CalculateAll(CalculateAll<'l>),
ClearPassword,
Delete(Delete<'l>),
ListCredentials,
Register(Register<'l>),
Reset,
SetPassword(SetPassword<'l>),
Validate(Validate<'l>),
}
Variants
Select(Select<'l>)
Select the application
Calculate(Calculate<'l>)
Calculate the authentication data for a credential given by label.
CalculateAll(CalculateAll<'l>)
Calculate the authentication data for all credentials.
ClearPassword
Clear the password.
Delete(Delete<'l>)
Delete a credential.
ListCredentials
List all credentials.
Register(Register<'l>)
Register a new credential.
Reset
Delete all credentials and rotate the salt.
SetPassword(SetPassword<'l>)
Set a password.
Validate(Validate<'l>)
Validate the password (both ways).
Trait Implementations
sourceimpl<'l, const C: usize> TryFrom<&'l Command<C>> for Command<'l>
impl<'l, const C: usize> TryFrom<&'l Command<C>> for Command<'l>
sourcefn try_from(command: &'l Command<C>) -> Result<Self, Self::Error>
fn try_from(command: &'l Command<C>) -> Result<Self, Self::Error>
The first layer of unraveling the iso7816::Command onion.
The responsibility here is to check (cla, ins, p1, p2) are valid as defined in the “Command Syntax” boxes of NIST SP 800-73-4, and return early errors.
The individual piv::Command TryFroms then further interpret these validated parameters.
impl<'l> Copy for Command<'l>
impl<'l> Eq for Command<'l>
impl<'l> StructuralEq for Command<'l>
impl<'l> StructuralPartialEq for Command<'l>
Auto Trait Implementations
impl<'l> RefUnwindSafe for Command<'l>
impl<'l> Send for Command<'l>
impl<'l> Sync for Command<'l>
impl<'l> Unpin for Command<'l>
impl<'l> UnwindSafe for Command<'l>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more