pub struct FullCredential {
pub data: CredentialData,
/* private fields */
}Expand description
The core structure this authenticator creates and uses.
Fields§
§data: CredentialDataImplementations§
Source§impl FullCredential
impl FullCredential
pub fn new( ctap: CtapVersion, rp: &PublicKeyCredentialRpEntity, user: &PublicKeyCredentialUserEntity, algorithm: i32, key: Key, timestamp: u32, hmac_secret: Option<bool>, cred_protect: Option<CredentialProtectionPolicy>, large_blob_key: Option<ByteArray<32>>, third_party_payment: Option<bool>, nonce: [u8; 12], ) -> Self
pub fn id<T: Chacha8Poly1305 + Sha256>( &self, trussed: &mut T, key_encryption_key: KeyId, rp_id_hash: Option<&[u8; 32]>, ) -> Result<CredentialId>
pub fn serialize(&self) -> Result<Message>
pub fn deserialize(bytes: &Message) -> Result<Self>
Trait Implementations§
Source§impl Clone for FullCredential
impl Clone for FullCredential
Source§fn clone(&self) -> FullCredential
fn clone(&self) -> FullCredential
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FullCredential
impl Debug for FullCredential
Source§impl Deref for FullCredential
impl Deref for FullCredential
Source§impl<'de> Deserialize<'de> for FullCredential
impl<'de> Deserialize<'de> for FullCredential
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&FullCredential> for StrippedCredential
impl From<&FullCredential> for StrippedCredential
Source§fn from(credential: &FullCredential) -> Self
fn from(credential: &FullCredential) -> Self
Converts to this type from the input type.
Source§impl Ord for FullCredential
impl Ord for FullCredential
Source§impl PartialEq<&FullCredential> for FullCredential
impl PartialEq<&FullCredential> for FullCredential
Source§impl PartialEq for FullCredential
Compare credentials based on key + timestamp.
impl PartialEq for FullCredential
Compare credentials based on key + timestamp.
Likely comparison based on timestamp would be good enough?
Source§impl PartialOrd<&FullCredential> for FullCredential
impl PartialOrd<&FullCredential> for FullCredential
Source§impl PartialOrd for FullCredential
Order by timestamp of creation.
impl PartialOrd for FullCredential
Order by timestamp of creation.
Source§impl Serialize for FullCredential
impl Serialize for FullCredential
impl Eq for FullCredential
Auto Trait Implementations§
impl Freeze for FullCredential
impl RefUnwindSafe for FullCredential
impl Send for FullCredential
impl Sync for FullCredential
impl Unpin for FullCredential
impl UnsafeUnpin for FullCredential
impl UnwindSafe for FullCredential
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