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§
fn new(&mut self) -> Result<Resource<MacKeyOptions>>
Sourcefn can_sign(
&mut self,
self_: Resource<MacKeyOptions>,
allowed: bool,
) -> Result<()>
fn can_sign( &mut self, self_: Resource<MacKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key may sign. Disabled by default.
Sourcefn can_verify(
&mut self,
self_: Resource<MacKeyOptions>,
allowed: bool,
) -> Result<()>
fn can_verify( &mut self, self_: Resource<MacKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key may verify. Disabled by default.
Sourcefn extractable(
&mut self,
self_: Resource<MacKeyOptions>,
allowed: bool,
) -> Result<()>
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
impl<_T: HostMacKeyOptions + ?Sized + Send> HostMacKeyOptions for &mut _T
Source§fn can_sign(
&mut self,
self_: Resource<MacKeyOptions>,
allowed: bool,
) -> Result<()>
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<()>
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<()>
fn extractable( &mut self, self_: Resource<MacKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key’s material may be exported. Disabled by default.