pub struct WebAuthnBridge { /* private fields */ }Implementations§
Source§impl WebAuthnBridge
impl WebAuthnBridge
pub fn new(cfg: WebAuthnBridgeConfig) -> Self
Sourcepub fn accept(
&self,
cred: &WebAuthnCredential,
) -> Result<ActorIdentity, BridgeError>
pub fn accept( &self, cred: &WebAuthnCredential, ) -> Result<ActorIdentity, BridgeError>
Promote a structured WebAuthn credential to a TrustForge
ActorIdentity using the bridge’s rp_id binding and algorithm
allow-list. Mirrors TS WebAuthnBridge.accept.
Sourcepub fn project(
&self,
identity: &ActorIdentity,
) -> Result<WebAuthnCredential, BridgeError>
pub fn project( &self, identity: &ActorIdentity, ) -> Result<WebAuthnCredential, BridgeError>
Reverse projection. Mirrors TS WebAuthnBridge.project.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebAuthnBridge
impl RefUnwindSafe for WebAuthnBridge
impl Send for WebAuthnBridge
impl Sync for WebAuthnBridge
impl Unpin for WebAuthnBridge
impl UnsafeUnpin for WebAuthnBridge
impl UnwindSafe for WebAuthnBridge
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more