diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/slice/Glacier/Makefile | 26 | ||||
-rw-r--r-- | cpp/slice/Glacier/Router.ice | 63 | ||||
-rw-r--r-- | cpp/slice/Glacier/Session.ice | 37 | ||||
-rw-r--r-- | cpp/slice/Glacier/SessionF.ice | 20 | ||||
-rw-r--r-- | cpp/slice/Glacier/SessionManager.ice | 42 | ||||
-rw-r--r-- | cpp/slice/Glacier/SessionManagerF.ice | 20 | ||||
-rw-r--r-- | cpp/slice/Glacier/Starter.ice | 126 | ||||
-rw-r--r-- | cpp/slice/Makefile | 1 |
8 files changed, 0 insertions, 335 deletions
diff --git a/cpp/slice/Glacier/Makefile b/cpp/slice/Glacier/Makefile deleted file mode 100644 index 8f7f3ba645b..00000000000 --- a/cpp/slice/Glacier/Makefile +++ /dev/null @@ -1,26 +0,0 @@ -# ********************************************************************** -# -# Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. -# -# This copy of Ice is licensed to you under the terms described in the -# ICE_LICENSE file included in this distribution. -# -# ********************************************************************** - -top_srcdir = ../.. - -include $(top_srcdir)/config/Make.rules - -install:: - @if test ! -d $(install_slicedir)/Glacier ; \ - then \ - echo "Creating $(install_slicedir)/Glacier..." ; \ - mkdir $(install_slicedir)/Glacier ; \ - chmod a+rx $(install_slicedir)/Glacier ; \ - fi - - @for i in *.ice ; \ - do \ - echo "Installing $$i" ; \ - $(INSTALL_DATA) $$i $(install_slicedir)/Glacier/$$i ; \ - done diff --git a/cpp/slice/Glacier/Router.ice b/cpp/slice/Glacier/Router.ice deleted file mode 100644 index c82e8b03345..00000000000 --- a/cpp/slice/Glacier/Router.ice +++ /dev/null @@ -1,63 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef GLACIER_ROUTER_ICE -#define GLACIER_ROUTER_ICE - -#include <Ice/Router.ice> -#include <Glacier/SessionF.ice> - -module Glacier -{ - -/** - * - * This exception is raised if no [SessionManager] object has been - * configured. - * - **/ -exception NoSessionManagerException -{ -}; - -/** - * - * The &Glacier; router interface. - * - **/ -interface Router extends Ice::Router -{ - /** - * - * Shutdown the router. - * - **/ - void shutdown(); - - /** - * - * Create a session, or return a previously created session. The - * session is automatically shutdown when the Router terminates. - * - * @return A proxy to the session. - * - * @throws NoSessionManagerException if there is no configured - * [SessionManager]. - * - **/ - // TODO: Should be renamed to getSession(). Returns the session - // for the &Glacier; client, or creates a new one if no session - // exists yet. - Session* createSession() - throws NoSessionManagerException; -}; - -}; - -#endif diff --git a/cpp/slice/Glacier/Session.ice b/cpp/slice/Glacier/Session.ice deleted file mode 100644 index 4b0857a9442..00000000000 --- a/cpp/slice/Glacier/Session.ice +++ /dev/null @@ -1,37 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef GLACIER_SESSION_ICE -#define GLACIER_SESSION_ICE - -module Glacier -{ - -/** - * - * A session object, which is tied to the lifecycle of a [Router]. - * - * @see Router - * @see SessionManager - * - **/ -interface Session -{ - /** - * - * Destroy the session. This is called automatically when the - * [Router] is destroyed. - * - **/ - void destroy(); -}; - -}; - -#endif diff --git a/cpp/slice/Glacier/SessionF.ice b/cpp/slice/Glacier/SessionF.ice deleted file mode 100644 index 1d6d5819701..00000000000 --- a/cpp/slice/Glacier/SessionF.ice +++ /dev/null @@ -1,20 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef GLACIER_SESSION_F_ICE -#define GLACIER_SESSION_F_ICE - -module Glacier -{ - -interface Session; - -}; - -#endif diff --git a/cpp/slice/Glacier/SessionManager.ice b/cpp/slice/Glacier/SessionManager.ice deleted file mode 100644 index a7836588ae2..00000000000 --- a/cpp/slice/Glacier/SessionManager.ice +++ /dev/null @@ -1,42 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef GLACIER_SESSION_MANAGER_ICE -#define GLACIER_SESSION_MANAGER_ICE - -#include <Glacier/SessionF.ice> - -module Glacier -{ - -/** - * - * The session manager, which is responsible for managing [Session] - * objects. New session objects are created by the [Router] object. - * - * @see Session - * - **/ -interface SessionManager -{ - /** - * - * Create a new session object. - * - * @param userId The user id for the session. - * - * @return A proxy to the newly created session. - * - **/ - Session* create(string userId); -}; - -}; - -#endif diff --git a/cpp/slice/Glacier/SessionManagerF.ice b/cpp/slice/Glacier/SessionManagerF.ice deleted file mode 100644 index 1c759f5962d..00000000000 --- a/cpp/slice/Glacier/SessionManagerF.ice +++ /dev/null @@ -1,20 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef GLACIER_SESSION_MANAGER_F_ICE -#define GLACIER_SESSION_MANAGER_F_ICE - -module Glacier -{ - -interface SessionManager; - -}; - -#endif diff --git a/cpp/slice/Glacier/Starter.ice b/cpp/slice/Glacier/Starter.ice deleted file mode 100644 index aef43d57388..00000000000 --- a/cpp/slice/Glacier/Starter.ice +++ /dev/null @@ -1,126 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef GLACIER_STARTER_ICE -#define GLACIER_STARTER_ICE - -#include <Glacier/Router.ice> -#include <Ice/BuiltinSequences.ice> -#include <Ice/SliceChecksumDict.ice> - -/** - * - * &Glacier; is a firewall solution for Ice. &Glacier; authenticates - * and filters client requests and allows callbacks to the client in a - * secure fashion. In combination with &IceSSL;, &Glacier; provides a - * security solution that is both non-intrusive and easy to configure. - * - **/ -module Glacier -{ - -/** - * - * This exception is raised if router access is denied. - * - **/ -exception PermissionDeniedException -{ - /** - * Details as to why access was denied. - **/ - string reason; -}; - -/** - * - * This exception is raised if the router cannot be started. - * - **/ -exception CannotStartRouterException -{ - /** - * Details as to why the router could not be started. - **/ - string reason; -}; - -/** - * - * The &Glacier; router starter. - * - **/ -interface Starter -{ - /** - * - * Start a new &Glacier; router. If the password for the given user - * id is incorrect, or if the user isn't allowed access, an - * [PermissionDeniedException] is raised. Otherwise a new router is - * started, and a proxy to that router is returned to the caller. - * - * @param userId The user id for which to check the password. - * - * @param password The password for the given user id. - * - * @param privateKey The RSA Private Key (DER encoded) for the - * client to use. (Only for SSL.) - * - * @param publicKey The RSA Public Key (DER encoded) for the - * client to use. (Only for SSL.) - * - * @param routerCert The trusted certificate of the router. - * (Only for SSL.) - * - * @return A proxy to the router that has been started. - * - * @throws PermissionDeniedException Raised if the password for the - * given user id is not correct or if the user isn't allowed access. - * - **/ - Glacier::Router* startRouter(string userId, string password, - out Ice::ByteSeq privateKey, out Ice::ByteSeq publicKey, out Ice::ByteSeq routerCert) - throws PermissionDeniedException, CannotStartRouterException; - - /** - * - * Returns the checksums for the Glacier Slice definitions. - * - * @return A dictionary mapping Slice type ids to their checksums. - * - **/ - nonmutating Ice::SliceChecksumDict getSliceChecksums(); -}; - -/** - * - * The &Glacier; router starter permissions verifier. - * - **/ -interface PermissionsVerifier -{ - /** - * - * Check whether a user has permission to access the router. - * - * @param userId The user id for which to check permission. - * - * @param password The user's password. - * - * @param reason The reason why access was denied. - * - * @return True if access is granted, or false otherwise. - * - **/ - nonmutating bool checkPermissions(string userId, string password, out string reason); -}; - -}; - -#endif diff --git a/cpp/slice/Makefile b/cpp/slice/Makefile index 96fd67e48f2..e284c26bbdc 100644 --- a/cpp/slice/Makefile +++ b/cpp/slice/Makefile @@ -12,7 +12,6 @@ top_srcdir = .. include $(top_srcdir)/config/Make.rules SUBDIRS = Freeze \ - Glacier \ Glacier2 \ Ice \ IceBox \ |