Modify Scanner class
[platform/framework/native/appfw.git] / inc / FSecCertTypes.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // 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 /**
19  * @file                        FSecCertTypes.h
20  * @brief               This is the header file for the %CertTypes definitions.
21  *
22  * This header file contains the %CertTypes definitions.
23  */
24 #ifndef _FSEC_CERT_TYPES_H_
25 #define _FSEC_CERT_TYPES_H_
26
27 namespace Tizen { namespace Security { namespace Cert
28 {
29
30 /**
31  * @enum ValidationResult
32  *
33  * Defines the validation result.
34  *
35  * @since               2.0
36  */
37 enum ValidationResult
38 {
39         VALIDATION_SUCCESS = 0,                         /**<    Success */
40         VALIDATION_ERROR_INVALID_PATH,          /**<    The certificate path does not validate */
41         VALIDATION_ERROR_NO_ROOT,                   /**<        The root certificate is not found */
42         VALIDATION_ERROR_CERT_EXPIRED,          /**<    The certificate date falls outside the validity period */
43         VALIDATION_ERROR_CERT_REVOKED,          /**<    The certificate has been revoked */
44         VALIDATION_ERROR_INVALID_SIGNATURE, /**<        The signature is not valid */
45
46 }; //ValidationResult
47
48 } } } //Tizen::Security::Cert
49
50 #endif // _FSEC_CERT_TYPES_H_