diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2008-07-31 21:04:07 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2008-07-31 21:04:07 +0000 |
| commit | 1d9f8cb49a3d6730e38f905903fb4627a6584a26 (patch) | |
| tree | 2794de075f61de8aa7d09defc32505bce76718ba /qpid/cpp | |
| parent | 6de763cfbc02fd657d39d22c3007f4fbb7c32fa0 (diff) | |
| download | qpid-python-1d9f8cb49a3d6730e38f905903fb4627a6584a26.tar.gz | |
another missing file
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@681494 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/AclModule.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/broker/AclModule.h b/qpid/cpp/src/qpid/broker/AclModule.h new file mode 100644 index 0000000000..dfb365158d --- /dev/null +++ b/qpid/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 |
