ImagingTools Core SDK
CLdapCredentialControllerComp.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ACF includes
6#include <icomp/CComponentBase.h>
7
8// ImtCore includes
9#include <imtauth/ICredentialController.h>
10
11
12namespace imtauth
13{
14
15
16class CLdapCredentialControllerComp:
17 public icomp::CComponentBase,
18 public imtauth::ICredentialController
19{
20public:
21 typedef icomp::CComponentBase BaseClass;
22
23 I_BEGIN_COMPONENT(CLdapCredentialControllerComp);
24 I_REGISTER_INTERFACE(imtauth::ICredentialController);
25 I_END_COMPONENT;
26
27protected:
28 // reimplemented (iser::ICredentialController)
29 virtual bool CheckCredential(const QByteArray& login, const QByteArray& password) const override;
30};
31
32
33} // namespace imtauth
34
35