Ice 3.8
Slice API Reference
Loading...
Searching...
No Matches
PermissionsVerifier.ice
1// Copyright (c) ZeroC, Inc.
2
3#pragma once
4
5[["cpp:dll-export:GLACIER2_API"]]
6[["cpp:doxygen:include:Glacier2/Glacier2.h"]]
7[["cpp:header-ext:h"]]
8
9[["cpp:include:Glacier2/Config.h"]]
10
11[["js:module:@zeroc/ice"]]
12
13#include "SSLInfo.ice"
14
15["java:identifier:com.zeroc.Glacier2"]
17{
18 /// The exception that is thrown when a client is not allowed to create a session.
20 {
21 /// The reason why permission was denied.
22 string reason;
23 }
24
25 /// Represents an object that checks user permissions. The Glacier2 router and other services use a
26 /// {@link PermissionsVerifier} proxy when the user is authenticated using a user ID and password.
28 {
29 /// Checks if a user is authorized to establish a session.
30 /// @param userId The user ID.
31 /// @param password The user's password.
32 /// @param reason The reason why access was denied.
33 /// @return `true` if access is granted, `false` otherwise.
34 /// @throws PermissionDeniedException Thrown when the user's access is denied. This exception can be thrown
35 /// instead of returning `false` with a reason set in the reason out parameter.
36 ["cpp:const"]
37 idempotent bool checkPermissions(string userId, string password, out string reason)
39 }
40
41 /// Represents an object that checks user permissions. The Glacier2 router and other services use an
42 /// {@link SSLPermissionsVerifier} proxy when the user is authenticated through an SSL certificate.
44 {
45 /// Checks if a user is authorized to establish a session.
46 /// @param info The SSL information.
47 /// @param reason The reason why access was denied.
48 /// @return `true` if access is granted, `false` otherwise.
49 /// @throws PermissionDeniedException Thrown when the user's access is denied. This exception can be thrown
50 /// instead of returning `false` with a reason set in the reason out parameter.
51 ["cpp:const"]
52 idempotent bool authorize(SSLInfo info, out string reason)
54 }
55}
string reason
The reason why permission was denied.
The exception that is thrown when a client is not allowed to create a session.
idempotent bool checkPermissions(string userId, string password, out string reason)
Checks if a user is authorized to establish a session.
Represents an object that checks user permissions.
idempotent bool authorize(SSLInfo info, out string reason)
Checks if a user is authorized to establish a session.
Represents an object that checks user permissions.
Communicate through firewalls and across NATs.
Represents information gathered from an incoming SSL connection and used for authentication and autho...
Definition SSLInfo.ice:21