CCF
|
#include <cose_auth.h>
Inherits ccf::MemberCOSESign1AuthnPolicy.
Public Member Functions | |
std::unique_ptr< AuthnIdentity > | authenticate (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) | |
![]() | |
MemberCOSESign1AuthnPolicy (std::optional< std::string > gov_msg_type_=std::nullopt) | |
~MemberCOSESign1AuthnPolicy () | |
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 |
![]() | |
virtual | ~AuthnPolicy ()=default |
Static Public Attributes | |
static constexpr auto | SECURITY_SCHEME_NAME = "active_member_cose_sign1" |
![]() | |
static constexpr auto | SECURITY_SCHEME_NAME = "member_cose_sign1" |
Additional Inherited Members | |
![]() | |
std::optional< std::string > | gov_msg_type = std::nullopt |
![]() | |
static const OpenAPISecuritySchema | security_schema |
Active Member COSE Sign1 Authentication Policy
Extends MemberCOSESign1AuthPolicy, to also require that the signer's state is Active
|
overridevirtual |
Implements ccf::AuthnPolicy.
|
inlineoverridevirtual |
Implements ccf::AuthnPolicy.
ccf::MemberCOSESign1AuthnPolicy::MemberCOSESign1AuthnPolicy | ( | std::optional< std::string > | gov_msg_type_ = std::nullopt | ) |
|
staticconstexpr |