Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
const std::string& get_user_id() const {return user.id;};
const std::string& get_user_name() const {return user.name;};
bool has_role(const string& r) const;
- bool expired() {
- uint64_t now = ceph_clock_now().sec();
- return (now >= (uint64_t)get_expires());
+ bool expired() const {
+ const uint64_t now = ceph_clock_now().sec();
+ return now >= static_cast<uint64_t>(get_expires());
}
int parse(CephContext* cct,
const std::string& token_str,