|
CCF
|
#include <cose_auth.h>
Inherits ccf::AuthnPolicy.
Inherited by ccf::TypedUserCOSESign1AuthnPolicy.
Public Member Functions | |
| UserCOSESign1AuthnPolicy (std::string msg_type_name_="ccf.msg.type", std::string msg_created_at_name_="ccf.msg.created_at") | |
| ~UserCOSESign1AuthnPolicy () 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 = "user_cose_sign1" |
Protected Member Functions | |
| virtual std::unique_ptr< UserCOSESign1AuthnIdentity > | _authenticate (ccf::kv::ReadOnlyTx &tx, const std::shared_ptr< ccf::RpcContext > &ctx, std::string &error_reason) |
Static Protected Attributes | |
| static const OpenAPISecuritySchema | security_schema |
User COSE Sign1 Authentication Policy
Allows parametrising two optional protected header entries which are exposed to the endpoint if present.
|
inline |
|
overridedefault |
|
protectedvirtual |
|
overridevirtual |
Implements ccf::AuthnPolicy.
|
inlineoverridevirtual |
Implements ccf::AuthnPolicy.
|
inlineoverridevirtual |
Implements ccf::AuthnPolicy.
|
overridevirtual |
Reimplemented from ccf::AuthnPolicy.
|
staticprotected |
|
staticconstexpr |