1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24//i20156 - new file for xmlsecurity module
25
26/** -- idl definition -- **/
27
28#ifndef __com_sun_star_security_CertificateValidity_idl_
29#define __com_sun_star_security_CertificateValidity_idl_
30
31#include <com/sun/star/uno/XInterface.idl>
32#include <com/sun/star/util/DateTime.idl>
33
34module com { module sun { module star { module security {
35
36/**
37 * Constant definiton of a certificate characters.
38 *
39 * The certificate characters will be defined as bit-wise constants.
40 */
41constants CertificateValidity
42{
43    const long VALID = 0x00000000;
44	/**
45	 * The certificate is invalid.
46	 */
47	const long INVALID = 0x00000001 ;
48
49	/**
50	 * The certificate itself is untrusted.
51	 */
52	const long UNTRUSTED = 0x00000002 ;
53
54	/**
55	 * The current time is not in the range of time for
56	 * which the certificate is valid.
57	 */
58	const long TIME_INVALID = 0x00000004 ;
59
60    /** The time range of a certificate does not fall within
61        the time range of the issuing certificate.
62     */
63    const long NOT_TIME_NESTED = 0x00000008;
64
65	/**
66	 * It is a revoked certificate.
67	 */
68	const long REVOKED = 0x00000010 ;
69
70	/**
71	 * The certificate revocation status is unknown.
72	 */
73	const long UNKNOWN_REVOKATION = 0x00000020 ;
74
75	/**
76	 * The certificate signature is invalid.
77	 */
78	const long SIGNATURE_INVALID = 0x00000040 ;
79
80	/**
81	 * The certificate has invalid extensions.
82	 */
83	const long EXTENSION_INVALID = 0x00000080 ;
84
85	/**
86	 * The certificate has critical unknown extensions.
87	 */
88	const long EXTENSION_UNKNOWN = 0x00000100 ;
89
90	/**
91	 * The certificate issuer is unknown.
92	 */
93	const long ISSUER_UNKNOWN =  0x00000200;
94
95	/**
96	 * The certificate issuer is untrusted.
97	 */
98	const long ISSUER_UNTRUSTED = 0x00000400 ;
99
100	/**
101	 * The certificate issuer is invalid.
102	 */
103	const long ISSUER_INVALID = 0x00001000 ;
104
105	/**
106	 * The root certificate is unknown.
107	 */
108	const long ROOT_UNKNOWN = 0x00002000 ;
109
110	/**
111	 * The root certificate is untrusted.
112	 */
113	const long ROOT_UNTRUSTED = 0x00004000 ;
114
115	/**
116	 * The root certificate is invalid.
117	 */
118	const long ROOT_INVALID = 0x00010000 ;
119
120	/**
121	 * The certificate chain is incomplete.
122	 */
123	const long CHAIN_INCOMPLETE = 0x00020000 ;
124} ;
125
126} ; } ; } ; } ;
127
128#endif
129
130