[][src]Trait tink_testing_server::proto::keyset_server::Keyset

pub trait Keyset: Send + Sync + 'static {
#[must_use]    fn generate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<KeysetGenerateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<KeysetGenerateResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn public<'life0, 'async_trait>(
        &'life0 self,
        request: Request<KeysetPublicRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<KeysetPublicResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn to_json<'life0, 'async_trait>(
        &'life0 self,
        request: Request<KeysetToJsonRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<KeysetToJsonResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn from_json<'life0, 'async_trait>(
        &'life0 self,
        request: Request<KeysetFromJsonRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<KeysetFromJsonResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Generated trait containing gRPC methods that should be implemented for use with KeysetServer.

Required methods

#[must_use]fn generate<'life0, 'async_trait>(
    &'life0 self,
    request: Request<KeysetGenerateRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<KeysetGenerateResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Generates a new keyset from a template.

#[must_use]fn public<'life0, 'async_trait>(
    &'life0 self,
    request: Request<KeysetPublicRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<KeysetPublicResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Generates a public-key keyset from a private-key keyset.

#[must_use]fn to_json<'life0, 'async_trait>(
    &'life0 self,
    request: Request<KeysetToJsonRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<KeysetToJsonResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Converts a Keyset from Binary to Json Format

#[must_use]fn from_json<'life0, 'async_trait>(
    &'life0 self,
    request: Request<KeysetFromJsonRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<KeysetFromJsonResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Converts a Keyset from Json to Binary Format

Loading content...

Implementors

impl Keyset for KeysetServerImpl[src]

Loading content...