[−][src]Struct webauthn_rs::ephemeral::WebauthnEphemeralConfig
An implementation of an Ephemeral (in-memory) webauthn configuration provider This stores all challenges and credentials in memory - IE they are lost on service restart. It's only really useful for demo-sites, testing and as an example/reference implementation of the WebauthnConfig trait.
IMPORTANT: DO NOT USE THIS IN PRODUCTION. YOU MUST IMPLEMENT YOUR OWN STRUCT
DERIVING WebauthnConfig
!!! This structure WILL be removed in a future release!
By default this implementation advertises support for all possible authenticators EVEN if they are NOT supported. This to is aid in test vector collection.
Implementations
impl WebauthnEphemeralConfig
[src]
pub fn new(
rp_name: &str,
rp_origin: &str,
rp_id: &str,
attachment: Option<AuthenticatorAttachment>
) -> Self
[src]
rp_name: &str,
rp_origin: &str,
rp_id: &str,
attachment: Option<AuthenticatorAttachment>
) -> Self
Create a new Webauthn Ephemeral instance. This requires a provided relying party name, origin and id. See the trait documentation for more detail on relying party name, origin and id.
Trait Implementations
impl Debug for WebauthnEphemeralConfig
[src]
impl WebauthnConfig for WebauthnEphemeralConfig
[src]
fn get_relying_party_name(&self) -> String
[src]
Returns the relying party name. See the trait documentation for more.
fn get_relying_party_id(&self) -> String
[src]
Returns the relying party id. See the trait documentation for more.
fn get_origin(&self) -> &String
[src]
Retrieve the relying party origin. See the trait documentation for more.
fn get_authenticator_attachment(&self) -> Option<AuthenticatorAttachment>
[src]
Retrieve the authenticator attachment hint. See the trait documentation for more.
fn get_attestation_preference(&self) -> AttestationConveyancePreference
[src]
Retrieve the authenticator attestation preference. See the trait documentation for more.
fn get_credential_algorithms(&self) -> Vec<COSEContentType>
[src]
Retrieve the list of support algorithms.
WARNING: This returns all possible algorithms, not just SUPPORTED ones. This is so that
fn get_authenticator_timeout(&self) -> u32
[src]
fn get_require_resident_key(&self) -> bool
[src]
fn get_extensions(&self) -> Option<BTreeMap<String, String>>
[src]
fn policy_verify_trust(&self, at: AttestationType) -> Result<Credential, ()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for WebauthnEphemeralConfig
impl Send for WebauthnEphemeralConfig
impl Sync for WebauthnEphemeralConfig
impl Unpin for WebauthnEphemeralConfig
impl UnwindSafe for WebauthnEphemeralConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,