You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by cc...@apache.org on 2008/07/31 23:04:08 UTC

svn commit: r681494 - /incubator/qpid/trunk/qpid/cpp/src/qpid/broker/AclModule.h

Author: cctrieloff
Date: Thu Jul 31 14:04:07 2008
New Revision: 681494

URL: http://svn.apache.org/viewvc?rev=681494&view=rev
Log:
another missing file

Added:
    incubator/qpid/trunk/qpid/cpp/src/qpid/broker/AclModule.h

Added: incubator/qpid/trunk/qpid/cpp/src/qpid/broker/AclModule.h
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/broker/AclModule.h?rev=681494&view=auto
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/broker/AclModule.h (added)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/broker/AclModule.h Thu Jul 31 14:04:07 2008
@@ -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