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

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>)

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)

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>

Create a customised attestation CA from a DER public key.

Trait Implementations§

§

impl Clone for AttestationCa

§

fn clone(&self) -> AttestationCa

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for AttestationCa

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for AttestationCa

§

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
§

impl Into<SerialisableAttestationCa> for AttestationCa

§

fn into(self) -> SerialisableAttestationCa

Converts this type into the (usually inferred) input type.
§

impl Serialize for AttestationCa

§

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
§

impl TryFrom<&[u8]> for AttestationCa

§

type Error = ErrorStack

The type returned in the event of a conversion error.
§

fn try_from( data: &[u8] ) -> Result<AttestationCa, <AttestationCa as TryFrom<&[u8]>>::Error>

Performs the conversion.
§

impl TryFrom<AttestationCa> for AttestationCaList

§

type Error = ErrorStack

The type returned in the event of a conversion error.
§

fn try_from( att_ca: AttestationCa ) -> Result<AttestationCaList, <AttestationCaList as TryFrom<AttestationCa>>::Error>

Performs the conversion.
§

impl TryFrom<SerialisableAttestationCa> for AttestationCa

§

type Error = ErrorStack

The type returned in the event of a conversion error.
§

fn try_from( data: SerialisableAttestationCa ) -> Result<AttestationCa, <AttestationCa as TryFrom<SerialisableAttestationCa>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T> AsTaggedExplicit<'a> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self>

§

impl<'a, T> AsTaggedImplicit<'a> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,