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#ifndef __com_sun_star_security_DocumentSignatureInformation_idl__ 29#define __com_sun_star_security_DocumentSignatureInformation_idl__ 30 31#include <com/sun/star/security/XCertificate.idl> 32#include <com/sun/star/security/CertificateValidity.idl> 33 34 35//============================================================================= 36 37module com { module sun { module star { module security { 38 39//============================================================================= 40 41/** Status of digital signatures in a document. 42 43 <p> 44 This structure has the information about a digital signature in a document, and the status if the signature is valid. 45 </p> 46 */ 47 48struct DocumentSignatureInformation 49{ 50 XCertificate Signer; 51 long SignatureDate; 52 long SignatureTime; 53 boolean SignatureIsValid; 54 /* reflects the validity of the certificate. 55 Contains a value from the constants of 56 <type scope="com::sun::star::security">CertificateValidity</type>. 57 */ 58 long CertificateStatus; 59 /* indicates what content of a document is signed. 60 <p> 61 This value can be ignored when this struct is returned as part of 62 a macro signature validation. 63 As of OpenOffice.org 3.2 and ODF 1.2 the document signature comprises 64 all files except the signature file itself. 65 Signatures in OOo 2.x were only 66 applied to the files in the root of the document, except mimetype, the 67 Pictures and ObjectReplacements/Objects folder. That is, macros 68 were not part of the document signature. 69 OOo 3.0 signed everthing, execept mimetype and the META-INF folder. 70 <p> 71 If PartialDocumentSignature is true, then the signature was created by OOo 72 with a version less then 3.2. In this case, not all files are signed. The 73 signature can still be regarded as valid, as long as SignatureIsValid is true 74 and the certificate could be validated. However, users should be notified about 75 the fact, that not everything in this document is signed. 76 */ 77 boolean PartialDocumentSignature; 78 79}; 80 81//============================================================================= 82 83}; }; }; }; 84 85#endif 86 87