Aktualizr
C++ SOTA Client
Public Member Functions | Public Attributes | List of all members
Uptane::Targets Class Reference
Inheritance diagram for Uptane::Targets:
[legend]
Collaboration diagram for Uptane::Targets:
[legend]

Public Member Functions

 Targets (const Json::Value &json)
 
 Targets (RepositoryType repo, const Role &role, const Json::Value &json, const std::shared_ptr< MetaWithKeys > &signer)
 
bool operator== (const Targets &rhs) const
 
const std::string & correlation_id () const
 
void clear ()
 
std::vector< Uptane::TargetgetTargets (const Uptane::EcuSerial &ecu_id, const Uptane::HardwareIdentifier &hw_id) const
 
- Public Member Functions inherited from Uptane::MetaWithKeys
 MetaWithKeys ()
 An empty metadata object that could contain keys.
 
 MetaWithKeys (const Json::Value &json)
 A 'real' metadata object that can contain keys (Root or Targets with delegations) and that implements TUF signature validation. More...
 
 MetaWithKeys (RepositoryType repo, const Role &role, const Json::Value &json, const std::shared_ptr< MetaWithKeys > &signer)
 
void ParseKeys (RepositoryType repo, const Json::Value &keys)
 
void ParseRole (RepositoryType repo, const Json::ValueConstIterator &it, const Role &role, const std::string &meta_role)
 
virtual void UnpackSignedObject (RepositoryType repo, const Role &role, const Json::Value &signed_object)
 Take a JSON blob that contains a signatures/signed component that is supposedly for a given role, and check that is suitably signed. More...
 
bool operator== (const MetaWithKeys &rhs) const
 
- Public Member Functions inherited from Uptane::BaseMeta
 BaseMeta (const Json::Value &json)
 
 BaseMeta (RepositoryType repo, const Role &role, const Json::Value &json, const std::shared_ptr< MetaWithKeys > &signer)
 
int version () const
 
TimeStamp expiry () const
 
bool isExpired (const TimeStamp &now) const
 
Json::Value original () const
 
bool operator== (const BaseMeta &rhs) const
 

Public Attributes

std::vector< Uptane::Targettargets
 
std::vector< std::string > delegated_role_names_
 
std::map< Role, std::vector< std::string > > paths_for_role_
 
std::map< Role, bool > terminating_role_
 

Additional Inherited Members

- Public Types inherited from Uptane::MetaWithKeys
enum  Policy { kRejectAll, kAcceptAll, kCheck }
 
- Protected Attributes inherited from Uptane::MetaWithKeys
std::map< KeyId, PublicKeykeys_
 
std::set< std::pair< Role, KeyId > > keys_for_role_
 
std::map< Role, int64_t > thresholds_for_role_
 
- Protected Attributes inherited from Uptane::BaseMeta
int version_ = {-1}
 
TimeStamp expiry_
 
Json::Value original_object_
 
- Static Protected Attributes inherited from Uptane::MetaWithKeys
static const int64_t kMinSignatures = 1
 
static const int64_t kMaxSignatures = 1000
 

Detailed Description

Definition at line 271 of file tuf.h.


The documentation for this class was generated from the following files: