RequestResponseAuth

Trait RequestResponseAuth 

Source
pub trait RequestResponseAuth: Send + Sync {
    // Required methods
    fn sign_request(&self, r: &Request) -> RgResult<Request>;
    fn verify(
        &self,
        response: Response,
        intended_pk: Option<&PublicKey>,
    ) -> RgResult<Response>;
    fn clone_box(&self) -> Box<dyn RequestResponseAuth>;
}

Required Methods§

Source

fn sign_request(&self, r: &Request) -> RgResult<Request>

Source

fn verify( &self, response: Response, intended_pk: Option<&PublicKey>, ) -> RgResult<Response>

Source

fn clone_box(&self) -> Box<dyn RequestResponseAuth>

Trait Implementations§

Source§

impl Clone for Box<dyn RequestResponseAuth>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§