Caffa  1.1.0
C++ Application Framework for Embedded Systems with introspection
cafRestAuthenticator.h
1 // ##################################################################################################
2 //
3 // Caffa
4 // Copyright (C) 2023- Kontur AS
5 //
6 // GNU Lesser General Public License Usage
7 // This library is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU Lesser General Public License as published by
9 // the Free Software Foundation; either version 2.1 of the License, or
10 // (at your option) any later version.
11 //
12 // This library is distributed in the hope that it will be useful, but WITHOUT ANY
13 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 // FITNESS FOR A PARTICULAR PURPOSE.
15 //
16 // See the GNU Lesser General Public License at <<http://www.gnu.org/licenses/lgpl-2.1.html>>
17 // for more details.
18 //
19 // ##################################################################################################
20 
21 #pragma once
22 
23 #include <string>
24 
25 namespace caffa::rpc
26 {
27 
37 {
38 public:
39  virtual ~RestAuthenticator() = default;
40 
44  virtual std::string sslCertificate() const = 0;
45 
49  virtual std::string sslKey() const = 0;
50 
54  virtual std::string sslDhParameters() const = 0;
55 
60  virtual bool authenticate( const std::string& authorisationHeader ) const = 0;
61 };
62 } // namespace caffa::rpc
virtual bool authenticate(const std::string &authorisationHeader) const =0
Definition: cafRestAuthenticator.h:36
virtual std::string sslCertificate() const =0
virtual std::string sslDhParameters() const =0
virtual std::string sslKey() const =0
Definition: cafRestAppService.h:28