19#ifndef CORE_TRUST_CACHED_AGENT_H_
20#define CORE_TRUST_CACHED_AGENT_H_
33 typedef std::shared_ptr<CachedAgent>
Ptr;
Abstracts user-prompting functionality.
std::shared_ptr< CachedAgent > Ptr
To save some typing.
Request::Answer authenticate_request_with_parameters(const core::trust::Agent::RequestParameters ¶meters) override
From core::trust::Agent.
CachedAgent(const Configuration &configuration)
CachedAgent creates a new agent instance.
Contains functionality for implementing Ubuntu's trust model.
Summarizes all parameters for processing a trust request.
Creation time parameters.
std::shared_ptr< Store > store
The store caching user answers to trust prompts.
std::shared_ptr< Agent > agent
The actual agent implementation for prompting the user.
std::shared_ptr< Reporter > reporter
The reporter implementation.
Abstract capturer of internal events for post-mortem debugging/analysis purposes.
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.
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.
The Request struct encapsulates information about a trust request answered by the user.
Answer
Enumerates the possible answers given by a user.
#define CORE_TRUST_DLL_PUBLIC