CCF
|
#include <cose_auth.h>
Inherits ccf::UserCOSESign1AuthnPolicy.
Public Member Functions | |
TypedUserCOSESign1AuthnPolicy (const std::string &expected_msg_type_, const std::string &msg_type_name_="ccf.msg.type", const std::string &msg_created_at_name_="ccf.msg.created_at") | |
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 |
![]() | |
UserCOSESign1AuthnPolicy (const std::string &msg_type_name_="ccf.msg.type", const std::string &msg_created_at_name_="ccf.msg.created_at") | |
~UserCOSESign1AuthnPolicy () | |
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 = "typed_user_cose_sign1" |
![]() | |
static constexpr auto | SECURITY_SCHEME_NAME = "user_cose_sign1" |
Additional Inherited Members | |
![]() | |
virtual std::unique_ptr< UserCOSESign1AuthnIdentity > | _authenticate (ccf::kv::ReadOnlyTx &tx, const std::shared_ptr< ccf::RpcContext > &ctx, std::string &error_reason) |
![]() | |
static const OpenAPISecuritySchema | security_schema |
Typed User COSE Sign1 Authentication Policy
Extends UserCOSESign1AuthPolicy, to require that a specific message type is present in the corresponding protected header.
|
inline |
|
overridevirtual |
Implements ccf::AuthnPolicy.
|
inlineoverridevirtual |
Implements ccf::AuthnPolicy.
|
staticconstexpr |