Struct webauthn_authenticator_rs::ctap2::commands::RelyingPartyCM
source · pub struct RelyingPartyCM {
pub name: Option<String>,
pub id: Option<String>,
pub hash: Option<SHA256Hash>,
}ctap2-management and ctap2 only.Expand description
Potentially-abridged form of RelyingParty for credential management.
Per CTAP 2.1 specification §6.8.3: Enumerating RPs:
PublicKeyCredentialRpEntity, where theidfield should be included, and other fields may be included. See §6.8.7 Truncation of relying party identifiers about possible truncation of theidfield…
Most authenticators we’ve tested only store the id field. However, we’ve
observed authenticators from the same vendor, supporting the same CTAP
version sometimes also including the name and icon fields.
Note: the icon field is deprecated, so this field is not
supported by this library.
Fields§
§name: Option<String>The name of the relying party.
This might be omitted by the authenticator to save storage space.
id: Option<String>The relying party ID, typically a domain name.
This should be included by all authenticators, but the value
may be truncated (so hash might not be
sha256(id)).
hash: Option<SHA256Hash>The SHA-256 hash of the untruncated relying party ID.
Trait Implementations§
source§impl Clone for RelyingPartyCM
impl Clone for RelyingPartyCM
source§fn clone(&self) -> RelyingPartyCM
fn clone(&self) -> RelyingPartyCM
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RelyingPartyCM
impl Debug for RelyingPartyCM
source§impl Default for RelyingPartyCM
impl Default for RelyingPartyCM
source§fn default() -> RelyingPartyCM
fn default() -> RelyingPartyCM
source§impl<'de> Deserialize<'de> for RelyingPartyCM
impl<'de> Deserialize<'de> for RelyingPartyCM
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for RelyingPartyCM
impl PartialEq for RelyingPartyCM
source§fn eq(&self, other: &RelyingPartyCM) -> bool
fn eq(&self, other: &RelyingPartyCM) -> bool
self and other values to be equal, and is used
by ==.