Skip to main content

HostMacKeyOptions

Trait HostMacKeyOptions 

Source
pub trait HostMacKeyOptions {
    // Required methods
    fn new(&mut self) -> Result<Resource<MacKeyOptions>>;
    fn can_sign(
        &mut self,
        self_: Resource<MacKeyOptions>,
        allowed: bool,
    ) -> Result<()>;
    fn can_verify(
        &mut self,
        self_: Resource<MacKeyOptions>,
        allowed: bool,
    ) -> Result<()>;
    fn extractable(
        &mut self,
        self_: Resource<MacKeyOptions>,
        allowed: bool,
    ) -> Result<()>;
}

Required Methods§

Source

fn new(&mut self) -> Result<Resource<MacKeyOptions>>

Source

fn can_sign( &mut self, self_: Resource<MacKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key may sign. Disabled by default.

Source

fn can_verify( &mut self, self_: Resource<MacKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key may verify. Disabled by default.

Source

fn extractable( &mut self, self_: Resource<MacKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key’s material may be exported. Disabled by default.

Implementations on Foreign Types§

Source§

impl<_T: HostMacKeyOptions + ?Sized + Send> HostMacKeyOptions for &mut _T

Source§

fn can_sign( &mut self, self_: Resource<MacKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key may sign. Disabled by default.

Source§

fn can_verify( &mut self, self_: Resource<MacKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key may verify. Disabled by default.

Source§

fn extractable( &mut self, self_: Resource<MacKeyOptions>, allowed: bool, ) -> Result<()>

Whether the minted key’s material may be exported. Disabled by default.

Source§

fn new(&mut self) -> Result<Resource<MacKeyOptions>>

Implementors§