Struct webauthn_rs::prelude::AttestationCa
source · [−]pub struct AttestationCa {
pub ca: X509,
}
Expand description
A structure representing an Attestation CA and other options associated to this CA.
Generally depending on the Attestation CA in use, this can help determine properties of the authenticator that is in use.
Fields
ca: X509
The x509 root CA of the attestation chain that a security key will be attested to.
Implementations
sourceimpl AttestationCa
impl AttestationCa
sourcepub fn new_from_der(data: &[u8]) -> Result<AttestationCa, WebauthnError>
pub fn new_from_der(data: &[u8]) -> Result<AttestationCa, WebauthnError>
Create a customised attestation CA from a DER public key.
sourcepub fn apple_webauthn_root_ca() -> AttestationCa
pub fn apple_webauthn_root_ca() -> AttestationCa
The Apple TouchID and FaceID root CA.
sourcepub fn yubico_u2f_root_ca_serial_457200631() -> AttestationCa
pub fn yubico_u2f_root_ca_serial_457200631() -> AttestationCa
The yubico u2f root ca. Applies to all devices up to and including series 5.
The microsoft root CA for TPM attestation.
Not ellible for strict - many TPM’s use SHA1 in signatures, which means they are potentially weak.
In the future we may reject RS1 signatures, allowing this to be moved into the strict category.
sourcepub fn nitrokey_fido2_root_ca() -> AttestationCa
pub fn nitrokey_fido2_root_ca() -> AttestationCa
Nitrokey root CA for their FIDO2 device range.
Not elligble for strict - hardware is difficult to interact with, low quality, and easy to break or destroy.
sourcepub fn nitrokey_u2f_root_ca() -> AttestationCa
pub fn nitrokey_u2f_root_ca() -> AttestationCa
Nitrokey root CA for their U2F device range.
Not elligble for strict - hardware is difficult to interact with, low quality, and easy to break or destroy.
sourcepub fn android_root_ca_1() -> AttestationCa
pub fn android_root_ca_1() -> AttestationCa
Android ROOT CA 1
sourcepub fn android_root_ca_2() -> AttestationCa
pub fn android_root_ca_2() -> AttestationCa
Android ROOT CA 2
sourcepub fn android_root_ca_3() -> AttestationCa
pub fn android_root_ca_3() -> AttestationCa
Android ROOT CA 3
sourcepub fn android_software_ca() -> AttestationCa
pub fn android_software_ca() -> AttestationCa
Android SOFTWARE ONLY root CA
sourcepub fn google_safetynet_ca() -> AttestationCa
pub fn google_safetynet_ca() -> AttestationCa
Google SafetyNet CA (for android)
Trait Implementations
sourceimpl Clone for AttestationCa
impl Clone for AttestationCa
sourcefn clone(&self) -> AttestationCa
fn clone(&self) -> AttestationCa
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AttestationCa
impl Debug for AttestationCa
sourceimpl<'de> Deserialize<'de> for AttestationCa
impl<'de> Deserialize<'de> for AttestationCa
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<AttestationCa, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AttestationCa, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Into<SerialisableAttestationCa> for AttestationCa
impl Into<SerialisableAttestationCa> for AttestationCa
sourcefn into(self) -> SerialisableAttestationCa
fn into(self) -> SerialisableAttestationCa
Converts this type into the (usually inferred) input type.
sourceimpl Serialize for AttestationCa
impl Serialize for AttestationCa
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl TryFrom<SerialisableAttestationCa> for AttestationCa
impl TryFrom<SerialisableAttestationCa> for AttestationCa
type Error = WebauthnError
type Error = WebauthnError
The type returned in the event of a conversion error.
sourcefn try_from(
data: SerialisableAttestationCa
) -> Result<AttestationCa, <AttestationCa as TryFrom<SerialisableAttestationCa>>::Error>
fn try_from(
data: SerialisableAttestationCa
) -> Result<AttestationCa, <AttestationCa as TryFrom<SerialisableAttestationCa>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AttestationCa
impl Send for AttestationCa
impl Sync for AttestationCa
impl Unpin for AttestationCa
impl UnwindSafe for AttestationCa
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more