]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: improve const-correctness of KeystoneToken class.
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Sun, 17 Apr 2016 11:12:22 +0000 (13:12 +0200)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 2 Jun 2016 13:12:10 +0000 (15:12 +0200)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/rgw/rgw_keystone.h

index 811261842b013f12df46bab8bc6e8eb410e3bffc..1bd68f21a23985ff31c31aea1510840d6a1bb734 100644 (file)
@@ -75,13 +75,13 @@ public:
 public:
   // FIXME: default ctor needs to be eradicated here
   KeystoneToken() = default;
-  time_t get_expires() { return token.expires; }
-  string get_domain_id() {return project.domain.id;};
-  string get_domain_name()  {return project.domain.name;};
-  string get_project_id() {return project.id;};
-  string get_project_name() {return project.name;};
-  string get_user_id() {return user.id;};
-  string get_user_name() {return user.name;};
+  time_t get_expires() const { return token.expires; }
+  string get_domain_id() const {return project.domain.id;};
+  string get_domain_name() const {return project.domain.name;};
+  string get_project_id() const {return project.id;};
+  string get_project_name() const {return project.name;};
+  string get_user_id() const {return user.id;};
+  string get_user_name() const {return user.name;};
   bool has_role(const string& r) const;
   bool expired() {
     uint64_t now = ceph_clock_now(NULL).sec();