|
CCF
|
#include <cose_auth.h>
Inherits ccf::AuthnPolicy.
Inherited by ccf::ActiveMemberCOSESign1AuthnPolicy.
Public Member Functions | |
| MemberCOSESign1AuthnPolicy (std::optional< std::string > gov_msg_type_=std::nullopt) | |
| ~MemberCOSESign1AuthnPolicy () override | |
| std::unique_ptr< AuthnIdentity > | authenticate (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< OpenAPISecuritySchema > | get_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 = "member_cose_sign1" |
Protected Attributes | |
| std::optional< std::string > | gov_msg_type = std::nullopt |
Static Protected Attributes | |
| static const OpenAPISecuritySchema | security_schema |
Member COSE Sign1 Authentication Policy
Allows ccf.gov.msg.type and ccf.gov.msg.proposal_id protected header entries, to specify the type of governance action, and which proposal it refers to.
| ccf::MemberCOSESign1AuthnPolicy::MemberCOSESign1AuthnPolicy | ( | std::optional< std::string > | gov_msg_type_ = std::nullopt | ) |
|
overridedefault |
|
overridevirtual |
Implements ccf::AuthnPolicy.
|
inlineoverridevirtual |
Implements ccf::AuthnPolicy.
|
inlineoverridevirtual |
Implements ccf::AuthnPolicy.
|
overridevirtual |
Reimplemented from ccf::AuthnPolicy.
|
protected |
|
staticprotected |
|
staticconstexpr |