pub struct PrfInputOwned {
pub first: Vec<u8>,
pub second: Option<Vec<u8>>,
pub ext_req: ExtensionReq,
}Expand description
Owned version of PrfInput.
When relying on NonDiscoverableCredentialRequestOptions, it’s recommended to use credential-specific PRF
inputs that are continuously rolled over. One uses this type for such a thing.
Fields§
§first: Vec<u8>§second: Option<Vec<u8>>§ext_req: ExtensionReqNote this is only applicable for authenticators that implement the
prf extension on top of the
hmac-secret
extension since the data is encrypted and is part of the AuthenticatorData.
Trait Implementations§
Source§impl Clone for PrfInputOwned
impl Clone for PrfInputOwned
Source§impl Debug for PrfInputOwned
impl Debug for PrfInputOwned
Source§impl<'de> Deserialize<'de> for PrfInputOwned
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PrfInputOwned
Available on crate feature
serde only.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>,
Deserializes a struct based on
AuthenticationExtensionsPRFValues.
first is required and
must not be null.
second is not required
and can be null.
Note PrfInputOwned::ext_req is set to ExtensionReq::Allow.
impl Eq for PrfInputOwned
Source§impl PartialEq for PrfInputOwned
impl PartialEq for PrfInputOwned
Source§impl Serialize for PrfInputOwned
Available on crate feature serde only.
impl Serialize for PrfInputOwned
Available on crate feature
serde only.impl StructuralPartialEq for PrfInputOwned
Auto Trait Implementations§
impl Freeze for PrfInputOwned
impl RefUnwindSafe for PrfInputOwned
impl Send for PrfInputOwned
impl Sync for PrfInputOwned
impl Unpin for PrfInputOwned
impl UnsafeUnpin for PrfInputOwned
impl UnwindSafe for PrfInputOwned
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
Mutably borrows from an owned value. Read more