2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2015-06-22 17:51:11 +02:00
|
|
|
|
|
|
|
#ifndef APIUSER_H
|
|
|
|
#define APIUSER_H
|
|
|
|
|
|
|
|
#include "remote/i2-remote.hpp"
|
2018-01-18 13:50:38 +01:00
|
|
|
#include "remote/apiuser-ti.hpp"
|
2015-06-22 17:51:11 +02:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup remote
|
|
|
|
*/
|
2018-01-04 06:11:04 +01:00
|
|
|
class ApiUser final : public ObjectImpl<ApiUser>
|
2015-06-22 17:51:11 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
DECLARE_OBJECT(ApiUser);
|
|
|
|
DECLARE_OBJECTNAME(ApiUser);
|
|
|
|
|
2015-07-09 15:25:51 +02:00
|
|
|
static ApiUser::Ptr GetByClientCN(const String& cn);
|
2018-02-08 14:54:52 +01:00
|
|
|
static ApiUser::Ptr GetByAuthHeader(const String& auth_header);
|
2015-06-22 17:51:11 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* APIUSER_H */
|