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

#include <cose_auth.h>

Inherits ccf::MemberCOSESign1AuthnPolicy.

Public Member Functions

std::unique_ptr< AuthnIdentityauthenticate (ccf::kv::ReadOnlyTx &tx, const std::shared_ptr< ccf::RpcContext > &ctx, std::string &error_reason) override
 
std::string get_security_scheme_name () override
 
 MemberCOSESign1AuthnPolicy (std::optional< std::string > gov_msg_type_=std::nullopt)
 
- Public Member Functions inherited from ccf::MemberCOSESign1AuthnPolicy
 MemberCOSESign1AuthnPolicy (std::optional< std::string > gov_msg_type_=std::nullopt)
 
 ~MemberCOSESign1AuthnPolicy ()
 
std::unique_ptr< AuthnIdentityauthenticate (ccf::kv::ReadOnlyTx &tx, const std::shared_ptr< ccf::RpcContext > &ctx, std::string &error_reason) override
 
void set_unauthenticated_error (std::shared_ptr< ccf::RpcContext > ctx, std::string &&error_reason) 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
 

Static Public Attributes

static constexpr auto SECURITY_SCHEME_NAME = "active_member_cose_sign1"
 
- Static Public Attributes inherited from ccf::MemberCOSESign1AuthnPolicy
static constexpr auto SECURITY_SCHEME_NAME = "member_cose_sign1"
 

Additional Inherited Members

- Protected Attributes inherited from ccf::MemberCOSESign1AuthnPolicy
std::optional< std::string > gov_msg_type = std::nullopt
 
- Static Protected Attributes inherited from ccf::MemberCOSESign1AuthnPolicy
static const OpenAPISecuritySchema security_schema
 

Detailed Description

Active Member COSE Sign1 Authentication Policy

Extends MemberCOSESign1AuthPolicy, to also require that the signer's state is Active

Member Function Documentation

◆ authenticate()

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

Implements ccf::AuthnPolicy.

◆ get_security_scheme_name()

std::string ccf::ActiveMemberCOSESign1AuthnPolicy::get_security_scheme_name ( )
inlineoverridevirtual

Implements ccf::AuthnPolicy.

◆ MemberCOSESign1AuthnPolicy()

ccf::MemberCOSESign1AuthnPolicy::MemberCOSESign1AuthnPolicy ( std::optional< std::string >  gov_msg_type_ = std::nullopt)

Member Data Documentation

◆ SECURITY_SCHEME_NAME

constexpr auto ccf::ActiveMemberCOSESign1AuthnPolicy::SECURITY_SCHEME_NAME = "active_member_cose_sign1"
staticconstexpr

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