pub enum BackupCodeStorage {
Plain,
Encrypted,
Custom(Arc<dyn TwoFactorCipher>),
}Expand description
Storage protection for the JSON array of backup codes.
Variants§
Plain
Store the serialized JSON array unchanged.
Encrypted
Encrypt using the authentication secret, matching the upstream default.
Custom(Arc<dyn TwoFactorCipher>)
Encrypt and decrypt the serialized array using application callbacks.
Trait Implementations§
Source§impl Clone for BackupCodeStorage
impl Clone for BackupCodeStorage
Auto Trait Implementations§
impl !RefUnwindSafe for BackupCodeStorage
impl !UnwindSafe for BackupCodeStorage
impl Freeze for BackupCodeStorage
impl Send for BackupCodeStorage
impl Sync for BackupCodeStorage
impl Unpin for BackupCodeStorage
impl UnsafeUnpin for BackupCodeStorage
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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