Ice
3.9
Slice API Reference
Toggle main menu visibility
Loading...
Searching...
No Matches
Glacier2
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"
]
16
module
Glacier2
17
{
18
/// The exception that is thrown when a client is not allowed to create a session.
19
exception
PermissionDeniedException
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.
27
interface
PermissionsVerifier
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)
38
throws
PermissionDeniedException
;
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.
43
interface
SSLPermissionsVerifier
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)
53
throws
PermissionDeniedException
;
54
}
55
}
Glacier2::PermissionDeniedException::reason
string reason
The reason why permission was denied.
Definition
PermissionsVerifier.ice:22
Glacier2::PermissionDeniedException
The exception that is thrown when a client is not allowed to create a session.
Definition
PermissionsVerifier.ice:20
Glacier2::PermissionsVerifier::checkPermissions
idempotent bool checkPermissions(string userId, string password, out string reason)
Checks if a user is authorized to establish a session.
Glacier2::PermissionsVerifier
Represents an object that checks user permissions.
Definition
PermissionsVerifier.ice:28
Glacier2::SSLPermissionsVerifier::authorize
idempotent bool authorize(SSLInfo info, out string reason)
Checks if a user is authorized to establish a session.
Glacier2::SSLPermissionsVerifier
Represents an object that checks user permissions.
Definition
PermissionsVerifier.ice:44
Glacier2
Communicate through firewalls and across NATs.
Definition
PermissionsVerifier.ice:17
Glacier2::SSLInfo
Represents information gathered from an incoming SSL connection and used for authentication and autho...
Definition
SSLInfo.ice:23
Generated by
1.17.0