From af7f5108290f2d14d49003727901df6d7c96d6f4 Mon Sep 17 00:00:00 2001 From: "Carl C. Trieloff" Date: Thu, 31 Jul 2008 21:04:07 +0000 Subject: another missing file git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@681494 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/AclModule.h | 57 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 cpp/src/qpid/broker/AclModule.h (limited to 'cpp/src') 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 +#include + + +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* params)=0; + // create specilied authorise methods for cases that need faster matching as needed. + + virtual ~AclModule() {}; +}; + + + +}} // namespace qpid::broker + +#endif // QPID_ACLMODULE_ACL_H -- cgit v1.2.1