Struct webauthn_rs::prelude::AttestationCa
pub struct AttestationCa {
pub ca: X509,
pub aaguids: BTreeSet<Uuid>,
}
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.
aaguids: BTreeSet<Uuid>
If not empty, the set of acceptable AAGUIDS (Device Ids) that are allowed to be attested as trusted by this CA. AAGUIDS that are not in this set, but signed by this CA will NOT be trusted.
Implementations§
§impl AttestationCa
impl AttestationCa
pub fn get_kid(&self) -> Result<Vec<u8>, ErrorStack>
pub fn get_kid(&self) -> Result<Vec<u8>, ErrorStack>
Retrieve the Key Identifier for this Attestation Ca
pub fn set_aaguids(&mut self, aaguids: BTreeSet<Uuid>)
pub fn set_aaguids(&mut self, aaguids: BTreeSet<Uuid>)
Update the set of aaguids this Attestation CA allows. If an empty btreeset is provided then this Attestation CA allows all Aaguids.
pub fn insert_aaguid(&mut self, aaguid: Uuid)
pub fn insert_aaguid(&mut self, aaguid: Uuid)
Update the set of aaguids this Attestation CA allows by adding this AAGUID to the allowed set.
pub fn new_from_der(data: &[u8]) -> Result<AttestationCa, ErrorStack>
pub fn new_from_der(data: &[u8]) -> Result<AttestationCa, ErrorStack>
Create a customised attestation CA from a DER public key.
Trait Implementations§
§impl Clone for AttestationCa
impl Clone for AttestationCa
§fn clone(&self) -> AttestationCa
fn clone(&self) -> AttestationCa
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more