zeroc-ice 3.7.11__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- Glacier2/Metrics_ice.py +82 -0
- Glacier2/PermissionsVerifierF_ice.py +32 -0
- Glacier2/PermissionsVerifier_ice.py +284 -0
- Glacier2/RouterF_ice.py +28 -0
- Glacier2/Router_ice.py +618 -0
- Glacier2/SSLInfo_ice.py +179 -0
- Glacier2/Session_ice.py +1103 -0
- Glacier2/__init__.py +226 -0
- Ice/BuiltinSequences_ice.py +65 -0
- Ice/CommunicatorF_ice.py +27 -0
- Ice/Communicator_ice.py +469 -0
- Ice/ConnectionF_ice.py +33 -0
- Ice/Connection_ice.py +680 -0
- Ice/Current_ice.py +175 -0
- Ice/EndpointF_ice.py +45 -0
- Ice/EndpointTypes_ice.py +54 -0
- Ice/Endpoint_ice.py +304 -0
- Ice/FacetMap_ice.py +27 -0
- Ice/Identity_ice.py +133 -0
- Ice/ImplicitContextF_ice.py +27 -0
- Ice/ImplicitContext_ice.py +119 -0
- Ice/InstrumentationF_ice.py +38 -0
- Ice/Instrumentation_ice.py +566 -0
- Ice/LocalException_ice.py +1715 -0
- Ice/LocatorF_ice.py +32 -0
- Ice/Locator_ice.py +728 -0
- Ice/LoggerF_ice.py +27 -0
- Ice/Logger_ice.py +96 -0
- Ice/Metrics_ice.py +864 -0
- Ice/ObjectAdapterF_ice.py +27 -0
- Ice/ObjectAdapter_ice.py +461 -0
- Ice/ObjectFactory_ice.py +68 -0
- Ice/PluginF_ice.py +30 -0
- Ice/Plugin_ice.py +136 -0
- Ice/ProcessF_ice.py +28 -0
- Ice/Process_ice.py +175 -0
- Ice/PropertiesAdmin_ice.py +247 -0
- Ice/PropertiesF_ice.py +31 -0
- Ice/Properties_ice.py +199 -0
- Ice/Py3/IceFuture.py +52 -0
- Ice/Py3/__init__.py +3 -0
- Ice/RemoteLogger_ice.py +617 -0
- Ice/RouterF_ice.py +28 -0
- Ice/Router_ice.py +350 -0
- Ice/ServantLocatorF_ice.py +27 -0
- Ice/ServantLocator_ice.py +110 -0
- Ice/SliceChecksumDict_ice.py +29 -0
- Ice/ValueFactory_ice.py +125 -0
- Ice/Version_ice.py +217 -0
- Ice/__init__.py +2008 -0
- IceBox/IceBox_ice.py +644 -0
- IceBox/__init__.py +10 -0
- IceGrid/Admin_ice.py +6662 -0
- IceGrid/Descriptor_ice.py +1795 -0
- IceGrid/Exception_ice.py +592 -0
- IceGrid/FileParser_ice.py +171 -0
- IceGrid/PluginFacade_ice.py +288 -0
- IceGrid/Registry_ice.py +985 -0
- IceGrid/Session_ice.py +406 -0
- IceGrid/UserAccountMapper_ice.py +166 -0
- IceGrid/__init__.py +17 -0
- IceMX/__init__.py +12 -0
- IcePatch2/FileInfo_ice.py +287 -0
- IcePatch2/FileServer_ice.py +555 -0
- IcePatch2/__init__.py +11 -0
- IcePy.cp313-win_amd64.pdb +0 -0
- IcePy.cp313-win_amd64.pyd +0 -0
- IceStorm/IceStorm_ice.py +1265 -0
- IceStorm/Metrics_ice.py +106 -0
- IceStorm/__init__.py +10 -0
- slice/Glacier2/Metrics.ice +88 -0
- slice/Glacier2/PermissionsVerifier.ice +111 -0
- slice/Glacier2/PermissionsVerifierF.ice +30 -0
- slice/Glacier2/Router.ice +186 -0
- slice/Glacier2/RouterF.ice +29 -0
- slice/Glacier2/SSLInfo.ice +59 -0
- slice/Glacier2/Session.ice +274 -0
- slice/Ice/BuiltinSequences.ice +59 -0
- slice/Ice/Communicator.ice +676 -0
- slice/Ice/CommunicatorF.ice +31 -0
- slice/Ice/Connection.ice +516 -0
- slice/Ice/ConnectionF.ice +33 -0
- slice/Ice/Current.ice +170 -0
- slice/Ice/Endpoint.ice +291 -0
- slice/Ice/EndpointF.ice +43 -0
- slice/Ice/EndpointTypes.ice +48 -0
- slice/Ice/FacetMap.ice +36 -0
- slice/Ice/Identity.ice +75 -0
- slice/Ice/ImplicitContext.ice +119 -0
- slice/Ice/ImplicitContextF.ice +30 -0
- slice/Ice/Instrumentation.ice +509 -0
- slice/Ice/InstrumentationF.ice +38 -0
- slice/Ice/LocalException.ice +1040 -0
- slice/Ice/Locator.ice +239 -0
- slice/Ice/LocatorF.ice +32 -0
- slice/Ice/Logger.ice +99 -0
- slice/Ice/LoggerF.ice +31 -0
- slice/Ice/Metrics.ice +436 -0
- slice/Ice/ObjectAdapter.ice +710 -0
- slice/Ice/ObjectAdapterF.ice +31 -0
- slice/Ice/ObjectFactory.ice +71 -0
- slice/Ice/Plugin.ice +131 -0
- slice/Ice/PluginF.ice +36 -0
- slice/Ice/Process.ice +64 -0
- slice/Ice/ProcessF.ice +31 -0
- slice/Ice/Properties.ice +244 -0
- slice/Ice/PropertiesAdmin.ice +87 -0
- slice/Ice/PropertiesF.ice +32 -0
- slice/Ice/RemoteLogger.ice +226 -0
- slice/Ice/Router.ice +103 -0
- slice/Ice/RouterF.ice +31 -0
- slice/Ice/ServantLocator.ice +136 -0
- slice/Ice/ServantLocatorF.ice +31 -0
- slice/Ice/SliceChecksumDict.ice +36 -0
- slice/Ice/ValueFactory.ice +133 -0
- slice/Ice/Version.ice +51 -0
- slice/IceBT/ConnectionInfo.ice +59 -0
- slice/IceBT/EndpointInfo.ice +57 -0
- slice/IceBT/Types.ice +45 -0
- slice/IceBox/IceBox.ice +216 -0
- slice/IceGrid/Admin.ice +1957 -0
- slice/IceGrid/Descriptor.ice +1094 -0
- slice/IceGrid/Exception.ice +396 -0
- slice/IceGrid/FileParser.ice +72 -0
- slice/IceGrid/PluginFacade.ice +329 -0
- slice/IceGrid/Registry.ice +269 -0
- slice/IceGrid/Session.ice +128 -0
- slice/IceGrid/UserAccountMapper.ice +69 -0
- slice/IceIAP/ConnectionInfo.ice +74 -0
- slice/IceIAP/EndpointInfo.ice +68 -0
- slice/IcePatch2/FileInfo.ice +85 -0
- slice/IcePatch2/FileServer.ice +191 -0
- slice/IceSSL/ConnectionInfo.ice +54 -0
- slice/IceSSL/ConnectionInfoF.ice +31 -0
- slice/IceSSL/EndpointInfo.ice +45 -0
- slice/IceStorm/IceStorm.ice +414 -0
- slice/IceStorm/Metrics.ice +83 -0
- slice2py.py +21 -0
- zeroc_ice-3.7.11.dist-info/METADATA +97 -0
- zeroc_ice-3.7.11.dist-info/RECORD +143 -0
- zeroc_ice-3.7.11.dist-info/WHEEL +5 -0
- zeroc_ice-3.7.11.dist-info/entry_points.txt +2 -0
- zeroc_ice-3.7.11.dist-info/top_level.txt +10 -0
IceStorm/Metrics_ice.py
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) ZeroC, Inc. All rights reserved.
|
|
4
|
+
#
|
|
5
|
+
#
|
|
6
|
+
# Ice version 3.7.11
|
|
7
|
+
#
|
|
8
|
+
# <auto-generated>
|
|
9
|
+
#
|
|
10
|
+
# Generated from file `Metrics.ice'
|
|
11
|
+
#
|
|
12
|
+
# Warning: do not edit this file.
|
|
13
|
+
#
|
|
14
|
+
# </auto-generated>
|
|
15
|
+
#
|
|
16
|
+
|
|
17
|
+
from sys import version_info as _version_info_
|
|
18
|
+
import Ice, IcePy
|
|
19
|
+
import Ice.Metrics_ice
|
|
20
|
+
|
|
21
|
+
# Included module Ice
|
|
22
|
+
_M_Ice = Ice.openModule('Ice')
|
|
23
|
+
|
|
24
|
+
# Included module IceMX
|
|
25
|
+
_M_IceMX = Ice.openModule('IceMX')
|
|
26
|
+
|
|
27
|
+
# Start of module IceMX
|
|
28
|
+
__name__ = 'IceMX'
|
|
29
|
+
|
|
30
|
+
if 'TopicMetrics' not in _M_IceMX.__dict__:
|
|
31
|
+
_M_IceMX.TopicMetrics = Ice.createTempClass()
|
|
32
|
+
class TopicMetrics(_M_IceMX.Metrics):
|
|
33
|
+
"""
|
|
34
|
+
Provides information on IceStorm topics.
|
|
35
|
+
Members:
|
|
36
|
+
published -- Number of events published on the topic by publishers.
|
|
37
|
+
forwarded -- Number of events forwarded on the topic by IceStorm topic links.
|
|
38
|
+
"""
|
|
39
|
+
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, published=0, forwarded=0):
|
|
40
|
+
_M_IceMX.Metrics.__init__(self, id, total, current, totalLifetime, failures)
|
|
41
|
+
self.published = published
|
|
42
|
+
self.forwarded = forwarded
|
|
43
|
+
|
|
44
|
+
def ice_id(self):
|
|
45
|
+
return '::IceMX::TopicMetrics'
|
|
46
|
+
|
|
47
|
+
@staticmethod
|
|
48
|
+
def ice_staticId():
|
|
49
|
+
return '::IceMX::TopicMetrics'
|
|
50
|
+
|
|
51
|
+
def __str__(self):
|
|
52
|
+
return IcePy.stringify(self, _M_IceMX._t_TopicMetrics)
|
|
53
|
+
|
|
54
|
+
__repr__ = __str__
|
|
55
|
+
|
|
56
|
+
_M_IceMX._t_TopicMetrics = IcePy.defineValue('::IceMX::TopicMetrics', TopicMetrics, -1, (), False, False, _M_IceMX._t_Metrics, (
|
|
57
|
+
('published', (), IcePy._t_long, False, 0),
|
|
58
|
+
('forwarded', (), IcePy._t_long, False, 0)
|
|
59
|
+
))
|
|
60
|
+
TopicMetrics._ice_type = _M_IceMX._t_TopicMetrics
|
|
61
|
+
|
|
62
|
+
_M_IceMX.TopicMetrics = TopicMetrics
|
|
63
|
+
del TopicMetrics
|
|
64
|
+
|
|
65
|
+
if 'SubscriberMetrics' not in _M_IceMX.__dict__:
|
|
66
|
+
_M_IceMX.SubscriberMetrics = Ice.createTempClass()
|
|
67
|
+
class SubscriberMetrics(_M_IceMX.Metrics):
|
|
68
|
+
"""
|
|
69
|
+
Provides information on IceStorm subscribers.
|
|
70
|
+
Members:
|
|
71
|
+
queued -- Number of queued events.
|
|
72
|
+
outstanding -- Number of outstanding events.
|
|
73
|
+
delivered -- Number of forwarded events.
|
|
74
|
+
"""
|
|
75
|
+
def __init__(self, id='', total=0, current=0, totalLifetime=0, failures=0, queued=0, outstanding=0, delivered=0):
|
|
76
|
+
_M_IceMX.Metrics.__init__(self, id, total, current, totalLifetime, failures)
|
|
77
|
+
self.queued = queued
|
|
78
|
+
self.outstanding = outstanding
|
|
79
|
+
self.delivered = delivered
|
|
80
|
+
|
|
81
|
+
def ice_id(self):
|
|
82
|
+
return '::IceMX::SubscriberMetrics'
|
|
83
|
+
|
|
84
|
+
@staticmethod
|
|
85
|
+
def ice_staticId():
|
|
86
|
+
return '::IceMX::SubscriberMetrics'
|
|
87
|
+
|
|
88
|
+
def __str__(self):
|
|
89
|
+
return IcePy.stringify(self, _M_IceMX._t_SubscriberMetrics)
|
|
90
|
+
|
|
91
|
+
__repr__ = __str__
|
|
92
|
+
|
|
93
|
+
_M_IceMX._t_SubscriberMetrics = IcePy.defineValue('::IceMX::SubscriberMetrics', SubscriberMetrics, -1, (), False, False, _M_IceMX._t_Metrics, (
|
|
94
|
+
('queued', (), IcePy._t_int, False, 0),
|
|
95
|
+
('outstanding', (), IcePy._t_int, False, 0),
|
|
96
|
+
('delivered', (), IcePy._t_long, False, 0)
|
|
97
|
+
))
|
|
98
|
+
SubscriberMetrics._ice_type = _M_IceMX._t_SubscriberMetrics
|
|
99
|
+
|
|
100
|
+
_M_IceMX.SubscriberMetrics = SubscriberMetrics
|
|
101
|
+
del SubscriberMetrics
|
|
102
|
+
|
|
103
|
+
# End of module IceMX
|
|
104
|
+
|
|
105
|
+
Ice.sliceChecksums["::IceMX::SubscriberMetrics"] = "ab5eddbb2d0449f94b4808b6cf92552"
|
|
106
|
+
Ice.sliceChecksums["::IceMX::TopicMetrics"] = "afc516f773371c41f4f612d9e9629c"
|
IceStorm/__init__.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:GLACIER2_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Glacier2/Glacier2.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
[["cpp:include:Glacier2/Config.h"]]
|
|
11
|
+
|
|
12
|
+
[["ice-prefix"]]
|
|
13
|
+
|
|
14
|
+
[["js:module:ice"]]
|
|
15
|
+
|
|
16
|
+
[["objc:dll-export:GLACIER2_API"]]
|
|
17
|
+
[["objc:header-dir:objc"]]
|
|
18
|
+
|
|
19
|
+
[["python:pkgdir:Glacier2"]]
|
|
20
|
+
|
|
21
|
+
#include <Ice/Metrics.ice>
|
|
22
|
+
|
|
23
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
24
|
+
[["java:package:com.zeroc"]]
|
|
25
|
+
#endif
|
|
26
|
+
|
|
27
|
+
["objc:prefix:ICEMX", "swift:module:Glacier2:MX"]
|
|
28
|
+
module IceMX
|
|
29
|
+
{
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* Provides information on Glacier2 sessions.
|
|
34
|
+
*
|
|
35
|
+
**/
|
|
36
|
+
class SessionMetrics extends Metrics
|
|
37
|
+
{
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* Number of client requests forwared.
|
|
41
|
+
*
|
|
42
|
+
**/
|
|
43
|
+
int forwardedClient = 0;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* Number of server requests forwared.
|
|
48
|
+
*
|
|
49
|
+
**/
|
|
50
|
+
int forwardedServer = 0;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* The size of the routing table.
|
|
55
|
+
*
|
|
56
|
+
**/
|
|
57
|
+
int routingTableSize = 0;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* Number of client requests queued.
|
|
62
|
+
*
|
|
63
|
+
**/
|
|
64
|
+
int queuedClient = 0;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* Number of server requests queued.
|
|
69
|
+
*
|
|
70
|
+
**/
|
|
71
|
+
int queuedServer = 0;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* Number of client requests overridden.
|
|
76
|
+
*
|
|
77
|
+
**/
|
|
78
|
+
int overriddenClient = 0;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* Number of server requests overridden.
|
|
83
|
+
*
|
|
84
|
+
**/
|
|
85
|
+
int overriddenServer = 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:GLACIER2_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Glacier2/Glacier2.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
[["cpp:include:Glacier2/Config.h"]]
|
|
11
|
+
|
|
12
|
+
[["js:module:ice"]]
|
|
13
|
+
[["js:cjs-module"]]
|
|
14
|
+
|
|
15
|
+
[["objc:dll-export:GLACIER2_API"]]
|
|
16
|
+
[["objc:header-dir:objc"]]
|
|
17
|
+
|
|
18
|
+
[["python:pkgdir:Glacier2"]]
|
|
19
|
+
|
|
20
|
+
#include <Glacier2/SSLInfo.ice>
|
|
21
|
+
|
|
22
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
23
|
+
[["java:package:com.zeroc"]]
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
["objc:prefix:GLACIER2"]
|
|
27
|
+
module Glacier2
|
|
28
|
+
{
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* This exception is raised if a client is denied the ability to create
|
|
33
|
+
* a session with the router.
|
|
34
|
+
*
|
|
35
|
+
**/
|
|
36
|
+
["preserve-slice"]
|
|
37
|
+
exception PermissionDeniedException
|
|
38
|
+
{
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* The reason why permission was denied.
|
|
42
|
+
*
|
|
43
|
+
**/
|
|
44
|
+
string reason;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* The Glacier2 permissions verifier. This is called through the
|
|
50
|
+
* process of establishing a session.
|
|
51
|
+
*
|
|
52
|
+
* @see Router
|
|
53
|
+
*
|
|
54
|
+
**/
|
|
55
|
+
interface PermissionsVerifier
|
|
56
|
+
{
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* Check whether a user has permission to access the router.
|
|
60
|
+
*
|
|
61
|
+
* @param userId The user id for which to check permission.
|
|
62
|
+
*
|
|
63
|
+
* @param password The user's password.
|
|
64
|
+
*
|
|
65
|
+
* @param reason The reason why access was denied.
|
|
66
|
+
*
|
|
67
|
+
* @return True if access is granted, or false otherwise.
|
|
68
|
+
*
|
|
69
|
+
* @throws PermissionDeniedException Raised if the user access is
|
|
70
|
+
* denied. This can be raised in place of returning false with a
|
|
71
|
+
* reason set in the reason out parameter.
|
|
72
|
+
*
|
|
73
|
+
**/
|
|
74
|
+
["nonmutating", "cpp:const", "format:sliced"]
|
|
75
|
+
idempotent bool checkPermissions(string userId, string password, out string reason)
|
|
76
|
+
throws PermissionDeniedException;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* The SSL Glacier2 permissions verifier. This is called through the
|
|
82
|
+
* process of establishing a session.
|
|
83
|
+
*
|
|
84
|
+
* @see Router
|
|
85
|
+
*
|
|
86
|
+
**/
|
|
87
|
+
interface SSLPermissionsVerifier
|
|
88
|
+
{
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* Check whether a user has permission to access the router.
|
|
92
|
+
*
|
|
93
|
+
* @param info The SSL information.
|
|
94
|
+
*
|
|
95
|
+
* @param reason The reason why access was denied.
|
|
96
|
+
*
|
|
97
|
+
* @return True if access is granted, or false otherwise.
|
|
98
|
+
*
|
|
99
|
+
* @throws PermissionDeniedException Raised if the user access is
|
|
100
|
+
* denied. This can be raised in place of returning false with a
|
|
101
|
+
* reason set in the reason out parameter.
|
|
102
|
+
*
|
|
103
|
+
* @see SSLInfo
|
|
104
|
+
*
|
|
105
|
+
**/
|
|
106
|
+
["nonmutating", "cpp:const", "format:sliced"]
|
|
107
|
+
idempotent bool authorize(SSLInfo info, out string reason)
|
|
108
|
+
throws PermissionDeniedException;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:GLACIER2_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Glacier2/Glacier2.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
|
|
11
|
+
[["js:module:ice"]]
|
|
12
|
+
[["js:cjs-module"]]
|
|
13
|
+
|
|
14
|
+
[["objc:dll-export:GLACIER2_API"]]
|
|
15
|
+
[["objc:header-dir:objc"]]
|
|
16
|
+
|
|
17
|
+
[["python:pkgdir:Glacier2"]]
|
|
18
|
+
|
|
19
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
20
|
+
[["java:package:com.zeroc"]]
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
["objc:prefix:GLACIER2"]
|
|
24
|
+
module Glacier2
|
|
25
|
+
{
|
|
26
|
+
|
|
27
|
+
interface PermissionsVerifier;
|
|
28
|
+
interface SSLPermissionsVerifier;
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:GLACIER2_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Glacier2/Glacier2.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
[["cpp:include:Glacier2/Config.h"]]
|
|
11
|
+
|
|
12
|
+
[["js:module:ice"]]
|
|
13
|
+
[["js:cjs-module"]]
|
|
14
|
+
|
|
15
|
+
[["objc:dll-export:GLACIER2_API"]]
|
|
16
|
+
[["objc:header-dir:objc"]]
|
|
17
|
+
|
|
18
|
+
[["python:pkgdir:Glacier2"]]
|
|
19
|
+
|
|
20
|
+
#include <Ice/Router.ice>
|
|
21
|
+
#include <Glacier2/Session.ice>
|
|
22
|
+
#include <Glacier2/PermissionsVerifier.ice>
|
|
23
|
+
|
|
24
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
25
|
+
[["java:package:com.zeroc"]]
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* Glacier2 is a firewall solution for Ice. Glacier2 authenticates
|
|
31
|
+
* and filters client requests and allows callbacks to the client in a
|
|
32
|
+
* secure fashion. In combination with IceSSL, Glacier2 provides a
|
|
33
|
+
* security solution that is both non-intrusive and easy to configure.
|
|
34
|
+
*
|
|
35
|
+
**/
|
|
36
|
+
["objc:prefix:GLACIER2"]
|
|
37
|
+
module Glacier2
|
|
38
|
+
{
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* This exception is raised if a client tries to destroy a session
|
|
43
|
+
* with a router, but no session exists for the client.
|
|
44
|
+
*
|
|
45
|
+
* @see Router#destroySession
|
|
46
|
+
*
|
|
47
|
+
**/
|
|
48
|
+
exception SessionNotExistException
|
|
49
|
+
{
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* The Glacier2 specialization of the <code>Ice::Router</code> interface.
|
|
55
|
+
*
|
|
56
|
+
**/
|
|
57
|
+
interface Router extends Ice::Router
|
|
58
|
+
{
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* This category must be used in the identities of all of the client's
|
|
62
|
+
* callback objects. This is necessary in order for the router to
|
|
63
|
+
* forward callback requests to the intended client. If the Glacier2
|
|
64
|
+
* server endpoints are not set, the returned category is an empty
|
|
65
|
+
* string.
|
|
66
|
+
*
|
|
67
|
+
* @return The category.
|
|
68
|
+
*
|
|
69
|
+
**/
|
|
70
|
+
["nonmutating", "cpp:const"] idempotent string getCategoryForClient();
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* Create a per-client session with the router. If a
|
|
75
|
+
* {@link SessionManager} has been installed, a proxy to a {@link Session}
|
|
76
|
+
* object is returned to the client. Otherwise, null is returned
|
|
77
|
+
* and only an internal session (i.e., not visible to the client)
|
|
78
|
+
* is created.
|
|
79
|
+
*
|
|
80
|
+
* If a session proxy is returned, it must be configured to route
|
|
81
|
+
* through the router that created it. This will happen automatically
|
|
82
|
+
* if the router is configured as the client's default router at the
|
|
83
|
+
* time the session proxy is created in the client process, otherwise
|
|
84
|
+
* the client must configure the session proxy explicitly.
|
|
85
|
+
*
|
|
86
|
+
* @see Session
|
|
87
|
+
* @see SessionManager
|
|
88
|
+
* @see PermissionsVerifier
|
|
89
|
+
*
|
|
90
|
+
* @return A proxy for the newly created session, or null if no
|
|
91
|
+
* {@link SessionManager} has been installed.
|
|
92
|
+
*
|
|
93
|
+
* @param userId The user id for which to check the password.
|
|
94
|
+
*
|
|
95
|
+
* @param password The password for the given user id.
|
|
96
|
+
*
|
|
97
|
+
* @throws PermissionDeniedException Raised if the password for
|
|
98
|
+
* the given user id is not correct, or if the user is not allowed
|
|
99
|
+
* access.
|
|
100
|
+
*
|
|
101
|
+
* @throws CannotCreateSessionException Raised if the session
|
|
102
|
+
* cannot be created.
|
|
103
|
+
*
|
|
104
|
+
**/
|
|
105
|
+
["amd", "format:sliced"] Session* createSession(string userId, string password)
|
|
106
|
+
throws PermissionDeniedException, CannotCreateSessionException;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* Create a per-client session with the router. The user is
|
|
111
|
+
* authenticated through the SSL certificates that have been
|
|
112
|
+
* associated with the connection. If a {@link SessionManager} has been
|
|
113
|
+
* installed, a proxy to a {@link Session} object is returned to the
|
|
114
|
+
* client. Otherwise, null is returned and only an internal
|
|
115
|
+
* session (i.e., not visible to the client) is created.
|
|
116
|
+
*
|
|
117
|
+
* If a session proxy is returned, it must be configured to route
|
|
118
|
+
* through the router that created it. This will happen automatically
|
|
119
|
+
* if the router is configured as the client's default router at the
|
|
120
|
+
* time the session proxy is created in the client process, otherwise
|
|
121
|
+
* the client must configure the session proxy explicitly.
|
|
122
|
+
*
|
|
123
|
+
* @see Session
|
|
124
|
+
* @see SessionManager
|
|
125
|
+
* @see PermissionsVerifier
|
|
126
|
+
*
|
|
127
|
+
* @return A proxy for the newly created session, or null if no
|
|
128
|
+
* {@link SessionManager} has been installed.
|
|
129
|
+
*
|
|
130
|
+
* @throws PermissionDeniedException Raised if the user cannot be
|
|
131
|
+
* authenticated or if the user is not allowed access.
|
|
132
|
+
*
|
|
133
|
+
* @throws CannotCreateSessionException Raised if the session
|
|
134
|
+
* cannot be created.
|
|
135
|
+
*
|
|
136
|
+
**/
|
|
137
|
+
["amd", "format:sliced"] Session* createSessionFromSecureConnection()
|
|
138
|
+
throws PermissionDeniedException, CannotCreateSessionException;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* Keep the calling client's session with this router alive.
|
|
143
|
+
*
|
|
144
|
+
* @throws SessionNotExistException Raised if no session exists
|
|
145
|
+
* for the calling client.
|
|
146
|
+
*
|
|
147
|
+
**/
|
|
148
|
+
["amd"] void refreshSession()
|
|
149
|
+
throws SessionNotExistException;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* Destroy the calling client's session with this router.
|
|
154
|
+
*
|
|
155
|
+
* @throws SessionNotExistException Raised if no session exists
|
|
156
|
+
* for the calling client.
|
|
157
|
+
*
|
|
158
|
+
**/
|
|
159
|
+
void destroySession()
|
|
160
|
+
throws SessionNotExistException;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* Get the value of the session timeout. Sessions are destroyed
|
|
165
|
+
* if they see no activity for this period of time.
|
|
166
|
+
*
|
|
167
|
+
* @return The timeout (in seconds).
|
|
168
|
+
*
|
|
169
|
+
**/
|
|
170
|
+
["nonmutating", "cpp:const"] idempotent long getSessionTimeout();
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* Get the value of the ACM timeout. Clients supporting connection
|
|
175
|
+
* heartbeats can enable them instead of explicitly sending keep
|
|
176
|
+
* alives requests.
|
|
177
|
+
*
|
|
178
|
+
* NOTE: This method is only available since Ice 3.6.
|
|
179
|
+
*
|
|
180
|
+
* @return The timeout (in seconds).
|
|
181
|
+
*
|
|
182
|
+
**/
|
|
183
|
+
["nonmutating", "cpp:const"] idempotent int getACMTimeout();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:GLACIER2_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Glacier2/Glacier2.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
|
|
11
|
+
[["js:module:ice"]]
|
|
12
|
+
[["js:cjs-module"]]
|
|
13
|
+
|
|
14
|
+
[["objc:dll-export:GLACIER2_API"]]
|
|
15
|
+
[["objc:header-dir:objc"]]
|
|
16
|
+
|
|
17
|
+
[["python:pkgdir:Glacier2"]]
|
|
18
|
+
|
|
19
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
20
|
+
[["java:package:com.zeroc"]]
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
["objc:prefix:GLACIER2"]
|
|
24
|
+
module Glacier2
|
|
25
|
+
{
|
|
26
|
+
|
|
27
|
+
interface Router;
|
|
28
|
+
|
|
29
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (c) ZeroC, Inc. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
#pragma once
|
|
6
|
+
|
|
7
|
+
[["cpp:dll-export:GLACIER2_API"]]
|
|
8
|
+
[["cpp:doxygen:include:Glacier2/Glacier2.h"]]
|
|
9
|
+
[["cpp:header-ext:h"]]
|
|
10
|
+
[["cpp:include:Glacier2/Config.h"]]
|
|
11
|
+
|
|
12
|
+
[["js:module:ice"]]
|
|
13
|
+
[["js:cjs-module"]]
|
|
14
|
+
|
|
15
|
+
[["objc:dll-export:GLACIER2_API"]]
|
|
16
|
+
[["objc:header-dir:objc"]]
|
|
17
|
+
|
|
18
|
+
[["python:pkgdir:Glacier2"]]
|
|
19
|
+
|
|
20
|
+
#include <Ice/BuiltinSequences.ice>
|
|
21
|
+
|
|
22
|
+
#ifndef __SLICE2JAVA_COMPAT__
|
|
23
|
+
[["java:package:com.zeroc"]]
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
["objc:prefix:GLACIER2"]
|
|
27
|
+
module Glacier2
|
|
28
|
+
{
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* Information taken from an SSL connection used for permissions
|
|
33
|
+
* verification.
|
|
34
|
+
*
|
|
35
|
+
* @see PermissionsVerifier
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
struct SSLInfo
|
|
39
|
+
{
|
|
40
|
+
/** The remote host. */
|
|
41
|
+
string remoteHost;
|
|
42
|
+
|
|
43
|
+
/** The remote port. */
|
|
44
|
+
int remotePort;
|
|
45
|
+
|
|
46
|
+
/** The router's host. */
|
|
47
|
+
string localHost;
|
|
48
|
+
|
|
49
|
+
/** The router's port. */
|
|
50
|
+
int localPort;
|
|
51
|
+
|
|
52
|
+
/** The negotiated cipher suite. */
|
|
53
|
+
string cipher;
|
|
54
|
+
|
|
55
|
+
/** The certificate chain. */
|
|
56
|
+
Ice::StringSeq certs;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|