summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2008-07-31 21:04:07 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2008-07-31 21:04:07 +0000
commitaf7f5108290f2d14d49003727901df6d7c96d6f4 (patch)
tree37869c9dbef3af3c7366653523099236a744dc68 /cpp/src
parentd208233b0b8861d0154f62ee165e344ea6b21406 (diff)
downloadqpid-python-af7f5108290f2d14d49003727901df6d7c96d6f4.tar.gz
another missing file
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@681494 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/AclModule.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/AclModule.h b/cpp/src/qpid/broker/AclModule.h
new file mode 100644
index 0000000000..dfb365158d
--- /dev/null
+++ b/cpp/src/qpid/broker/AclModule.h
@@ -0,0 +1,57 @@
+#ifndef QPID_ACLMODULE_ACL_H
+#define QPID_ACLMODULE_ACL_H
+
+
+/*
+ *
+ * Copyright (c) 2006 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+
+
+#include "qpid/shared_ptr.h"
+#include "qpid/RefCounted.h"
+#include <map>
+#include <string>
+
+
+namespace qpid {
+
+namespace acl{
+typedef enum ObjectType {QUEUE,EXCHANGE,ROUTINGKEY};
+typedef enum Action {CONSUME,PUBLISH,CREATE,ACCESS,BIND,UNBIND,DELETE,PURGE};
+typedef enum AclResult {ALLOW,ALLOWLOG,DENY,DENYNOLOG};
+}
+
+namespace broker {
+
+
+class AclModule
+{
+
+public:
+
+ virtual bool authorise(std::string id, acl::Action action, acl::ObjectType objType, std::string name, std::map<std::string, std::string>* params)=0;
+ // create specilied authorise methods for cases that need faster matching as needed.
+
+ virtual ~AclModule() {};
+};
+
+
+
+}} // namespace qpid::broker
+
+#endif // QPID_ACLMODULE_ACL_H