matc::certmanager

Trait CertManager

Source
pub trait CertManager: Send + Sync {
    // Required methods
    fn get_ca_cert(&self) -> Result<Vec<u8>>;
    fn get_ca_key(&self) -> Result<SecretKey>;
    fn get_ca_public_key(&self) -> Result<Vec<u8>>;
    fn get_user_cert(&self, id: u64) -> Result<Vec<u8>>;
    fn get_user_key(&self, id: u64) -> Result<SecretKey>;
    fn get_fabric_id(&self) -> u64;
}

Required Methods§

Source

fn get_ca_cert(&self) -> Result<Vec<u8>>

Source

fn get_ca_key(&self) -> Result<SecretKey>

Source

fn get_ca_public_key(&self) -> Result<Vec<u8>>

Source

fn get_user_cert(&self, id: u64) -> Result<Vec<u8>>

Source

fn get_user_key(&self, id: u64) -> Result<SecretKey>

Source

fn get_fabric_id(&self) -> u64

Implementors§