pub enum AnyCa {
File(FileCa),
Intermediate(IntermediateCa),
}Expand description
The CA a controller runs with.
Variants§
File(FileCa)
A standalone fabric.
Intermediate(IntermediateCa)
An intermediate under a root CA elsewhere.
Trait Implementations§
Source§impl CertificateAuthority for AnyCa
impl CertificateAuthority for AnyCa
Source§fn intermediate_cert(&self) -> Option<&[u8]>
fn intermediate_cert(&self) -> Option<&[u8]>
The intermediate certificate (ICAC) NOCs are signed with, Matter TLV
encoding, or
None when the root signs them directly.Source§async fn allocate_node_id(&self) -> Result<u64, Error>
async fn allocate_node_id(&self) -> Result<u64, Error>
Allocate a node id that no other node of the fabric has.
Source§async fn issue_noc<C: Crypto>(
&self,
crypto: C,
csr: &[u8],
node_id: u64,
cats: &[u32],
) -> Result<Vec<u8>, Error>
async fn issue_noc<C: Crypto>( &self, crypto: C, csr: &[u8], node_id: u64, cats: &[u32], ) -> Result<Vec<u8>, Error>
Issue a NOC for the public key in
csr (DER PKCS#10) and node_id,
with up to three CASE Authenticated Tags.Source§fn signing_key(&self) -> Option<&[u8; 32]>
fn signing_key(&self) -> Option<&[u8; 32]>
The key NOCs are signed with, if this process holds it.
Auto Trait Implementations§
impl !Freeze for AnyCa
impl !RefUnwindSafe for AnyCa
impl !Sync for AnyCa
impl Send for AnyCa
impl Unpin for AnyCa
impl UnsafeUnpin for AnyCa
impl UnwindSafe for AnyCa
Blanket Implementations§
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
§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.
impl<T> MaybeSend for Twhere
T: ?Sized,
impl<T> MaybeSendSync for Twhere
T: ?Sized,
§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.