pub enum CredSubCommand {
Unknown,
GetCredsMetadata,
EnumerateRPsBegin,
EnumerateCredentialsBegin(SHA256Hash),
DeleteCredential(PublicKeyCredentialDescriptorCM),
UpdateUserInformation(PublicKeyCredentialDescriptorCM, UserCM),
}ctap2) and (crate features ctap2-management) only.Expand description
Wrapper for credential management command types, which can be passed to CredentialManagementRequestTrait::new.
Static commands (not requiring authentication) are declared as constants of CredentialManagementRequestTrait, see:
Variants§
Unknown
GetCredsMetadata
Gets metadata about the authenticator’s discoverable credential storage.
See CredentialStorageMetadata for more details.
EnumerateRPsBegin
Starts enumerating all relying parties with discoverable credentials stored on this authenticator.
To get the next relying party, use ENUMERATE_RPS_GET_NEXT.
EnumerateCredentialsBegin(SHA256Hash)
Starts enumerating all credentials for a relying party, by the SHA-256 hash of the relying party ID.
To enumerate credentials by relying party ID (rather than its hash), use
enumerate_credentials_by_rpid().
To get the next credential, use ENUMERATE_CREDENTIALS_GET_NEXT.
DeleteCredential(PublicKeyCredentialDescriptorCM)
Deletes a discoverable credential from the authenticator.
UpdateUserInformation(PublicKeyCredentialDescriptorCM, UserCM)
Updates user information for a discoverable credential.
This is only available on authenticators supporting CTAP 2.1 or later.
Implementations§
Source§impl CredSubCommand
impl CredSubCommand
Sourcepub fn prf(&self) -> Vec<u8> ⓘ
pub fn prf(&self) -> Vec<u8> ⓘ
The PRF (pseudo-random function) for CredSubCommand, used to sign requests for PIN/UV authentication.
Sourcepub fn enumerate_credentials_by_rpid(rp_id: &str) -> Self
pub fn enumerate_credentials_by_rpid(rp_id: &str) -> Self
Creates an EnumerateCredentialsBegin for enumerating credentials by relying party ID.
See EnumerateCredentialsBegin for enumerating credentials by the SHA-256 hash of the relying party ID.
Trait Implementations§
Source§impl Clone for CredSubCommand
impl Clone for CredSubCommand
Source§fn clone(&self) -> CredSubCommand
fn clone(&self) -> CredSubCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more