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