[NUI] TCSACR-226 code change (#1032)
[platform/core/csapi/tizenfx.git] / src / Tizen.Security.SecureRepository / Tizen.Security.SecureRepository / OcspStatus.cs
1 /*
2  *  Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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 using System;
18 using System.Collections.Generic;
19 using System.Linq;
20 using System.Text;
21 using System.Threading.Tasks;
22
23 namespace Tizen.Security.SecureRepository
24 {
25     /// <summary>
26     /// Enumeration for the OCSP status.
27     /// </summary>
28     /// <since_tizen> 3 </since_tizen>
29     public enum OcspStatus : int
30     {
31         /// <summary>
32         /// The OCSP status is good.
33         /// </summary>
34         Good = 0x00,
35         /// <summary>
36         /// The certificate is revoked.
37         /// </summary>
38         Revoked = 0x01,
39         /// <summary>
40         /// Unknown error.
41         /// </summary>
42         Unknown = 0x02,
43         /// <summary>
44         /// The certificate does not provide the OCSP extension.
45         /// </summary>
46         Unsupported = 0x03,
47         /// <summary>
48         /// The invalid URL in the certificate OCSP extension.
49         /// </summary>
50         InvalidUrl = 0x04,
51         /// <summary>
52         /// The invalid response from the OCSP server.
53         /// </summary>
54         InvalidResponse = 0x05,
55         /// <summary>
56         /// The OCSP remote server error.
57         /// </summary>
58         RemoteError = 0x06,
59         /// <summary>
60         /// The Network connection error.
61         /// </summary>
62         NetworkError = 0x07,
63         /// <summary>
64         /// An Internal error.
65         /// </summary>
66         InternalError = 0x08
67     }
68 }