Ice 3.6 Slice API Reference
All Classes Interfaces Structs Exceptions Modules Files Operations Constants Sequences Dictionaries Enumerations Enumerator Pages
Session.ice
Go to the documentation of this file.
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2018 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", "objc:header-dir:objc", "js:ice-build"]]
13 [["cpp:include:Glacier2/Config.h"]]
14 
15 #include <Ice/BuiltinSequences.ice>
16 #include <Ice/Identity.ice>
17 #include <Glacier2/SSLInfo.ice>
18 
19 ["objc:prefix:GLACIER2"]
20 module Glacier2
21 {
22 
28 ["preserve-slice"]
30 {
36  string reason;
37 };
38 
48 interface Session
49 {
55  void destroy();
56 };
57 
68 interface StringSet
69 {
78  idempotent void add(Ice::StringSeq additions);
79 
88  idempotent void remove(Ice::StringSeq deletions);
89 
98  idempotent Ice::StringSeq get();
99 };
100 
110 interface IdentitySet
111 {
120  idempotent void add(Ice::IdentitySeq additions);
121 
130  idempotent void remove(Ice::IdentitySeq deletions);
131 
140  idempotent Ice::IdentitySeq get();
141 };
142 
151 interface SessionControl
152 {
161  StringSet* categories();
162 
171  StringSet* adapterIds();
172 
181  IdentitySet* identities();
182 
190  idempotent int getSessionTimeout();
191 
197  void destroy();
198 };
199 
212 interface SessionManager
213 {
228  ["format:sliced"]
229  Session* create(string userId, SessionControl* control)
231 };
232 
246 {
261  ["format:sliced"]
262  Session* create(SSLInfo info, SessionControl* control)
264 };
265 
266 };
267 
An object for managing the set of identity constraints for specific parts of object identity on a Ses...
Definition: Session.ice:68
The session manager for username/password authenticated users that is responsible for managing Sessio...
Definition: Session.ice:212
Glacier2 is a firewall solution for Ice.
Definition: PermissionsVerifier.ice:18
string reason
The reason why session creation has failed.
Definition: Session.ice:36
The session manager for SSL authenticated users that is responsible for managing Session objects...
Definition: Session.ice:245
This exception is raised if an attempt to create a new session failed.
Definition: Session.ice:29
A client-visible session object, which is tied to the lifecycle of a Router.
Definition: Session.ice:48
An administrative session control object, which is tied to the lifecycle of a Session.
Definition: Session.ice:151
sequence< string > StringSeq
A sequence of strings.
Definition: BuiltinSequences.ice:40
An object for managing the set of object identity constraints on a Session.
Definition: Session.ice:110
Information taken from an SSL connection used for permissions verification.
Definition: SSLInfo.ice:29
sequence< Identity > IdentitySeq
A sequence of identities.
Definition: Identity.ice:57