Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
PermissionsVerifier.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.0
4// <auto-generated>Generated from Slice file 'PermissionsVerifier.ice'.</auto-generated>
5// clang-format off
6
7#ifndef Glacier2_PermissionsVerifier_h_
8#define Glacier2_PermissionsVerifier_h_
9
11#include <Ice/Ice.h>
12#include "SSLInfo.h"
13#include <Glacier2/Config.h>
14
15#ifndef ICE_DISABLE_VERSION
16# if ICE_INT_VERSION / 100 != 308
17# error Ice version mismatch!
18# endif
19# if ICE_INT_VERSION % 100 >= 50
20# error Beta header file detected
21# endif
22# if ICE_INT_VERSION % 100 < 0
23# error Ice patch level mismatch!
24# endif
25#endif
26
27#ifndef GLACIER2_API
28# if defined(GLACIER2_API_EXPORTS)
29# define GLACIER2_API ICE_DECLSPEC_EXPORT
30# else
31# define GLACIER2_API ICE_DECLSPEC_IMPORT
32# endif
33#endif
34
35// NOLINTBEGIN(modernize-concat-nested-namespaces)
36
37namespace Glacier2
38{
40
42}
43
44namespace Glacier2
45{
46 /// Represents an object that checks user permissions. The Glacier2 router and other services use a
47 /// PermissionsVerifierPrx proxy when the user is authenticated using a user ID and password.
48 /// @remarks The Slice compiler generated this proxy class from Slice interface `::Glacier2::PermissionsVerifier`.
49 /// @headerfile Glacier2/Glacier2.h
50 class GLACIER2_API PermissionsVerifierPrx : public Ice::Proxy<PermissionsVerifierPrx, Ice::ObjectPrx>
51 {
52 public:
53 /// Constructs a proxy from a Communicator and a proxy string.
54 /// @param communicator The communicator of the new proxy.
55 /// @param proxyString The proxy string to parse.
56 PermissionsVerifierPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
57
58 /// Copy constructor. Constructs with a copy of the contents of @p other.
59 /// @param other The proxy to copy from.
60 PermissionsVerifierPrx(const PermissionsVerifierPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
61
62 /// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
63 /// @param other The proxy to move from.
64 PermissionsVerifierPrx(PermissionsVerifierPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
65
66 ~PermissionsVerifierPrx() override;
67
68 /// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
69 /// @param rhs The proxy to copy from.
70 /// @return A reference to this proxy.
72 {
73 if (this != &rhs)
74 {
76 }
77 return *this;
78 }
79
80 /// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
81 /// @param rhs The proxy to move from.
83 {
84 if (this != &rhs)
85 {
86 Ice::ObjectPrx::operator=(std::move(rhs));
87 }
88 return *this;
89 }
90
91 /// Checks if a user is authorized to establish a session.
92 /// @param userId The user ID.
93 /// @param password The user's password.
94 /// @param[out] reason The reason why access was denied.
95 /// @param context The request context.
96 /// @return `true` if access is granted, `false` otherwise.
97 /// @throws Glacier2::PermissionDeniedException Thrown when the user's access is denied. This exception can be thrown
98 /// instead of returning `false` with a reason set in the reason out parameter.
99 bool checkPermissions(std::string_view userId, std::string_view password, std::string& reason, const Ice::Context& context = Ice::noExplicitContext) const;
100
101 /// Checks if a user is authorized to establish a session.
102 /// @param userId The user ID.
103 /// @param password The user's password.
104 /// @param context The request context.
105 /// @return A future that becomes available when the invocation completes. This future holds:
106 /// - `returnValue` `true` if access is granted, `false` otherwise.
107 /// - `reason` The reason why access was denied.
108 [[nodiscard]] std::future<std::tuple<bool, std::string>> checkPermissionsAsync(std::string_view userId, std::string_view password, const Ice::Context& context = Ice::noExplicitContext) const;
109
110 /// Checks if a user is authorized to establish a session.
111 /// @param userId The user ID.
112 /// @param password The user's password.
113 /// @param response The response callback. It accepts:
114 /// - `returnValue` `true` if access is granted, `false` otherwise.
115 /// - `reason` The reason why access was denied.
116 /// @param exception The exception callback.
117 /// @param sent The sent callback.
118 /// @param context The request context.
119 /// @return A function that can be called to cancel the invocation locally.
120 // NOLINTNEXTLINE(modernize-use-nodiscard)
121 std::function<void()> checkPermissionsAsync(std::string_view userId, std::string_view password, std::function<void(bool, std::string)> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
122
123 /// @private
124 void _iceI_checkPermissions(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::tuple<bool, std::string>>>&, std::string_view, std::string_view, const Ice::Context&) const;
125
126 /// Gets the type ID of the associated Slice interface.
127 /// @return The string `"::Glacier2::PermissionsVerifier"`.
128 static const char* ice_staticId() noexcept;
129
130 /// @private
131 static PermissionsVerifierPrx _fromReference(IceInternal::ReferencePtr ref) { return PermissionsVerifierPrx{std::move(ref)}; }
132
133 protected:
134 /// @private
135 PermissionsVerifierPrx() = default;
136
137 /// @private
138 explicit PermissionsVerifierPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
139 {
140 }
141 };
142
143 /// Represents an object that checks user permissions. The Glacier2 router and other services use an
144 /// SSLPermissionsVerifierPrx proxy when the user is authenticated through an SSL certificate.
145 /// @remarks The Slice compiler generated this proxy class from Slice interface `::Glacier2::SSLPermissionsVerifier`.
146 /// @headerfile Glacier2/Glacier2.h
147 class GLACIER2_API SSLPermissionsVerifierPrx : public Ice::Proxy<SSLPermissionsVerifierPrx, Ice::ObjectPrx>
148 {
149 public:
150 /// Constructs a proxy from a Communicator and a proxy string.
151 /// @param communicator The communicator of the new proxy.
152 /// @param proxyString The proxy string to parse.
153 SSLPermissionsVerifierPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
154
155 /// Copy constructor. Constructs with a copy of the contents of @p other.
156 /// @param other The proxy to copy from.
157 SSLPermissionsVerifierPrx(const SSLPermissionsVerifierPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
158
159 /// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
160 /// @param other The proxy to move from.
161 SSLPermissionsVerifierPrx(SSLPermissionsVerifierPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
162
163 ~SSLPermissionsVerifierPrx() override;
164
165 /// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
166 /// @param rhs The proxy to copy from.
167 /// @return A reference to this proxy.
169 {
170 if (this != &rhs)
171 {
173 }
174 return *this;
175 }
176
177 /// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
178 /// @param rhs The proxy to move from.
180 {
181 if (this != &rhs)
182 {
183 Ice::ObjectPrx::operator=(std::move(rhs));
184 }
185 return *this;
186 }
187
188 /// Checks if a user is authorized to establish a session.
189 /// @param info The SSL information.
190 /// @param[out] reason The reason why access was denied.
191 /// @param context The request context.
192 /// @return `true` if access is granted, `false` otherwise.
193 /// @throws Glacier2::PermissionDeniedException Thrown when the user's access is denied. This exception can be thrown
194 /// instead of returning `false` with a reason set in the reason out parameter.
195 bool authorize(const SSLInfo& info, std::string& reason, const Ice::Context& context = Ice::noExplicitContext) const;
196
197 /// Checks if a user is authorized to establish a session.
198 /// @param info The SSL information.
199 /// @param context The request context.
200 /// @return A future that becomes available when the invocation completes. This future holds:
201 /// - `returnValue` `true` if access is granted, `false` otherwise.
202 /// - `reason` The reason why access was denied.
203 [[nodiscard]] std::future<std::tuple<bool, std::string>> authorizeAsync(const SSLInfo& info, const Ice::Context& context = Ice::noExplicitContext) const;
204
205 /// Checks if a user is authorized to establish a session.
206 /// @param info The SSL information.
207 /// @param response The response callback. It accepts:
208 /// - `returnValue` `true` if access is granted, `false` otherwise.
209 /// - `reason` The reason why access was denied.
210 /// @param exception The exception callback.
211 /// @param sent The sent callback.
212 /// @param context The request context.
213 /// @return A function that can be called to cancel the invocation locally.
214 // NOLINTNEXTLINE(modernize-use-nodiscard)
215 std::function<void()> authorizeAsync(const SSLInfo& info, std::function<void(bool, std::string)> response, std::function<void(std::exception_ptr)> exception = nullptr, std::function<void(bool)> sent = nullptr, const Ice::Context& context = Ice::noExplicitContext) const;
216
217 /// @private
218 void _iceI_authorize(const std::shared_ptr<IceInternal::OutgoingAsyncT<std::tuple<bool, std::string>>>&, const SSLInfo&, const Ice::Context&) const;
219
220 /// Gets the type ID of the associated Slice interface.
221 /// @return The string `"::Glacier2::SSLPermissionsVerifier"`.
222 static const char* ice_staticId() noexcept;
223
224 /// @private
225 static SSLPermissionsVerifierPrx _fromReference(IceInternal::ReferencePtr ref) { return SSLPermissionsVerifierPrx{std::move(ref)}; }
226
227 protected:
228 /// @private
229 SSLPermissionsVerifierPrx() = default;
230
231 /// @private
232 explicit SSLPermissionsVerifierPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
233 {
234 }
235 };
236}
237
238namespace Glacier2
239{
240 /// The exception that is thrown when a client is not allowed to create a session.
241 /// @remarks The Slice compiler generated this exception class from Slice exception `::Glacier2::PermissionDeniedException`.
242 /// @headerfile Glacier2/Glacier2.h
244 {
245 public:
246 /// Default constructor.
247 PermissionDeniedException() noexcept = default;
248
249 /// One-shot constructor to initialize all data members.
250 /// @param reason The reason why permission was denied.
251 PermissionDeniedException(std::string reason) noexcept :
252 reason(std::move(reason))
253 {
254 }
255
256 /// Copy constructor.
258
259 /// Creates a tuple with all the fields of this exception.
260 /// @return A tuple with all the fields of this exception.
261 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
262 {
263 return std::tie(reason);
264 }
265
266 void ice_printFields(std::ostream& os) const override;
267 /// Gets the type ID of the associated Slice exception.
268 /// @return The string `"::Glacier2::PermissionDeniedException"`.
269 static const char* ice_staticId() noexcept;
270
271 [[nodiscard]] const char* ice_id() const noexcept override;
272
273 void ice_throw() const override;
274
275 /// The reason why permission was denied.
276 std::string reason;
277
278 protected:
279 /// @private
280 void _writeImpl(Ice::OutputStream*) const override;
281
282 /// @private
283 void _readImpl(Ice::InputStream*) override;
284 };
285}
286
287namespace Glacier2
288{
289 /// Represents an object that checks user permissions. The Glacier2 router and other services use a
290 /// PermissionsVerifierPrx proxy when the user is authenticated using a user ID and password.
291 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::Glacier2::PermissionsVerifier`.
292 /// @headerfile Glacier2/Glacier2.h
293 class GLACIER2_API PermissionsVerifier : public virtual Ice::Object
294 {
295 public:
296 /// The associated proxy type.
298
299 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
300 /// @param request The incoming request.
301 /// @param sendResponse The callback to send the response.
302 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
303
304 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
305
306 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
307
308 /// Checks if a user is authorized to establish a session.
309 /// @param userId The user ID.
310 /// @param password The user's password.
311 /// @param[out] reason The reason why access was denied.
312 /// @param current The Current object of the incoming request.
313 /// @return `true` if access is granted, `false` otherwise.
314 /// @throws Glacier2::PermissionDeniedException Thrown when the user's access is denied. This exception can be thrown
315 /// instead of returning `false` with a reason set in the reason out parameter.
316 virtual bool checkPermissions(std::string userId, std::string password, std::string& reason, const Ice::Current& current) const = 0;
317
318 /// @private
319 void _iceD_checkPermissions(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>) const;
320
321 /// Gets the type ID of the associated Slice interface.
322 /// @return The string `"::Glacier2::PermissionsVerifier"`.
323 static const char* ice_staticId() noexcept;
324 };
325
326 /// A shared pointer to a PermissionsVerifier.
328
329 /// Represents an object that checks user permissions. The Glacier2 router and other services use an
330 /// SSLPermissionsVerifierPrx proxy when the user is authenticated through an SSL certificate.
331 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::Glacier2::SSLPermissionsVerifier`.
332 /// @headerfile Glacier2/Glacier2.h
333 class GLACIER2_API SSLPermissionsVerifier : public virtual Ice::Object
334 {
335 public:
336 /// The associated proxy type.
338
339 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
340 /// @param request The incoming request.
341 /// @param sendResponse The callback to send the response.
342 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
343
344 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
345
346 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
347
348 /// Checks if a user is authorized to establish a session.
349 /// @param info The SSL information.
350 /// @param[out] reason The reason why access was denied.
351 /// @param current The Current object of the incoming request.
352 /// @return `true` if access is granted, `false` otherwise.
353 /// @throws Glacier2::PermissionDeniedException Thrown when the user's access is denied. This exception can be thrown
354 /// instead of returning `false` with a reason set in the reason out parameter.
355 virtual bool authorize(SSLInfo info, std::string& reason, const Ice::Current& current) const = 0;
356
357 /// @private
358 void _iceD_authorize(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>) const;
359
360 /// Gets the type ID of the associated Slice interface.
361 /// @return The string `"::Glacier2::SSLPermissionsVerifier"`.
362 static const char* ice_staticId() noexcept;
363 };
364
365 /// A shared pointer to a SSLPermissionsVerifier.
367}
368
369namespace Glacier2
370{
371 /// Represents an object that checks user permissions. The Glacier2 router and other services use a
372 /// PermissionsVerifierPrx proxy when the user is authenticated using a user ID and password.
373 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::Glacier2::PermissionsVerifier`.
374 /// @headerfile Glacier2/Glacier2.h
375 class GLACIER2_API AsyncPermissionsVerifier : public virtual Ice::Object
376 {
377 public:
378 /// The associated proxy type.
380
381 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
382 /// @param request The incoming request.
383 /// @param sendResponse The callback to send the response.
384 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
385
386 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
387
388 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
389
390 /// Checks if a user is authorized to establish a session.
391 /// @param userId The user ID.
392 /// @param password The user's password.
393 /// @param response The response callback. It accepts:
394 /// - `returnValue` `true` if access is granted, `false` otherwise.
395 /// - `reason` The reason why access was denied.
396 /// @param exception The exception callback.
397 /// @param current The Current object of the incoming request.
398 /// @throws Glacier2::PermissionDeniedException Thrown when the user's access is denied. This exception can be thrown
399 /// instead of returning `false` with a reason set in the reason out parameter.
400 virtual void checkPermissionsAsync(std::string userId, std::string password, std::function<void(bool returnValue, std::string_view reason)> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) const = 0;
401
402 /// @private
403 void _iceD_checkPermissions(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>) const;
404
405 /// Gets the type ID of the associated Slice interface.
406 /// @return The string `"::Glacier2::PermissionsVerifier"`.
407 static const char* ice_staticId() noexcept;
408 };
409
410 /// A shared pointer to an AsyncPermissionsVerifier.
412
413 /// Represents an object that checks user permissions. The Glacier2 router and other services use an
414 /// SSLPermissionsVerifierPrx proxy when the user is authenticated through an SSL certificate.
415 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::Glacier2::SSLPermissionsVerifier`.
416 /// @headerfile Glacier2/Glacier2.h
417 class GLACIER2_API AsyncSSLPermissionsVerifier : public virtual Ice::Object
418 {
419 public:
420 /// The associated proxy type.
422
423 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
424 /// @param request The incoming request.
425 /// @param sendResponse The callback to send the response.
426 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
427
428 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
429
430 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
431
432 /// Checks if a user is authorized to establish a session.
433 /// @param info The SSL information.
434 /// @param response The response callback. It accepts:
435 /// - `returnValue` `true` if access is granted, `false` otherwise.
436 /// - `reason` The reason why access was denied.
437 /// @param exception The exception callback.
438 /// @param current The Current object of the incoming request.
439 /// @throws Glacier2::PermissionDeniedException Thrown when the user's access is denied. This exception can be thrown
440 /// instead of returning `false` with a reason set in the reason out parameter.
441 virtual void authorizeAsync(SSLInfo info, std::function<void(bool returnValue, std::string_view reason)> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) const = 0;
442
443 /// @private
444 void _iceD_authorize(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>) const;
445
446 /// Gets the type ID of the associated Slice interface.
447 /// @return The string `"::Glacier2::SSLPermissionsVerifier"`.
448 static const char* ice_staticId() noexcept;
449 };
450
451 /// A shared pointer to an AsyncSSLPermissionsVerifier.
453}
454
455// NOLINTEND(modernize-concat-nested-namespaces)
456
457#include <Ice/PopDisableWarnings.h>
458#endif
void dispatch(Ice::IncomingRequest &request, std::function< void(Ice::OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
PermissionsVerifierPrx ProxyType
The associated proxy type.
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
virtual void checkPermissionsAsync(std::string userId, std::string password, std::function< void(bool returnValue, std::string_view reason)> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current) const =0
Checks if a user is authorized to establish a session.
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
Represents an object that checks user permissions.
virtual void authorizeAsync(SSLInfo info, std::function< void(bool returnValue, std::string_view reason)> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current) const =0
Checks if a user is authorized to establish a session.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
void dispatch(Ice::IncomingRequest &request, std::function< void(Ice::OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
SSLPermissionsVerifierPrx ProxyType
The associated proxy type.
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
Represents an object that checks user permissions.
std::string reason
The reason why permission was denied.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
void ice_throw() const override
Throws this exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
PermissionDeniedException(const PermissionDeniedException &) noexcept=default
Copy constructor.
PermissionDeniedException() noexcept=default
Default constructor.
PermissionsVerifierPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
std::function< void()> checkPermissionsAsync(std::string_view userId, std::string_view password, std::function< void(bool, std::string)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Checks if a user is authorized to establish a session.
PermissionsVerifierPrx & operator=(PermissionsVerifierPrx &&rhs) noexcept
Move assignment operator.
std::future< std::tuple< bool, std::string > > checkPermissionsAsync(std::string_view userId, std::string_view password, const Ice::Context &context=Ice::noExplicitContext) const
Checks if a user is authorized to establish a session.
PermissionsVerifierPrx & operator=(const PermissionsVerifierPrx &rhs) noexcept
Copy assignment operator.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
PermissionsVerifierPrx(const PermissionsVerifierPrx &other) noexcept
Copy constructor.
PermissionsVerifierPrx(PermissionsVerifierPrx &&other) noexcept
Move constructor.
bool checkPermissions(std::string_view userId, std::string_view password, std::string &reason, const Ice::Context &context=Ice::noExplicitContext) const
Checks if a user is authorized to establish a session.
Represents an object that checks user permissions.
void dispatch(Ice::IncomingRequest &request, std::function< void(Ice::OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
PermissionsVerifierPrx ProxyType
The associated proxy type.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
virtual bool checkPermissions(std::string userId, std::string password, std::string &reason, const Ice::Current &current) const =0
Checks if a user is authorized to establish a session.
Represents an object that checks user permissions.
SSLPermissionsVerifierPrx & operator=(const SSLPermissionsVerifierPrx &rhs) noexcept
Copy assignment operator.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
std::function< void()> authorizeAsync(const SSLInfo &info, std::function< void(bool, std::string)> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Checks if a user is authorized to establish a session.
bool authorize(const SSLInfo &info, std::string &reason, const Ice::Context &context=Ice::noExplicitContext) const
Checks if a user is authorized to establish a session.
SSLPermissionsVerifierPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
std::future< std::tuple< bool, std::string > > authorizeAsync(const SSLInfo &info, const Ice::Context &context=Ice::noExplicitContext) const
Checks if a user is authorized to establish a session.
SSLPermissionsVerifierPrx(const SSLPermissionsVerifierPrx &other) noexcept
Copy constructor.
SSLPermissionsVerifierPrx & operator=(SSLPermissionsVerifierPrx &&rhs) noexcept
Move assignment operator.
SSLPermissionsVerifierPrx(SSLPermissionsVerifierPrx &&other) noexcept
Move constructor.
Represents an object that checks user permissions.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
SSLPermissionsVerifierPrx ProxyType
The associated proxy type.
virtual bool authorize(SSLInfo info, std::string &reason, const Ice::Current &current) const =0
Checks if a user is authorized to establish a session.
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
void dispatch(Ice::IncomingRequest &request, std::function< void(Ice::OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
Represents an object that checks user permissions.
Represents a request received by a connection.
ObjectPrx & operator=(const ObjectPrx &rhs) noexcept=default
Copy assignment operator.
The base class for all Ice proxies.
Definition Proxy.h:232
Object() noexcept=default
Default constructor.
The base class for servants.
Definition Object.h:21
Represents the response to an incoming request.
Provides typed proxy functions.
Definition Proxy.h:45
Abstract base class for all exceptions defined in Slice.
std::shared_ptr< AsyncSSLPermissionsVerifier > AsyncSSLPermissionsVerifierPtr
A shared pointer to an AsyncSSLPermissionsVerifier.
std::shared_ptr< SSLPermissionsVerifier > SSLPermissionsVerifierPtr
A shared pointer to a SSLPermissionsVerifier.
std::shared_ptr< PermissionsVerifier > PermissionsVerifierPtr
A shared pointer to a PermissionsVerifier.
std::shared_ptr< AsyncPermissionsVerifier > AsyncPermissionsVerifierPtr
A shared pointer to an AsyncPermissionsVerifier.
Communicate through firewalls and across NATs.
std::shared_ptr< Communicator > CommunicatorPtr
A shared pointer to a Communicator.
const Context noExplicitContext
Marker value used to indicate that no explicit request context was passed to a proxy invocation.
std::map< std::string, std::string, std::less<> > Context
Represents additional information carried by an Ice request.
Definition Context.h:34
The Ice RPC framework.
Definition SampleEvent.h:66
Represents information gathered from an incoming SSL connection and used for authentication and autho...
Definition SSLInfo.h:51
Provides information about an incoming request being dispatched.
Definition Current.h:18