pub trait JournalistApi {
// Required methods
fn create_setup_request(&self) -> Result<JournalistSetupRequest, Error>;
fn create_ephemeral_key_request(&self) -> JournalistEphemeralKeyRequest;
}Expand description
Journalist-specific API operations.
Extends Api with enrollment and ephemeral key management.
Required Methods§
Sourcefn create_setup_request(&self) -> Result<JournalistSetupRequest, Error>
fn create_setup_request(&self) -> Result<JournalistSetupRequest, Error>
Creates an enrollment request for initial journalist onboarding.
Packages the journalist’s self-signed long-term key bundle into a
JournalistSetupRequest for submission to the newsroom (step 3.1).
§Errors
Returns an error if enrollment data cannot be constructed.
Sourcefn create_ephemeral_key_request(&self) -> JournalistEphemeralKeyRequest
fn create_ephemeral_key_request(&self) -> JournalistEphemeralKeyRequest
Creates a request to replenish ephemeral key bundles on the server.
Collects all current signed key bundles and packages them into a
JournalistEphemeralKeyRequest for upload to the server (step 3.2).
Implementors§
impl<T> JournalistApi for Twhere
T: Api + Enrollable + RestrictedApi,
Provide generic implementation, restricted to implementors RestrictedApi trait and
the Enrollable trait. Implementors of both those will automatically be able to use
this generic JournalistApi implementation, but downstream crates will be unable to
implement RestrictedApi. Originally this was defined at the trait level
(pub trait JournalistApi: Api + restricted::RestrictedApi), but hax was unable
to extract the trait.