pub struct FileCa { /* private fields */ }Expand description
A CA kept in one file of the state directory, readable by its owner only.
It holds the root key too, so it can mint a new intermediate; a deployment that wants the root offline uses a CA of its own instead.
Implementations§
Trait Implementations§
Source§impl CertificateAuthority for FileCa
impl CertificateAuthority for FileCa
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 FileCa
impl !RefUnwindSafe for FileCa
impl !Sync for FileCa
impl Send for FileCa
impl Unpin for FileCa
impl UnsafeUnpin for FileCa
impl UnwindSafe for FileCa
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.