pub trait HostDecryptionKeyOptions {
// Required methods
fn new(&mut self) -> Result<Resource<DecryptionKeyOptions>>;
fn can_decrypt(
&mut self,
self_: Resource<DecryptionKeyOptions>,
allowed: bool,
) -> Result<()>;
fn can_unwrap(
&mut self,
self_: Resource<DecryptionKeyOptions>,
allowed: bool,
) -> Result<()>;
fn extractable(
&mut self,
self_: Resource<DecryptionKeyOptions>,
allowed: bool,
) -> Result<()>;
}Required Methods§
fn new(&mut self) -> Result<Resource<DecryptionKeyOptions>>
Sourcefn can_decrypt(
&mut self,
self_: Resource<DecryptionKeyOptions>,
allowed: bool,
) -> Result<()>
fn can_decrypt( &mut self, self_: Resource<DecryptionKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key may decrypt. Disabled by default.
Sourcefn can_unwrap(
&mut self,
self_: Resource<DecryptionKeyOptions>,
allowed: bool,
) -> Result<()>
fn can_unwrap( &mut self, self_: Resource<DecryptionKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key may unwrap. Disabled by default.
Sourcefn extractable(
&mut self,
self_: Resource<DecryptionKeyOptions>,
allowed: bool,
) -> Result<()>
fn extractable( &mut self, self_: Resource<DecryptionKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key’s material may be exported
(decryption-key.export-key-jwk/-pkcs8 and the
to-wrap-input-* functions). Disabled by default.
Implementations on Foreign Types§
Source§impl<_T: HostDecryptionKeyOptions + ?Sized + Send> HostDecryptionKeyOptions for &mut _T
impl<_T: HostDecryptionKeyOptions + ?Sized + Send> HostDecryptionKeyOptions for &mut _T
Source§fn can_decrypt(
&mut self,
self_: Resource<DecryptionKeyOptions>,
allowed: bool,
) -> Result<()>
fn can_decrypt( &mut self, self_: Resource<DecryptionKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key may decrypt. Disabled by default.
Source§fn can_unwrap(
&mut self,
self_: Resource<DecryptionKeyOptions>,
allowed: bool,
) -> Result<()>
fn can_unwrap( &mut self, self_: Resource<DecryptionKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key may unwrap. Disabled by default.
Source§fn extractable(
&mut self,
self_: Resource<DecryptionKeyOptions>,
allowed: bool,
) -> Result<()>
fn extractable( &mut self, self_: Resource<DecryptionKeyOptions>, allowed: bool, ) -> Result<()>
Whether the minted key’s material may be exported
(decryption-key.export-key-jwk/-pkcs8 and the
to-wrap-input-* functions). Disabled by default.