pub trait CertificateAuthority {
// Required methods
fn fabric_id(&self) -> u64;
fn root_cert(&self) -> &[u8] ⓘ;
fn intermediate_cert(&self) -> Option<&[u8]>;
fn allocate_node_id(&self) -> impl Future<Output = Result<u64, Error>>;
fn issue_noc<C: Crypto>(
&self,
crypto: C,
csr: &[u8],
node_id: u64,
cats: &[u32],
) -> impl Future<Output = Result<Vec<u8>, Error>>;
fn signing_key(&self) -> Option<&[u8; 32]>;
fn ipk(&self) -> &[u8; 16];
// Provided method
fn admin_cat(&self) -> Option<u32> { ... }
}Expand description
Issues the fabric’s operational certificates.
Required Methods§
Sourcefn 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.
Sourcefn allocate_node_id(&self) -> impl Future<Output = Result<u64, Error>>
fn allocate_node_id(&self) -> impl Future<Output = Result<u64, Error>>
Allocate a node id that no other node of the fabric has.
Sourcefn issue_noc<C: Crypto>(
&self,
crypto: C,
csr: &[u8],
node_id: u64,
cats: &[u32],
) -> impl Future<Output = Result<Vec<u8>, Error>>
fn issue_noc<C: Crypto>( &self, crypto: C, csr: &[u8], node_id: u64, cats: &[u32], ) -> impl Future<Output = 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.
Sourcefn signing_key(&self) -> Option<&[u8; 32]>
fn signing_key(&self) -> Option<&[u8; 32]>
The key NOCs are signed with, if this process holds it.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".