pub struct RelyingPartyCM {
pub name: Option<String>,
pub id: Option<String>,
pub hash: Option<SHA256Hash>,
}ctap2) and (crate features ctap2-management) 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 more