trust-store
2.0.0
Provides a common implementation of a trust store to be used by trusted helpers.
|
Go to the documentation of this file.
19 #ifndef CORE_TRUST_CACHED_AGENT_H_
20 #define CORE_TRUST_CACHED_AGENT_H_
33 typedef std::shared_ptr<CachedAgent>
Ptr;
81 #endif // CORE_TRUST_CACHED_AGENT_H_
The Request struct encapsulates information about a trust request answered by the user.
std::shared_ptr< Agent > agent
The actual agent implementation for prompting the user.
std::shared_ptr< Reporter > reporter
The reporter implementation.
virtual void report_cached_answer_found(const core::trust::Agent::RequestParameters &, const core::trust::Request &)
Invoked whenever the implementation was able to resolve a cached request.
CachedAgent(const Configuration &configuration)
CachedAgent creates a new agent instance.
Abstracts user-prompting functionality.
Abstract capturer of internal events for post-mortem debugging/analysis purposes.
An agent implementation that uses a trust store instance to cache results.
Request::Answer authenticate_request_with_parameters(const core::trust::Agent::RequestParameters ¶meters) override
From core::trust::Agent.
Answer
Enumerates the possible answers given by a user.
std::shared_ptr< Store > store
The store caching user answers to trust prompts.
Summarizes all parameters for processing a trust request.
virtual void report_user_prompted_for_trust(const core::trust::Agent::RequestParameters &, const core::trust::Request::Answer &)
Invoked whenever the implementation called out to an agent to prompt the user for trust.
Creation time parameters.
std::shared_ptr< CachedAgent > Ptr
To save some typing.
#define CORE_TRUST_DLL_PUBLIC