1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#ifndef __com_sun_star_security_DocumentSignatureInformation_idl__ 29*cdf0e10cSrcweir#define __com_sun_star_security_DocumentSignatureInformation_idl__ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir#include <com/sun/star/security/XCertificate.idl> 32*cdf0e10cSrcweir#include <com/sun/star/security/CertificateValidity.idl> 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir//============================================================================= 36*cdf0e10cSrcweir 37*cdf0e10cSrcweirmodule com { module sun { module star { module security { 38*cdf0e10cSrcweir 39*cdf0e10cSrcweir//============================================================================= 40*cdf0e10cSrcweir 41*cdf0e10cSrcweir/** Status of digital signatures in a document. 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir <p> 44*cdf0e10cSrcweir This structure has the information about a digital signature in a document, and the status if the signature is valid. 45*cdf0e10cSrcweir </p> 46*cdf0e10cSrcweir */ 47*cdf0e10cSrcweir 48*cdf0e10cSrcweirstruct DocumentSignatureInformation 49*cdf0e10cSrcweir{ 50*cdf0e10cSrcweir XCertificate Signer; 51*cdf0e10cSrcweir long SignatureDate; 52*cdf0e10cSrcweir long SignatureTime; 53*cdf0e10cSrcweir boolean SignatureIsValid; 54*cdf0e10cSrcweir /* reflects the validity of the certificate. 55*cdf0e10cSrcweir Contains a value from the constants of 56*cdf0e10cSrcweir <type scope="com::sun::star::security">CertificateValidity</type>. 57*cdf0e10cSrcweir */ 58*cdf0e10cSrcweir long CertificateStatus; 59*cdf0e10cSrcweir /* indicates what content of a document is signed. 60*cdf0e10cSrcweir <p> 61*cdf0e10cSrcweir This value can be ignored when this struct is returned as part of 62*cdf0e10cSrcweir a macro signature validation. 63*cdf0e10cSrcweir As of OpenOffice.org 3.2 and ODF 1.2 the document signature comprises 64*cdf0e10cSrcweir all files except the signature file itself. 65*cdf0e10cSrcweir Signatures in OOo 2.x were only 66*cdf0e10cSrcweir applied to the files in the root of the document, except mimetype, the 67*cdf0e10cSrcweir Pictures and ObjectReplacements/Objects folder. That is, macros 68*cdf0e10cSrcweir were not part of the document signature. 69*cdf0e10cSrcweir OOo 3.0 signed everthing, execept mimetype and the META-INF folder. 70*cdf0e10cSrcweir <p> 71*cdf0e10cSrcweir If PartialDocumentSignature is true, then the signature was created by OOo 72*cdf0e10cSrcweir with a version less then 3.2. In this case, not all files are signed. The 73*cdf0e10cSrcweir signature can still be regarded as valid, as long as SignatureIsValid is true 74*cdf0e10cSrcweir and the certificate could be validated. However, users should be notified about 75*cdf0e10cSrcweir the fact, that not everything in this document is signed. 76*cdf0e10cSrcweir */ 77*cdf0e10cSrcweir boolean PartialDocumentSignature; 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir}; 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir//============================================================================= 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir}; }; }; }; 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir#endif 86*cdf0e10cSrcweir 87