Enum ClientKey
pub enum ClientKey {
Software(Zeroizing<String>),
HardwareAlias(String),
}Expand description
Where a freshly generated client private key lives after CSR creation.
Variants§
Software(Zeroizing<String>)
An extractable PKCS#8 PEM key (desktop / software path). The caller writes
it to client.key at 0600. Wrapped in [Zeroizing] so the in-memory
copy is wiped on drop.
HardwareAlias(String)
An opaque handle to a non-exportable key held in a platform hardware keystore (Secure Enclave / Android Keystore). The key never leaves the device; only this alias is recorded. Produced by mobile signers.
Auto Trait Implementations§
impl Freeze for ClientKey
impl RefUnwindSafe for ClientKey
impl Send for ClientKey
impl Sync for ClientKey
impl Unpin for ClientKey
impl UnsafeUnpin for ClientKey
impl UnwindSafe for ClientKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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