pub struct AgentIdImpl { /* private fields */ }Implementations§
Trait Implementations§
Source§impl AgentIdService for AgentIdImpl
impl AgentIdService for AgentIdImpl
Source§fn mint_token<'life0, 'async_trait>(
&'life0 self,
req: Request<MintTokenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MintTokenResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn mint_token<'life0, 'async_trait>(
&'life0 self,
req: Request<MintTokenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<MintTokenResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Mint a token for a stored identity. Requires the server to hold the
private key for the requested fingerprint (vault password is provided
out-of-band, e.g. via
AGENTID_VAULT_PASSWORD).Source§fn verify_token<'life0, 'async_trait>(
&'life0 self,
req: Request<VerifyTokenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<VerifyTokenResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn verify_token<'life0, 'async_trait>(
&'life0 self,
req: Request<VerifyTokenRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<VerifyTokenResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Verify a token and return its decoded claims. No network calls.
Source§fn list_identities<'life0, 'async_trait>(
&'life0 self,
_req: Request<ListIdentitiesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListIdentitiesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_identities<'life0, 'async_trait>(
&'life0 self,
_req: Request<ListIdentitiesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListIdentitiesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List identities known to the vault (public information only).
Auto Trait Implementations§
impl Freeze for AgentIdImpl
impl RefUnwindSafe for AgentIdImpl
impl Send for AgentIdImpl
impl Sync for AgentIdImpl
impl Unpin for AgentIdImpl
impl UnsafeUnpin for AgentIdImpl
impl UnwindSafe for AgentIdImpl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request