Skip to main content

HostDecryptionKeyOptions

Trait HostDecryptionKeyOptions 

Source
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§

Source

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

Source

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<()>

Whether the minted key may unwrap. Disabled by default.

Source

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

Source§

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<()>

Whether the minted key may unwrap. Disabled by default.

Source§

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.

Source§

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

Implementors§