35 std::unique_ptr<AuthnIdentity>
caller;
40 return dynamic_cast<const T*
>(
caller.get());
46 const T* ident = try_get_caller<T>();
49 throw std::logic_error(
"Asked for unprovided identity type");
Definition claims_digest.h:10
Definition sha256_hash.h:16
std::function< void(CommandEndpointContext &args)> CommandEndpointFunction
Definition endpoint_context.h:55
std::function< void(ReadOnlyEndpointContext &args)> ReadOnlyEndpointFunction
Definition endpoint_context.h:96
std::function< void(CommittedTxInfo &info)> ConsensusCommittedEndpointFunction
Definition endpoint_context.h:82
std::function< void(CommandEndpointContext &ctx, const ccf::TxID &txid)> LocallyCommittedEndpointFunction
Definition endpoint_context.h:69
std::function< void(EndpointContext &args)> EndpointFunction
Definition endpoint_context.h:66
Definition app_interface.h:13
FinalTxStatus
Definition tx_status.h:36
Definition endpoint_context.h:27
const T & get_caller()
Definition endpoint_context.h:44
CommandEndpointContext(const std::shared_ptr< ccf::RpcContext > &r)
Definition endpoint_context.h:30
virtual ~CommandEndpointContext()=default
std::shared_ptr< ccf::RpcContext > rpc_ctx
Definition endpoint_context.h:34
const T * try_get_caller()
Definition endpoint_context.h:38
std::unique_ptr< AuthnIdentity > caller
Definition endpoint_context.h:35
Definition endpoint_context.h:72
std::shared_ptr< ccf::RpcContext > rpc_ctx
Definition endpoint_context.h:73
std::string commit_evidence
Definition endpoint_context.h:77
ccf::FinalTxStatus status
Definition endpoint_context.h:75
ccf::ClaimsDigest claims_digest
Definition endpoint_context.h:78
ccf::TxID tx_id
Definition endpoint_context.h:74
ccf::crypto::Sha256Hash write_set_digest
Definition endpoint_context.h:76
Definition endpoint_context.h:58
EndpointContext(const std::shared_ptr< ccf::RpcContext > &r, ccf::kv::Tx &t)
Definition endpoint_context.h:59
ccf::kv::Tx & tx
Definition endpoint_context.h:64
Definition endpoint_context.h:86
ReadOnlyEndpointContext(const std::shared_ptr< ccf::RpcContext > &r, ccf::kv::ReadOnlyTx &t)
Definition endpoint_context.h:87
ccf::kv::ReadOnlyTx & tx
Definition endpoint_context.h:93