irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods_osauth_auth_object.hpp
Go to the documentation of this file.
1 #ifndef __OSAUTH_AUTH_OBJECT_HPP__
2 #define __OSAUTH_AUTH_OBJECT_HPP__
3 
4 #include "irods_error.hpp"
5 #include "irods_auth_object.hpp"
6 
7 #include "rcConnect.h"
8 
9 // =-=-=-=-=-=-=-
10 // boost includes
11 #include <boost/shared_ptr.hpp>
12 
13 namespace irods {
14 
17  const std::string AUTH_OSAUTH_SCHEME( "osauth" );
18 
22  public:
25  osauth_auth_object( rError_t* _r_error );
27  virtual ~osauth_auth_object();
28 
32 
35  virtual bool operator==( const osauth_auth_object& ) const;
36 
39  virtual error resolve(
40  const std::string&, // interface for which to resolve
41  plugin_ptr& ); // ptr to resolved plugin
42 
46 
49  std::string user_name() const {
50  return user_name_;
51  }
52  std::string zone_name() const {
53  return zone_name_;
54  }
55  std::string digest() const {
56  return digest_;
57  }
58 
61  void user_name( const std::string& _un ) {
62  user_name_ = _un;
63  }
64  void zone_name( const std::string& _zn ) {
65  zone_name_ = _zn;
66  }
67  void digest( const std::string& _dd ) {
68  digest_ = _dd;
69  }
70 
71  private:
74  std::string user_name_;
75 
78  std::string zone_name_;
79 
82  std::string digest_;
83 
84  }; // class osauth_auth_object
85 
87  typedef boost::shared_ptr<osauth_auth_object> osauth_auth_object_ptr;
88 
89 }; // namespace irods
90 
91 #endif // __OSAUTH_AUTH_OBJECT_HPP__
irods::plugin_ptr
boost::shared_ptr< plugin_base > plugin_ptr
Definition: irods_first_class_object.hpp:18
irods::auth_object
Definition: irods_auth_object.hpp:16
irods::osauth_auth_object::zone_name
std::string zone_name() const
Definition: irods_osauth_auth_object.hpp:52
irods::osauth_auth_object::user_name
void user_name(const std::string &_un)
Definition: irods_osauth_auth_object.hpp:61
irods::osauth_auth_object::digest
void digest(const std::string &_dd)
Definition: irods_osauth_auth_object.hpp:67
irods::osauth_auth_object_ptr
boost::shared_ptr< osauth_auth_object > osauth_auth_object_ptr
Definition: irods_osauth_auth_object.hpp:87
irods::osauth_auth_object::get_re_vars
virtual error get_re_vars(rule_engine_vars_t &)
Definition: irods_osauth_auth_object.cpp:114
rcConnect.h
irods::AUTH_OSAUTH_SCHEME
const std::string AUTH_OSAUTH_SCHEME("osauth")
irods::osauth_auth_object::zone_name_
std::string zone_name_
Definition: irods_osauth_auth_object.hpp:78
irods::osauth_auth_object::digest_
std::string digest_
Definition: irods_osauth_auth_object.hpp:82
irods::osauth_auth_object::operator==
virtual bool operator==(const osauth_auth_object &) const
Definition: irods_osauth_auth_object.cpp:49
irods::osauth_auth_object::resolve
virtual error resolve(const std::string &, plugin_ptr &)
Definition: irods_osauth_auth_object.cpp:56
irods_auth_object.hpp
irods::osauth_auth_object::digest
std::string digest() const
Definition: irods_osauth_auth_object.hpp:55
rError_t
Definition: rodsError.h:24
irods::osauth_auth_object
Definition: irods_osauth_auth_object.hpp:21
irods
Definition: apiHandler.hpp:35
irods::osauth_auth_object::operator=
virtual osauth_auth_object & operator=(const osauth_auth_object &)
Definition: irods_osauth_auth_object.cpp:38
irods::error
Definition: irods_error.hpp:23
irods::osauth_auth_object::zone_name
void zone_name(const std::string &_zn)
Definition: irods_osauth_auth_object.hpp:64
irods::osauth_auth_object::osauth_auth_object
osauth_auth_object(rError_t *_r_error)
Definition: irods_osauth_auth_object.cpp:16
irods::osauth_auth_object::user_name_
std::string user_name_
Definition: irods_osauth_auth_object.hpp:74
irods_error.hpp
irods::osauth_auth_object::~osauth_auth_object
virtual ~osauth_auth_object()
Definition: irods_osauth_auth_object.cpp:23
irods::rule_engine_vars_t
std::map< std::string, std::string > rule_engine_vars_t
Definition: irods_first_class_object.hpp:20
irods::osauth_auth_object::user_name
std::string user_name() const
Definition: irods_osauth_auth_object.hpp:49