Fixed Klocworks issues
[platform/framework/native/appfw.git] / src / security / cert / FSecCertX509CertificateSelector.cpp
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file                FSecCertX509CertificateSelector.cpp
19  * @brief               This is the implementation file for X509CertificateSelector class.
20  *
21  *
22  * This header file contains the implementation of X509CertificateSelector class.
23  *
24  */
25 #include <new>
26 #include <FBaseResult.h>
27 #include <FSecCertX509CertificateSelector.h>
28 #include <FBaseSysLog.h>
29
30 using namespace Tizen::Base;
31
32 namespace Tizen { namespace Security { namespace Cert
33 {
34
35 X509CertificateSelector::X509CertificateSelector(void)
36         : __certType(ROOT_CA)
37         , __pX509CertificateSelectorImpl(null)
38 {
39
40 }
41
42 X509CertificateSelector::~X509CertificateSelector(void)
43 {
44
45 }
46
47 void
48 X509CertificateSelector::SetType(CertificateType certificateType)
49 {
50         ClearLastResult();
51
52         __certType = certificateType;
53 }
54
55 CertificateType
56 X509CertificateSelector::GetType() const
57 {
58         ClearLastResult();
59         return __certType;
60 }
61
62 } } } //Tizen::Security::Cert