pub struct AttestationTrust { /* private fields */ }Expand description
The trust anchors used to verify a device during commissioning.
Implementations§
Source§impl AttestationTrust
impl AttestationTrust
Sourcepub fn csa_test_roots() -> Self
pub fn csa_test_roots() -> Self
Construct from the bundled CSA test roots. Suitable for CSA-test
devices and the hermetic loopback; real certified devices need
Self::from_dirs pointed at production roots.
Sourcepub fn from_dirs(paa_dir: &Path, cd_dir: &Path) -> Result<Self, Error>
pub fn from_dirs(paa_dir: &Path, cd_dir: &Path) -> Result<Self, Error>
Load PAA roots from a directory of .der certificates and CD signing
roots from a directory (or single file) of .der certificates — the
production path (e.g. connectedhomeip’s credentials/production/...).
§Errors
Returns Error::Trust if a directory cannot be read or a certificate
fails to parse.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttestationTrust
impl RefUnwindSafe for AttestationTrust
impl Send for AttestationTrust
impl Sync for AttestationTrust
impl Unpin for AttestationTrust
impl UnsafeUnpin for AttestationTrust
impl UnwindSafe for AttestationTrust
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