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_REQUEST_H_
20 #define CORE_TRUST_REQUEST_H_
57 typedef std::chrono::system_clock::duration
Duration;
59 typedef std::chrono::system_clock::time_point
Timestamp;
62 static constexpr
const unsigned int default_feature = 0;
181 #endif // CORE_TRUST_REQUEST_H_
The Request struct encapsulates information about a trust request answered by the user.
std::shared_ptr< Agent > agent
The Agent implementation to dispatch a request to the user.
std::chrono::system_clock::duration Duration
Duration in wallclock time.
core::trust::Pid application_pid
The process id of the requesting application.
Summarizes all parameters for processing a trust request.
std::shared_ptr< Store > store
The trust store to be used for caching purposes.
CORE_TRUST_DLL_PUBLIC std::ostream & operator<<(std::ostream &out, const Request::Answer &a)
operator << pretty prints answers to the provided output stream.
Answer
Enumerates the possible answers given by a user.
std::string application_id
The id of the requesting application.
CORE_TRUST_DLL_PUBLIC bool operator==(const Agent::RequestParameters &lhs, const Agent::RequestParameters &rhs)
Returns true iff lhs and rhs are equal.
#define CORE_TRUST_DLL_PUBLIC
std::chrono::system_clock::time_point Timestamp
Requests are timestamped with wallclock time.
std::string description
An extended description that should be presented to the user on prompting.
Feature feature
The service-specific feature identifier.
CORE_TRUST_DLL_PUBLIC Request::Answer process_trust_request(const RequestParameters ¶ms)
Processes an incoming trust-request by an application, tries to lookup a previous reply before issuin...
core::trust::Uid application_uid
The user id under which the requesting application runs.