|
CCF
|
#include <cose_auth.h>
Inherits ccf::UserCOSESign1AuthnPolicy.
Public Member Functions | |
| TypedUserCOSESign1AuthnPolicy (std::string expected_msg_type_, std::string msg_type_name_="ccf.msg.type", 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 |
Public Member Functions inherited from ccf::UserCOSESign1AuthnPolicy | |
| 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 = "typed_user_cose_sign1" |
Static Public Attributes inherited from ccf::UserCOSESign1AuthnPolicy | |
| static constexpr auto | SECURITY_SCHEME_NAME = "user_cose_sign1" |
Additional Inherited Members | |
Protected Member Functions inherited from ccf::UserCOSESign1AuthnPolicy | |
| virtual std::unique_ptr< UserCOSESign1AuthnIdentity > | _authenticate (ccf::kv::ReadOnlyTx &tx, const std::shared_ptr< ccf::RpcContext > &ctx, std::string &error_reason) |
Static Protected Attributes inherited from ccf::UserCOSESign1AuthnPolicy | |
| 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 |