Ice 3.7 Slice API Reference
Loading...
Searching...
No Matches
Session.ice
Go to the documentation of this file.
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
21#include <Ice/Identity.ice>
22#include <Glacier2/SSLInfo.ice>
23
24#ifndef __SLICE2JAVA_COMPAT__
25[["java:package:com.zeroc"]]
26#endif
27
28["objc:prefix:GLACIER2"]
29module Glacier2
30{
31
37["preserve-slice"]
39{
45 string reason;
46}
47
56interface Session
57{
63 void destroy();
64}
65
76interface StringSet
77{
86 idempotent void add(Ice::StringSeq additions);
87
96 idempotent void remove(Ice::StringSeq deletions);
97
106 idempotent Ice::StringSeq get();
107}
108
118interface IdentitySet
119{
128 idempotent void add(Ice::IdentitySeq additions);
129
138 idempotent void remove(Ice::IdentitySeq deletions);
139
148 idempotent Ice::IdentitySeq get();
149}
150
160{
170
180
190
198 idempotent int getSessionTimeout();
199
205 void destroy();
206}
207
221{
236 ["format:sliced"]
237 Session* create(string userId, SessionControl* control)
239}
240
254{
269 ["format:sliced"]
272}
273
274}
This exception is raised if an attempt to create a new session failed.
Definition Session.ice:39
string reason
The reason why session creation has failed.
Definition Session.ice:45
An object for managing the set of object identity constraints on a Session.
Definition Session.ice:119
idempotent void add(Ice::IdentitySeq additions)
Add a sequence of Ice identities to this set of constraints.
The session manager for SSL authenticated users that is responsible for managing Session objects.
Definition Session.ice:254
Session * create(SSLInfo info, SessionControl *control)
Create a new session.
An administrative session control object, which is tied to the lifecycle of a Session.
Definition Session.ice:160
StringSet * adapterIds()
Access the object that manages the allowable adapter identities for objects for this session.
idempotent int getSessionTimeout()
Get the session timeout.
StringSet * categories()
Access the object that manages the allowable categories for object identities for this session.
IdentitySet * identities()
Access the object that manages the allowable object identities for this session.
void destroy()
Destroy the associated session.
The session manager for username/password authenticated users that is responsible for managing Sessio...
Definition Session.ice:221
Session * create(string userId, SessionControl *control)
Create a new session.
A client-visible session object, which is tied to the lifecycle of a Router.
Definition Session.ice:57
void destroy()
Destroy the session.
An object for managing the set of identity constraints for specific parts of object identity on a Ses...
Definition Session.ice:77
idempotent void add(Ice::StringSeq additions)
Add a sequence of strings to this set of constraints.
Glacier2 is a firewall solution for Ice.
Definition PermissionsVerifier.ice:28
sequence< Identity > IdentitySeq
A sequence of identities.
Definition Identity.ice:73
sequence< string > StringSeq
A sequence of strings.
Definition BuiltinSequences.ice:51
Information taken from an SSL connection used for permissions verification.
Definition SSLInfo.ice:39