A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::actions::AuthorizationContextStore Class Reference

Bounded verified contexts scoped to the receiving Session and stream. More...

#include <cpp/a11/actions/authorization.h>

Classes

struct  State
 

Public Member Functions

 AuthorizationContextStore (size_t max_contexts_per_stream=128)
 
 ~AuthorizationContextStore ()
 
absl::StatusOr< AuthorizationContext > Install (const std::shared_ptr< Action > &action, std::shared_ptr< const VerifiedAuthorization > authorization, bool make_default=true, std::optional< std::string > replace=std::nullopt)
 
absl::StatusOr< std::shared_ptr< const VerifiedAuthorization > > Resolve (const std::shared_ptr< Action > &action)
 
absl::Status ClearStream (const Action &action)
 
void ClearSession (std::string_view session_id)
 

Detailed Description

Bounded verified contexts scoped to the receiving Session and stream.

Constructor & Destructor Documentation

◆ AuthorizationContextStore()

a11::actions::AuthorizationContextStore::AuthorizationContextStore ( size_t  max_contexts_per_stream = 128)
explicit

◆ ~AuthorizationContextStore()

a11::actions::AuthorizationContextStore::~AuthorizationContextStore ( )
default

Member Function Documentation

◆ ClearSession()

void a11::actions::AuthorizationContextStore::ClearSession ( std::string_view  session_id)

◆ ClearStream()

absl::Status a11::actions::AuthorizationContextStore::ClearStream ( const Action &  action)

◆ Install()

absl::StatusOr< AuthorizationContext > a11::actions::AuthorizationContextStore::Install ( const std::shared_ptr< Action > &  action,
std::shared_ptr< const VerifiedAuthorization >  authorization,
bool  make_default = true,
std::optional< std::string >  replace = std::nullopt 
)

◆ Resolve()

absl::StatusOr< std::shared_ptr< const VerifiedAuthorization > > a11::actions::AuthorizationContextStore::Resolve ( const std::shared_ptr< Action > &  action)

The documentation for this class was generated from the following files: