1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */ 2 3 #ifndef APIUSER_H 4 #define APIUSER_H 5 6 #include "remote/i2-remote.hpp" 7 #include "remote/apiuser-ti.hpp" 8 9 namespace icinga 10 { 11 12 /** 13 * @ingroup remote 14 */ 15 class ApiUser final : public ObjectImpl<ApiUser> 16 { 17 public: 18 DECLARE_OBJECT(ApiUser); 19 DECLARE_OBJECTNAME(ApiUser); 20 21 static ApiUser::Ptr GetByClientCN(const String& cn); 22 static ApiUser::Ptr GetByAuthHeader(const String& auth_header); 23 }; 24 25 } 26 27 #endif /* APIUSER_H */ 28