CCF
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
ccf::AllOfAuthnPolicy Class Reference

#include <all_of_auth.h>

Inherits ccf::AuthnPolicy.

Public Types

using Policies = std::map< std::string, std::shared_ptr< AuthnPolicy > >
 

Public Member Functions

 AllOfAuthnPolicy (Policies _policies)
 
 AllOfAuthnPolicy (const std::vector< std::shared_ptr< AuthnPolicy > > &_policies)
 
std::unique_ptr< AuthnIdentityauthenticate (ccf::kv::ReadOnlyTx &, const std::shared_ptr< ccf::RpcContext > &, std::string &) override
 
void set_unauthenticated_error (std::shared_ptr< ccf::RpcContext >, std::string &&) override
 
std::optional< OpenAPISecuritySchemaget_openapi_security_schema () const override
 
std::string get_security_scheme_name () override
 
- Public Member Functions inherited from ccf::AuthnPolicy
virtual ~AuthnPolicy ()=default
 

Member Typedef Documentation

◆ Policies

using ccf::AllOfAuthnPolicy::Policies = std::map<std::string, std::shared_ptr<AuthnPolicy> >

Constructor & Destructor Documentation

◆ AllOfAuthnPolicy() [1/2]

ccf::AllOfAuthnPolicy::AllOfAuthnPolicy ( Policies  _policies)

◆ AllOfAuthnPolicy() [2/2]

ccf::AllOfAuthnPolicy::AllOfAuthnPolicy ( const std::vector< std::shared_ptr< AuthnPolicy > > &  _policies)

Member Function Documentation

◆ authenticate()

std::unique_ptr< AuthnIdentity > ccf::AllOfAuthnPolicy::authenticate ( ccf::kv::ReadOnlyTx tx,
const std::shared_ptr< ccf::RpcContext > &  ctx,
std::string &  error_reason 
)
overridevirtual

Implements ccf::AuthnPolicy.

◆ get_openapi_security_schema()

std::optional< OpenAPISecuritySchema > ccf::AllOfAuthnPolicy::get_openapi_security_schema ( ) const
overridevirtual

Implements ccf::AuthnPolicy.

◆ get_security_scheme_name()

std::string ccf::AllOfAuthnPolicy::get_security_scheme_name ( )
overridevirtual

Implements ccf::AuthnPolicy.

◆ set_unauthenticated_error()

void ccf::AllOfAuthnPolicy::set_unauthenticated_error ( std::shared_ptr< ccf::RpcContext ctx,
std::string &&  error_reason 
)
overridevirtual

Reimplemented from ccf::AuthnPolicy.


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