pub enum ResidentKeyRequirement {
Discouraged,
Preferred,
Required,
}Expand description
This enumeration’s values describe the Relying Party’s requirements for client-side [discoverable credentials] (formerly known as resident credentials or resident keys).
https://w3c.github.io/webauthn/#enumdef-residentkeyrequirement
Variants§
Discouraged
The Relying Party prefers creating a server-side credential, but will accept a client-side discoverable credential. The client and authenticator SHOULD create a server-side credential if possible.
Note: A Relying Party cannot require that a created credential is a server-side credential and the Credential Properties Extension may not return a value for the rk property. Because of this, it may be the case that it does not know if a credential is a server-side credential or not and thus does not know whether creating a second credential with the same user handle will evict the first.
Preferred
The Relying Party strongly prefers creating a client-side discoverable credential, but will
accept a server-side credential. The client and authenticator SHOULD create a discoverable
credential if possible. For example, the client SHOULD guide the user through setting up
user verification if needed to create a discoverable credential. This takes precedence
over the setting of AuthenticatorSelectionCriteria::user_verification
Required
The Relying Party requires a client-side discoverable credential. The client MUST return an error if a client-side discoverable credential cannot be created.
Trait Implementations§
source§impl Clone for ResidentKeyRequirement
impl Clone for ResidentKeyRequirement
source§fn clone(&self) -> ResidentKeyRequirement
fn clone(&self) -> ResidentKeyRequirement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResidentKeyRequirement
impl Debug for ResidentKeyRequirement
source§impl<'de> Deserialize<'de> for ResidentKeyRequirement
impl<'de> Deserialize<'de> for ResidentKeyRequirement
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 ResidentKeyRequirement
impl PartialEq for ResidentKeyRequirement
source§fn eq(&self, other: &ResidentKeyRequirement) -> bool
fn eq(&self, other: &ResidentKeyRequirement) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for ResidentKeyRequirement
impl Serialize for ResidentKeyRequirement
impl Copy for ResidentKeyRequirement
impl Eq for ResidentKeyRequirement
impl StructuralEq for ResidentKeyRequirement
impl StructuralPartialEq for ResidentKeyRequirement
Auto Trait Implementations§
impl RefUnwindSafe for ResidentKeyRequirement
impl Send for ResidentKeyRequirement
impl Sync for ResidentKeyRequirement
impl Unpin for ResidentKeyRequirement
impl UnwindSafe for ResidentKeyRequirement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.