pub struct KitVerifier {
pub rp_id: String,
pub rp_origins: Vec<String>,
pub attestation: AttestationPolicy,
pub policy: CredentialPolicy,
}Expand description
The production verifier: the kit’s protocol functions with the service’s config, credential policy, and strict attestation posture.
Fields§
§rp_id: StringRelying party id used in ceremony validation.
rp_origins: Vec<String>Origins accepted for ceremony validation.
attestation: AttestationPolicyRegistration-time attestation posture (strict).
policy: CredentialPolicyRegistration-time credential policy (algorithm allowlist, UV, backup).
Trait Implementations§
Source§impl CeremonyVerifier for KitVerifier
impl CeremonyVerifier for KitVerifier
Source§fn verify_registration(
&self,
challenge_bytes: &[u8],
client_data_json_b64: &str,
attestation_object_b64: &str,
rp_id: &str,
rp_origins: &[String],
) -> Result<RegistrationResult, WebauthnError>
fn verify_registration( &self, challenge_bytes: &[u8], client_data_json_b64: &str, attestation_object_b64: &str, rp_id: &str, rp_origins: &[String], ) -> Result<RegistrationResult, WebauthnError>
Verifies a registration ceremony against the stored challenge.
Source§fn verify_authentication(
&self,
params: &AuthenticationParams,
) -> Result<AuthenticationResult, WebauthnError>
fn verify_authentication( &self, params: &AuthenticationParams, ) -> Result<AuthenticationResult, WebauthnError>
Verifies an authentication ceremony for a known credential.
Source§impl Clone for KitVerifier
impl Clone for KitVerifier
Auto Trait Implementations§
impl Freeze for KitVerifier
impl RefUnwindSafe for KitVerifier
impl Send for KitVerifier
impl Sync for KitVerifier
impl Unpin for KitVerifier
impl UnsafeUnpin for KitVerifier
impl UnwindSafe for KitVerifier
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