CCF
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
ccf::NodeCertAuthnPolicy Class Reference

#include <cert_auth.h>

Inherits ccf::AuthnPolicy.

Public Member Functions

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

Static Public Attributes

static constexpr auto SECURITY_SCHEME_NAME = "node_cert"
 

Member Function Documentation

◆ authenticate()

std::unique_ptr< AuthnIdentity > ccf::NodeCertAuthnPolicy::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::NodeCertAuthnPolicy::get_openapi_security_schema ( ) const
inlineoverridevirtual

Implements ccf::AuthnPolicy.

◆ get_security_scheme_name()

virtual std::string ccf::NodeCertAuthnPolicy::get_security_scheme_name ( )
inlineoverridevirtual

Implements ccf::AuthnPolicy.

Member Data Documentation

◆ SECURITY_SCHEME_NAME

constexpr auto ccf::NodeCertAuthnPolicy::SECURITY_SCHEME_NAME = "node_cert"
staticconstexpr

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