zeroc-ice-x86-mingw 3.6b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ICE_LICENSE +54 -0
- data/LICENSE +339 -0
- data/bin/slice2rb +17 -0
- data/ice-x86-mingw.gemspec +41 -0
- data/lib/Glacier2.rb +12 -0
- data/lib/Glacier2/Metrics.rb +99 -0
- data/lib/Glacier2/PermissionsVerifier.rb +168 -0
- data/lib/Glacier2/PermissionsVerifierF.rb +34 -0
- data/lib/Glacier2/Router.rb +141 -0
- data/lib/Glacier2/RouterF.rb +29 -0
- data/lib/Glacier2/SSLInfo.rb +79 -0
- data/lib/Glacier2/Session.rb +470 -0
- data/lib/Ice.rb +659 -0
- data/lib/Ice/BuiltinSequences.rb +64 -0
- data/lib/Ice/Communicator.rb +93 -0
- data/lib/Ice/CommunicatorF.rb +28 -0
- data/lib/Ice/Connection.rb +414 -0
- data/lib/Ice/ConnectionF.rb +36 -0
- data/lib/Ice/Current.rb +152 -0
- data/lib/Ice/Endpoint.rb +265 -0
- data/lib/Ice/EndpointF.rb +52 -0
- data/lib/Ice/EndpointTypes.rb +77 -0
- data/lib/Ice/FacetMap.rb +28 -0
- data/lib/Ice/Identity.rb +70 -0
- data/lib/Ice/ImplicitContext.rb +59 -0
- data/lib/Ice/ImplicitContextF.rb +28 -0
- data/lib/Ice/Instrumentation.rb +425 -0
- data/lib/Ice/InstrumentationF.rb +35 -0
- data/lib/Ice/LocalException.rb +1081 -0
- data/lib/Ice/Locator.rb +314 -0
- data/lib/Ice/LocatorF.rb +34 -0
- data/lib/Ice/Logger.rb +57 -0
- data/lib/Ice/LoggerF.rb +28 -0
- data/lib/Ice/Metrics.rb +696 -0
- data/lib/Ice/ObjectAdapterF.rb +28 -0
- data/lib/Ice/ObjectFactory.rb +53 -0
- data/lib/Ice/ObjectFactoryF.rb +28 -0
- data/lib/Ice/Plugin.rb +87 -0
- data/lib/Ice/PluginF.rb +32 -0
- data/lib/Ice/Process.rb +93 -0
- data/lib/Ice/ProcessF.rb +29 -0
- data/lib/Ice/Properties.rb +65 -0
- data/lib/Ice/PropertiesAdmin.rb +104 -0
- data/lib/Ice/PropertiesF.rb +33 -0
- data/lib/Ice/Router.rb +163 -0
- data/lib/Ice/RouterF.rb +29 -0
- data/lib/Ice/SliceChecksumDict.rb +28 -0
- data/lib/Ice/Version.rb +100 -0
- data/lib/IceBox.rb +10 -0
- data/lib/IceBox/IceBox.rb +272 -0
- data/lib/IceGrid.rb +17 -0
- data/lib/IceGrid/Admin.rb +1076 -0
- data/lib/IceGrid/Descriptor.rb +1505 -0
- data/lib/IceGrid/Exception.rb +401 -0
- data/lib/IceGrid/FileParser.rb +105 -0
- data/lib/IceGrid/Locator.rb +105 -0
- data/lib/IceGrid/Observer.rb +571 -0
- data/lib/IceGrid/Query.rb +168 -0
- data/lib/IceGrid/Registry.rb +120 -0
- data/lib/IceGrid/Session.rb +114 -0
- data/lib/IceGrid/UserAccountMapper.rb +101 -0
- data/lib/IcePatch2.rb +10 -0
- data/lib/IcePatch2/FileInfo.rb +75 -0
- data/lib/IcePatch2/FileServer.rb +141 -0
- data/lib/IceRuby.so +0 -0
- data/lib/IceStorm.rb +11 -0
- data/lib/IceStorm/IceStorm.rb +463 -0
- data/lib/IceStorm/Metrics.rb +155 -0
- data/slice/Freeze/BackgroundSaveEvictor.ice +111 -0
- data/slice/Freeze/CatalogData.ice +49 -0
- data/slice/Freeze/Connection.ice +111 -0
- data/slice/Freeze/ConnectionF.ice +20 -0
- data/slice/Freeze/DB.ice +37 -0
- data/slice/Freeze/Evictor.ice +339 -0
- data/slice/Freeze/EvictorF.ice +22 -0
- data/slice/Freeze/EvictorStorage.ice +72 -0
- data/slice/Freeze/Exception.ice +100 -0
- data/slice/Freeze/Transaction.ice +57 -0
- data/slice/Freeze/TransactionalEvictor.ice +50 -0
- data/slice/Glacier2/Metrics.ice +77 -0
- data/slice/Glacier2/PermissionsVerifier.ice +105 -0
- data/slice/Glacier2/PermissionsVerifierF.ice +21 -0
- data/slice/Glacier2/Router.ice +178 -0
- data/slice/Glacier2/RouterF.ice +20 -0
- data/slice/Glacier2/SSLInfo.ice +50 -0
- data/slice/Glacier2/Session.ice +273 -0
- data/slice/Ice/BuiltinSequences.ice +48 -0
- data/slice/Ice/Communicator.ice +567 -0
- data/slice/Ice/CommunicatorF.ice +20 -0
- data/slice/Ice/Connection.ice +323 -0
- data/slice/Ice/ConnectionF.ice +22 -0
- data/slice/Ice/Current.ice +160 -0
- data/slice/Ice/Endpoint.ice +227 -0
- data/slice/Ice/EndpointF.ice +32 -0
- data/slice/Ice/EndpointTypes.ice +38 -0
- data/slice/Ice/FacetMap.ice +25 -0
- data/slice/Ice/Identity.ice +59 -0
- data/slice/Ice/ImplicitContext.ice +109 -0
- data/slice/Ice/ImplicitContextF.ice +20 -0
- data/slice/Ice/Instrumentation.ice +499 -0
- data/slice/Ice/InstrumentationF.ice +26 -0
- data/slice/Ice/LocalException.ice +1015 -0
- data/slice/Ice/Locator.ice +227 -0
- data/slice/Ice/LocatorF.ice +21 -0
- data/slice/Ice/Logger.ice +86 -0
- data/slice/Ice/LoggerF.ice +20 -0
- data/slice/Ice/Metrics.ice +422 -0
- data/slice/Ice/ObjectAdapter.ice +673 -0
- data/slice/Ice/ObjectAdapterF.ice +20 -0
- data/slice/Ice/ObjectFactory.ice +60 -0
- data/slice/Ice/ObjectFactoryF.ice +20 -0
- data/slice/Ice/Plugin.ice +117 -0
- data/slice/Ice/PluginF.ice +21 -0
- data/slice/Ice/Process.ice +54 -0
- data/slice/Ice/ProcessF.ice +20 -0
- data/slice/Ice/Properties.ice +228 -0
- data/slice/Ice/PropertiesAdmin.ice +75 -0
- data/slice/Ice/PropertiesF.ice +21 -0
- data/slice/Ice/RemoteLogger.ice +232 -0
- data/slice/Ice/Router.ice +83 -0
- data/slice/Ice/RouterF.ice +20 -0
- data/slice/Ice/ServantLocator.ice +117 -0
- data/slice/Ice/ServantLocatorF.ice +20 -0
- data/slice/Ice/SliceChecksumDict.ice +25 -0
- data/slice/Ice/Version.ice +39 -0
- data/slice/IceBox/IceBox.ice +194 -0
- data/slice/IceDiscovery/IceDiscovery.ice +32 -0
- data/slice/IceGrid/Admin.ice +1578 -0
- data/slice/IceGrid/Descriptor.ice +1079 -0
- data/slice/IceGrid/Discovery.ice +73 -0
- data/slice/IceGrid/Exception.ice +383 -0
- data/slice/IceGrid/FileParser.ice +61 -0
- data/slice/IceGrid/Locator.ice +56 -0
- data/slice/IceGrid/Observer.ice +394 -0
- data/slice/IceGrid/PluginFacade.ice +316 -0
- data/slice/IceGrid/Query.ice +130 -0
- data/slice/IceGrid/Registry.ice +138 -0
- data/slice/IceGrid/Session.ice +124 -0
- data/slice/IceGrid/UserAccountMapper.ice +58 -0
- data/slice/IcePatch2/FileInfo.ice +49 -0
- data/slice/IcePatch2/FileServer.ice +129 -0
- data/slice/IceSSL/ConnectionInfo.ice +34 -0
- data/slice/IceSSL/EndpointInfo.ice +41 -0
- data/slice/IceStorm/IceStorm.ice +405 -0
- data/slice/IceStorm/Metrics.ice +71 -0
- metadata +207 -0
@@ -0,0 +1,100 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
|
14
|
+
module Freeze
|
15
|
+
{
|
16
|
+
|
17
|
+
local interface Transaction;
|
18
|
+
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* A Freeze database exception.
|
22
|
+
*
|
23
|
+
* @see Evictor
|
24
|
+
* @see Connection
|
25
|
+
*
|
26
|
+
**/
|
27
|
+
["cpp:ice_print"]
|
28
|
+
local exception DatabaseException
|
29
|
+
{
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* A message describing the reason for the exception.
|
33
|
+
*
|
34
|
+
**/
|
35
|
+
string message;
|
36
|
+
};
|
37
|
+
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* A Freeze database exception, indicating that a database record
|
41
|
+
* could not be found.
|
42
|
+
*
|
43
|
+
**/
|
44
|
+
["cpp:ice_print"]
|
45
|
+
local exception NotFoundException extends DatabaseException
|
46
|
+
{
|
47
|
+
};
|
48
|
+
|
49
|
+
/**
|
50
|
+
*
|
51
|
+
* A Freeze database deadlock exception. Applications can react to
|
52
|
+
* this exception by aborting and trying the transaction again.
|
53
|
+
*
|
54
|
+
**/
|
55
|
+
["cpp:ice_print"]
|
56
|
+
local exception DeadlockException extends DatabaseException
|
57
|
+
{
|
58
|
+
/**
|
59
|
+
*
|
60
|
+
* The transaction in which the deadlock occurred.
|
61
|
+
*
|
62
|
+
**/
|
63
|
+
Transaction tx;
|
64
|
+
};
|
65
|
+
|
66
|
+
/**
|
67
|
+
*
|
68
|
+
* This Freeze Iterator is not on a valid position, for example
|
69
|
+
* this position has been erased.
|
70
|
+
*
|
71
|
+
**/
|
72
|
+
local exception InvalidPositionException
|
73
|
+
{
|
74
|
+
};
|
75
|
+
|
76
|
+
/**
|
77
|
+
*
|
78
|
+
* Exception raised when Freeze fails to locate an index.
|
79
|
+
*
|
80
|
+
**/
|
81
|
+
["cpp:ice_print"]
|
82
|
+
local exception IndexNotFoundException
|
83
|
+
{
|
84
|
+
/**
|
85
|
+
*
|
86
|
+
* The name of the map in which the index could not be found.
|
87
|
+
*
|
88
|
+
**/
|
89
|
+
string mapName;
|
90
|
+
|
91
|
+
/**
|
92
|
+
*
|
93
|
+
* The name of the index.
|
94
|
+
*
|
95
|
+
**/
|
96
|
+
string indexName;
|
97
|
+
};
|
98
|
+
|
99
|
+
};
|
100
|
+
|
@@ -0,0 +1,57 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
|
14
|
+
module Freeze
|
15
|
+
{
|
16
|
+
|
17
|
+
local interface Connection;
|
18
|
+
|
19
|
+
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* A transaction. If you want to use a transaction concurrently
|
23
|
+
* in multiple threads, you need to serialize access to this
|
24
|
+
* transaction.
|
25
|
+
*
|
26
|
+
**/
|
27
|
+
local interface Transaction
|
28
|
+
{
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* Commit this transaction.
|
32
|
+
*
|
33
|
+
* @throws DatabaseException Raised if a database failure occurred.
|
34
|
+
*
|
35
|
+
**/
|
36
|
+
void commit();
|
37
|
+
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* Roll back this transaction.
|
41
|
+
*
|
42
|
+
* @throws DatabaseException Raised if a database failure occurred.
|
43
|
+
*
|
44
|
+
**/
|
45
|
+
void rollback();
|
46
|
+
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* Get the connection associated with this Transaction
|
50
|
+
*
|
51
|
+
**/
|
52
|
+
["cpp:const"] Connection getConnection();
|
53
|
+
};
|
54
|
+
|
55
|
+
|
56
|
+
};
|
57
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
|
14
|
+
#include <Freeze/Evictor.ice>
|
15
|
+
|
16
|
+
module Freeze
|
17
|
+
{
|
18
|
+
|
19
|
+
local interface Transaction;
|
20
|
+
|
21
|
+
/**
|
22
|
+
*
|
23
|
+
* A transactional evictor is an evictor that performs every single read-write
|
24
|
+
* operation within its own transaction.
|
25
|
+
*
|
26
|
+
**/
|
27
|
+
local interface TransactionalEvictor extends Evictor
|
28
|
+
{
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* Get the transaction associated with the calling thread.
|
32
|
+
*
|
33
|
+
* @return The transaction associated with the calling thread.
|
34
|
+
*
|
35
|
+
**/
|
36
|
+
["cpp:const"] Transaction getCurrentTransaction();
|
37
|
+
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* Associate a transaction with the calling thread.
|
41
|
+
*
|
42
|
+
* @param tx The transaction to associate with the calling thread.
|
43
|
+
*
|
44
|
+
**/
|
45
|
+
void setCurrentTransaction(Transaction tx);
|
46
|
+
};
|
47
|
+
|
48
|
+
};
|
49
|
+
|
50
|
+
|
@@ -0,0 +1,77 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
[["cpp:include:Glacier2/Config.h"]]
|
14
|
+
|
15
|
+
#include <Ice/Metrics.ice>
|
16
|
+
|
17
|
+
module IceMX
|
18
|
+
{
|
19
|
+
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* Provides information on Glacier2 sessions.
|
23
|
+
*
|
24
|
+
**/
|
25
|
+
class SessionMetrics extends Metrics
|
26
|
+
{
|
27
|
+
/**
|
28
|
+
*
|
29
|
+
* Number of client requests forwared.
|
30
|
+
*
|
31
|
+
**/
|
32
|
+
int forwardedClient = 0;
|
33
|
+
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* Number of server requests forwared.
|
37
|
+
*
|
38
|
+
**/
|
39
|
+
int forwardedServer = 0;
|
40
|
+
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* The size of the routing table.
|
44
|
+
*
|
45
|
+
**/
|
46
|
+
int routingTableSize = 0;
|
47
|
+
|
48
|
+
/**
|
49
|
+
*
|
50
|
+
* Number of client requests queued.
|
51
|
+
*
|
52
|
+
**/
|
53
|
+
int queuedClient = 0;
|
54
|
+
|
55
|
+
/**
|
56
|
+
*
|
57
|
+
* Number of server requests queued.
|
58
|
+
*
|
59
|
+
**/
|
60
|
+
int queuedServer = 0;
|
61
|
+
|
62
|
+
/**
|
63
|
+
*
|
64
|
+
* Number of client requests overridden.
|
65
|
+
*
|
66
|
+
**/
|
67
|
+
int overriddenClient = 0;
|
68
|
+
|
69
|
+
/**
|
70
|
+
*
|
71
|
+
* Number of server requests overridden.
|
72
|
+
*
|
73
|
+
**/
|
74
|
+
int overriddenServer = 0;
|
75
|
+
};
|
76
|
+
|
77
|
+
};
|
@@ -0,0 +1,105 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
[["cpp:include:Glacier2/Config.h"]]
|
14
|
+
|
15
|
+
#include <Glacier2/SSLInfo.ice>
|
16
|
+
|
17
|
+
module Glacier2
|
18
|
+
{
|
19
|
+
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* This exception is raised if a client is denied the ability to create
|
23
|
+
* a session with the router.
|
24
|
+
*
|
25
|
+
* @see Router#createSession
|
26
|
+
* @see Router#createSessionFromSecureConnection
|
27
|
+
*
|
28
|
+
**/
|
29
|
+
["preserve-slice"]
|
30
|
+
exception PermissionDeniedException
|
31
|
+
{
|
32
|
+
/**
|
33
|
+
*
|
34
|
+
* The reason why permission was denied.
|
35
|
+
*
|
36
|
+
**/
|
37
|
+
string reason;
|
38
|
+
};
|
39
|
+
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* The Glacier2 permissions verifier. This is called through the
|
43
|
+
* process of establishing a session.
|
44
|
+
*
|
45
|
+
* @see Router
|
46
|
+
*
|
47
|
+
**/
|
48
|
+
interface PermissionsVerifier
|
49
|
+
{
|
50
|
+
/**
|
51
|
+
*
|
52
|
+
* Check whether a user has permission to access the router.
|
53
|
+
*
|
54
|
+
* @param userId The user id for which to check permission.
|
55
|
+
*
|
56
|
+
* @param password The user's password.
|
57
|
+
*
|
58
|
+
* @param reason The reason why access was denied.
|
59
|
+
*
|
60
|
+
* @return True if access is granted, or false otherwise.
|
61
|
+
*
|
62
|
+
* @throws PermissionDeniedException Raised if the user access is
|
63
|
+
* denied. This can be raised in place of returning false with a
|
64
|
+
* reason set in the reason out parameter.
|
65
|
+
*
|
66
|
+
**/
|
67
|
+
["nonmutating", "cpp:const", "format:sliced"]
|
68
|
+
idempotent bool checkPermissions(string userId, string password, out string reason)
|
69
|
+
throws PermissionDeniedException;
|
70
|
+
};
|
71
|
+
|
72
|
+
/**
|
73
|
+
*
|
74
|
+
* The SSL Glacier2 permissions verifier. This is called through the
|
75
|
+
* process of establishing a session.
|
76
|
+
*
|
77
|
+
* @see Router
|
78
|
+
*
|
79
|
+
**/
|
80
|
+
interface SSLPermissionsVerifier
|
81
|
+
{
|
82
|
+
/**
|
83
|
+
*
|
84
|
+
* Check whether a user has permission to access the router.
|
85
|
+
*
|
86
|
+
* @param info The SSL information.
|
87
|
+
*
|
88
|
+
* @param reason The reason why access was denied.
|
89
|
+
*
|
90
|
+
* @return True if access is granted, or false otherwise.
|
91
|
+
*
|
92
|
+
* @throws PermissionDeniedException Raised if the user access is
|
93
|
+
* denied. This can be raised in place of returning false with a
|
94
|
+
* reason set in the reason out parameter.
|
95
|
+
*
|
96
|
+
* @see SSLInfo
|
97
|
+
*
|
98
|
+
**/
|
99
|
+
["nonmutating", "cpp:const", "format:sliced"]
|
100
|
+
idempotent bool authorize(SSLInfo info, out string reason)
|
101
|
+
throws PermissionDeniedException;
|
102
|
+
};
|
103
|
+
|
104
|
+
};
|
105
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
|
14
|
+
module Glacier2
|
15
|
+
{
|
16
|
+
|
17
|
+
interface PermissionsVerifier;
|
18
|
+
interface SSLPermissionsVerifier;
|
19
|
+
|
20
|
+
};
|
21
|
+
|
@@ -0,0 +1,178 @@
|
|
1
|
+
// **********************************************************************
|
2
|
+
//
|
3
|
+
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
|
4
|
+
//
|
5
|
+
// This copy of Ice is licensed to you under the terms described in the
|
6
|
+
// ICE_LICENSE file included in this distribution.
|
7
|
+
//
|
8
|
+
// **********************************************************************
|
9
|
+
|
10
|
+
#pragma once
|
11
|
+
|
12
|
+
[["cpp:header-ext:h"]]
|
13
|
+
[["cpp:include:Glacier2/Config.h"]]
|
14
|
+
|
15
|
+
#include <Ice/Router.ice>
|
16
|
+
#include <Glacier2/Session.ice>
|
17
|
+
#include <Glacier2/PermissionsVerifier.ice>
|
18
|
+
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* Glacier2 is a firewall solution for Ice. Glacier2 authenticates
|
22
|
+
* and filters client requests and allows callbacks to the client in a
|
23
|
+
* secure fashion. In combination with IceSSL, Glacier2 provides a
|
24
|
+
* security solution that is both non-intrusive and easy to configure.
|
25
|
+
*
|
26
|
+
**/
|
27
|
+
module Glacier2
|
28
|
+
{
|
29
|
+
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* This exception is raised if a client tries to destroy a session
|
33
|
+
* with a router, but no session exists for the client.
|
34
|
+
*
|
35
|
+
* @see Router#destroySession
|
36
|
+
*
|
37
|
+
**/
|
38
|
+
exception SessionNotExistException
|
39
|
+
{
|
40
|
+
};
|
41
|
+
|
42
|
+
/**
|
43
|
+
*
|
44
|
+
* The Glacier2 specialization of the {@link Ice.Router}
|
45
|
+
* interface.
|
46
|
+
*
|
47
|
+
**/
|
48
|
+
interface Router extends Ice::Router
|
49
|
+
{
|
50
|
+
/**
|
51
|
+
*
|
52
|
+
* This category must be used in the identities of all of the client's
|
53
|
+
* callback objects. This is necessary in order for the router to
|
54
|
+
* forward callback requests to the intended client. If the Glacier2
|
55
|
+
* server endpoints are not set, the returned category is an empty
|
56
|
+
* string.
|
57
|
+
*
|
58
|
+
* @return The category.
|
59
|
+
*
|
60
|
+
**/
|
61
|
+
["nonmutating", "cpp:const"] idempotent string getCategoryForClient();
|
62
|
+
|
63
|
+
/**
|
64
|
+
*
|
65
|
+
* Create a per-client session with the router. If a
|
66
|
+
* {@link SessionManager} has been installed, a proxy to a {@link Session}
|
67
|
+
* object is returned to the client. Otherwise, null is returned
|
68
|
+
* and only an internal session (i.e., not visible to the client)
|
69
|
+
* is created.
|
70
|
+
*
|
71
|
+
* If a session proxy is returned, it must be configured to route
|
72
|
+
* through the router that created it. This will happen automatically
|
73
|
+
* if the router is configured as the client's default router at the
|
74
|
+
* time the session proxy is created in the client process, otherwise
|
75
|
+
* the client must configure the session proxy explicitly.
|
76
|
+
*
|
77
|
+
* @see Session
|
78
|
+
* @see SessionManager
|
79
|
+
* @see PermissionsVerifier
|
80
|
+
*
|
81
|
+
* @return A proxy for the newly created session, or null if no
|
82
|
+
* {@link SessionManager} has been installed.
|
83
|
+
*
|
84
|
+
* @param userId The user id for which to check the password.
|
85
|
+
*
|
86
|
+
* @param password The password for the given user id.
|
87
|
+
*
|
88
|
+
* @throws PermissionDeniedException Raised if the password for
|
89
|
+
* the given user id is not correct, or if the user is not allowed
|
90
|
+
* access.
|
91
|
+
*
|
92
|
+
* @throws CannotCreateSessionException Raised if the session
|
93
|
+
* cannot be created.
|
94
|
+
*
|
95
|
+
**/
|
96
|
+
["amd", "format:sliced"] Session* createSession(string userId, string password)
|
97
|
+
throws PermissionDeniedException, CannotCreateSessionException;
|
98
|
+
|
99
|
+
/**
|
100
|
+
*
|
101
|
+
* Create a per-client session with the router. The user is
|
102
|
+
* authenticated through the SSL certificates that have been
|
103
|
+
* associated with the connection. If a {@link SessionManager} has been
|
104
|
+
* installed, a proxy to a {@link Session} object is returned to the
|
105
|
+
* client. Otherwise, null is returned and only an internal
|
106
|
+
* session (i.e., not visible to the client) is created.
|
107
|
+
*
|
108
|
+
* If a session proxy is returned, it must be configured to route
|
109
|
+
* through the router that created it. This will happen automatically
|
110
|
+
* if the router is configured as the client's default router at the
|
111
|
+
* time the session proxy is created in the client process, otherwise
|
112
|
+
* the client must configure the session proxy explicitly.
|
113
|
+
*
|
114
|
+
* @see Session
|
115
|
+
* @see SessionManager
|
116
|
+
* @see PermissionsVerifier
|
117
|
+
*
|
118
|
+
* @return A proxy for the newly created session, or null if no
|
119
|
+
* {@link SessionManager} has been installed.
|
120
|
+
*
|
121
|
+
* @throws PermissionDeniedException Raised if the user cannot be
|
122
|
+
* authenticated or if the user is not allowed access.
|
123
|
+
*
|
124
|
+
* @throws CannotCreateSessionException Raised if the session
|
125
|
+
* cannot be created.
|
126
|
+
*
|
127
|
+
**/
|
128
|
+
["amd", "format:sliced"] Session* createSessionFromSecureConnection()
|
129
|
+
throws PermissionDeniedException, CannotCreateSessionException;
|
130
|
+
|
131
|
+
/**
|
132
|
+
*
|
133
|
+
* Keep the calling client's session with this router alive.
|
134
|
+
*
|
135
|
+
* @throws SessionNotExistException Raised if no session exists
|
136
|
+
* for the calling client.
|
137
|
+
*
|
138
|
+
**/
|
139
|
+
["amd"] void refreshSession()
|
140
|
+
throws SessionNotExistException;
|
141
|
+
|
142
|
+
/**
|
143
|
+
*
|
144
|
+
* Destroy the calling client's session with this router.
|
145
|
+
*
|
146
|
+
* @throws SessionNotExistException Raised if no session exists
|
147
|
+
* for the calling client.
|
148
|
+
*
|
149
|
+
**/
|
150
|
+
void destroySession()
|
151
|
+
throws SessionNotExistException;
|
152
|
+
|
153
|
+
/**
|
154
|
+
*
|
155
|
+
* Get the value of the session timeout. Sessions are destroyed
|
156
|
+
* if they see no activity for this period of time.
|
157
|
+
*
|
158
|
+
* @return The timeout (in seconds).
|
159
|
+
*
|
160
|
+
**/
|
161
|
+
["nonmutating", "cpp:const"] idempotent long getSessionTimeout();
|
162
|
+
|
163
|
+
/**
|
164
|
+
*
|
165
|
+
* Get the value of the ACM timeout. Clients supporting connection
|
166
|
+
* heartbeats can enable them instead of explicitly sending keep
|
167
|
+
* alives requests.
|
168
|
+
*
|
169
|
+
* NOTE: This method is only available since Ice 3.6.
|
170
|
+
*
|
171
|
+
* @return The timeout (in seconds).
|
172
|
+
*
|
173
|
+
**/
|
174
|
+
["nonmutating", "cpp:const"] idempotent int getACMTimeout();
|
175
|
+
};
|
176
|
+
|
177
|
+
};
|
178
|
+
|