activemq-cpp-3.9.5
Engine.h
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef _DECAF_INTERNAL_SECURITY_ENGINE_H_
19#define _DECAF_INTERNAL_SECURITY_ENGINE_H_
20
21#include <decaf/util/Config.h>
22
23#include <string>
24
25namespace decaf {
26namespace security {
27 class Provider;
28 class SecuritySpi;
29}
30namespace internal {
31namespace security {
32
42 class DECAF_API Engine {
43 private:
44
45 std::string serviceName;
46 const decaf::security::Provider* provider;
47
48 private:
49
50 Engine(const Engine&);
51 Engine operator= (const Engine&);
52
53 public:
54
55 Engine(const std::string& serviceName);
56
57 virtual ~Engine();
58
65 std::string getServiceName() const {
66 return this->serviceName;
67 }
68
78 return this->provider;
79 }
80
87 decaf::security::SecuritySpi* newInstance(const std::string& algorithmName);
88
89 };
90
91}}}
92
93#endif /* _DECAF_INTERNAL_SECURITY_ENGINE_H_ */
decaf::security::SecuritySpi * newInstance(const std::string &algorithmName)
Return a new instance of the SercuritySpi implementation that is named by this engine's serviceName a...
std::string getServiceName() const
Returns the name of the service type that this Engine will be a builder of SecuritySpi instances for.
Definition Engine.h:65
const decaf::security::Provider * getProvider() const
Returns the Provider associated with this Engine.
Definition Engine.h:77
Engine(const std::string &serviceName)
This class represents a "provider" for the Decaf Security API, where a provider implements some or al...
Definition Provider.h:46
Base class used as a Marker for all Security Provider Interface classes in the Decaf Security API.
Definition SecuritySpi.h:32
#define DECAF_API
Definition Config.h:29
Definition Engine.h:31
Definition AprPool.h:26
Definition Engine.h:26
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25