1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: CertificateValidity.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 //i20156 - new file for xmlsecurity module
33 /** -- idl definition -- **/
35 #ifndef __com_sun_star_security_CertificateValidity_idl_
36 #define __com_sun_star_security_CertificateValidity_idl_
38 #include
<com
/sun
/star
/uno
/XInterface.idl
>
39 #include
<com
/sun
/star
/util
/DateTime.idl
>
41 module com
{ module sun
{ module star
{ module security
{
44 * Constant definiton of a certificate characters.
46 * The certificate characters will be defined as bit-wise constants.
48 constants CertificateValidity
50 const long VALID
= 0x00000000;
52 * The certificate is invalid.
54 const long INVALID
= 0x00000001 ;
57 * The certificate itself is untrusted.
59 const long UNTRUSTED
= 0x00000002 ;
62 * The current time is not in the range of time for
63 * which the certificate is valid.
65 const long TIME_INVALID
= 0x00000004 ;
67 /** The time range of a certificate does not fall within
68 the time range of the issuing certificate.
70 const long NOT_TIME_NESTED
= 0x00000008;
73 * It is a revoked certificate.
75 const long REVOKED
= 0x00000010 ;
78 * The certificate revocation status is unknown.
80 const long UNKNOWN_REVOKATION
= 0x00000020 ;
83 * The certificate signature is invalid.
85 const long SIGNATURE_INVALID
= 0x00000040 ;
88 * The certificate has invalid extensions.
90 const long EXTENSION_INVALID
= 0x00000080 ;
93 * The certificate has critical unknown extensions.
95 const long EXTENSION_UNKNOWN
= 0x00000100 ;
98 * The certificate issuer is unknown.
100 const long ISSUER_UNKNOWN
= 0x00000200;
103 * The certificate issuer is untrusted.
105 const long ISSUER_UNTRUSTED
= 0x00000400 ;
108 * The certificate issuer is invalid.
110 const long ISSUER_INVALID
= 0x00001000 ;
113 * The root certificate is unknown.
115 const long ROOT_UNKNOWN
= 0x00002000 ;
118 * The root certificate is untrusted.
120 const long ROOT_UNTRUSTED
= 0x00004000 ;
123 * The root certificate is invalid.
125 const long ROOT_INVALID
= 0x00010000 ;
128 * The certificate chain is incomplete.
130 const long CHAIN_INCOMPLETE
= 0x00020000 ;