1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_security_CertificateValidity_idl_
21 #define __com_sun_star_security_CertificateValidity_idl_
23 #include
<com
/sun
/star
/uno
/XInterface.idl
>
24 #include
<com
/sun
/star
/util
/DateTime.idl
>
26 module com
{ module sun
{ module star
{ module security
{
29 * Constant definition of a certificate characters.
31 * The certificate characters will be defined as bit-wise constants.
33 constants CertificateValidity
35 const long VALID
= 0x00000000;
37 * The certificate is invalid.
39 const long INVALID
= 0x00000001 ;
42 * The certificate itself is untrusted.
44 const long UNTRUSTED
= 0x00000002 ;
47 * The current time is not in the range of time for
48 * which the certificate is valid.
50 const long TIME_INVALID
= 0x00000004 ;
52 /** The time range of a certificate does not fall within
53 the time range of the issuing certificate.
55 const long NOT_TIME_NESTED
= 0x00000008;
58 * It is a revoked certificate.
60 const long REVOKED
= 0x00000010 ;
63 * The certificate revocation status is unknown.
65 const long UNKNOWN_REVOKATION
= 0x00000020 ;
68 * The certificate signature is invalid.
70 const long SIGNATURE_INVALID
= 0x00000040 ;
73 * The certificate has invalid extensions.
75 const long EXTENSION_INVALID
= 0x00000080 ;
78 * The certificate has critical unknown extensions.
80 const long EXTENSION_UNKNOWN
= 0x00000100 ;
83 * The certificate issuer is unknown.
85 const long ISSUER_UNKNOWN
= 0x00000200;
88 * The certificate issuer is untrusted.
90 const long ISSUER_UNTRUSTED
= 0x00000400 ;
93 * The certificate issuer is invalid.
95 const long ISSUER_INVALID
= 0x00001000 ;
98 * The root certificate is unknown.
100 const long ROOT_UNKNOWN
= 0x00002000 ;
103 * The root certificate is untrusted.
105 const long ROOT_UNTRUSTED
= 0x00004000 ;
108 * The root certificate is invalid.
110 const long ROOT_INVALID
= 0x00010000 ;
113 * The certificate chain is incomplete.
115 const long CHAIN_INCOMPLETE
= 0x00020000 ;
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */