1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28//i20156 - new file for xmlsecurity module
29
30/** -- idl definition -- **/
31
32#ifndef __com_sun_star_security_CertificateValidity_idl_
33#define __com_sun_star_security_CertificateValidity_idl_
34
35#include <com/sun/star/uno/XInterface.idl>
36#include <com/sun/star/util/DateTime.idl>
37
38module com { module sun { module star { module security {
39
40/**
41 * Constant definiton of a certificate characters.
42 *
43 * The certificate characters will be defined as bit-wise constants.
44 */
45constants CertificateValidity
46{
47    const long VALID = 0x00000000;
48	/**
49	 * The certificate is invalid.
50	 */
51	const long INVALID = 0x00000001 ;
52
53	/**
54	 * The certificate itself is untrusted.
55	 */
56	const long UNTRUSTED = 0x00000002 ;
57
58	/**
59	 * The current time is not in the range of time for
60	 * which the certificate is valid.
61	 */
62	const long TIME_INVALID = 0x00000004 ;
63
64    /** The time range of a certificate does not fall within
65        the time range of the issuing certificate.
66     */
67    const long NOT_TIME_NESTED = 0x00000008;
68
69	/**
70	 * It is a revoked certificate.
71	 */
72	const long REVOKED = 0x00000010 ;
73
74	/**
75	 * The certificate revocation status is unknown.
76	 */
77	const long UNKNOWN_REVOKATION = 0x00000020 ;
78
79	/**
80	 * The certificate signature is invalid.
81	 */
82	const long SIGNATURE_INVALID = 0x00000040 ;
83
84	/**
85	 * The certificate has invalid extensions.
86	 */
87	const long EXTENSION_INVALID = 0x00000080 ;
88
89	/**
90	 * The certificate has critical unknown extensions.
91	 */
92	const long EXTENSION_UNKNOWN = 0x00000100 ;
93
94	/**
95	 * The certificate issuer is unknown.
96	 */
97	const long ISSUER_UNKNOWN =  0x00000200;
98
99	/**
100	 * The certificate issuer is untrusted.
101	 */
102	const long ISSUER_UNTRUSTED = 0x00000400 ;
103
104	/**
105	 * The certificate issuer is invalid.
106	 */
107	const long ISSUER_INVALID = 0x00001000 ;
108
109	/**
110	 * The root certificate is unknown.
111	 */
112	const long ROOT_UNKNOWN = 0x00002000 ;
113
114	/**
115	 * The root certificate is untrusted.
116	 */
117	const long ROOT_UNTRUSTED = 0x00004000 ;
118
119	/**
120	 * The root certificate is invalid.
121	 */
122	const long ROOT_INVALID = 0x00010000 ;
123
124	/**
125	 * The certificate chain is incomplete.
126	 */
127	const long CHAIN_INCOMPLETE = 0x00020000 ;
128} ;
129
130} ; } ; } ; } ;
131
132#endif
133
134