1 // Copyright (C) 2014-2017 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
2 // This Source Code Form is subject to the terms of the Mozilla Public
3 // License, v. 2.0. If a copy of the MPL was not distributed with this
4 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 
6 #ifndef VSOMEIP_V3_ENDPOINTS_INCLUDE_CREDENTIALS_HPP_
7 #define VSOMEIP_V3_ENDPOINTS_INCLUDE_CREDENTIALS_HPP_
8 
9 #include <vsomeip/primitive_types.hpp>
10 
11 namespace vsomeip_v3 {
12 
13 class credentials {
14 public:
15     static void activate_credentials(const int _fd);
16 
17     static void deactivate_credentials(const int _fd);
18 
19     static client_t receive_credentials(const int _fd, uid_t& _uid, gid_t& _gid);
20 
21     static void send_credentials(const int _fd, client_t _client);
22 };
23 
24 } // namespace vsomeip_v3
25 
26 #endif // VSOMEIP_V3_ENDPOINTS_INCLUDE_CREDENTIALS_HPP_
27