Skip to main content

AppKeySigner

Trait AppKeySigner 

Source
pub trait AppKeySigner: Send + Sync {
    // Required method
    fn sign_rs256<'life0, 'life1, 'async_trait>(
        &'life0 self,
        message: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Signs App JWTs with the App’s private key (RSASSA-PKCS1-v1_5, SHA-256).

Async because a real deployment’s signer is another process — the enclave — and signing is a round-trip to it.

Required Methods§

Source

fn sign_rs256<'life0, 'life1, 'async_trait>( &'life0 self, message: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

RS256 signature over message.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§