diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-08-31 08:52:12 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-08-31 08:52:12 +0000 |
commit | 0f75c80f84a0234bf986fe97fd5810710d2f0a7e (patch) | |
tree | a7b6f167b7ff87d4b216a28bb3e2afac8233b495 /offapi/com/sun/star/security | |
parent | 85aa2276510135193c2cc39b705296d6ecd274a8 (diff) |
INTEGRATION: CWS xmlsec05 (1.1.4); FILE ADDED
2004/07/23 09:34:52 mt 1.1.4.4: #i21596# Digital Signatures...
2004/07/16 15:30:53 mt 1.1.4.3: #i20156# Digital Signatures...
2004/07/14 08:54:26 mt 1.1.4.2: API...
2004/07/09 11:34:31 mt 1.1.4.1: XMLSecurity
Diffstat (limited to 'offapi/com/sun/star/security')
-rw-r--r-- | offapi/com/sun/star/security/XDocumentDigitalSignatures.idl | 159 |
1 files changed, 159 insertions, 0 deletions
diff --git a/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl new file mode 100644 index 000000000000..0bb15b7d7f02 --- /dev/null +++ b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl @@ -0,0 +1,159 @@ +/************************************************************************* + * + * $RCSfile: XDocumentDigitalSignatures.idl,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: kz $ $Date: 2004-08-31 09:52:12 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +//i20156 - new file for xmlsecurity module + +/** -- idl definition -- **/ + +#ifndef __com_sun_star_security_XDocumentDigitalSignatures_idl_ +#define __com_sun_star_security_XDocumentDigitalSignatures_idl_ + +#include <com/sun/star/uno/XInterface.idl> +#include <com/sun/star/embed/XStorage.idl> +#include <com/sun/star/security/DocumentSignaturesInformation.idl> +#include <com/sun/star/security/XCertificate.idl> + +module com { module sun { module star { module security { + +/** interface for signing and verifying digital signatures in office documents + + <p> + This interface can be used to digitaly sign different content in a office document. + It can also be used to verify digital signatures. + </p> + */ + +interface XDocumentDigitalSignatures : com::sun::star::uno::XInterface +{ + /** + * Sign the content of the document including text and pictures. + Macros will not be signed. + */ + boolean SignDocumentContent( [in] ::com::sun::star::embed::XStorage Storage ); + + /** + * Check for digital signatures and their status. + Only document content will be checked. + */ + sequence< com::sun::star::security::DocumentSignaturesInformation > VerifyDocumentContentSignatures( [in] ::com::sun::star::embed::XStorage Storage ); + + /** + * Show the digital signatures of the document content + */ + void ShowDocumentContentSignatures( [in] ::com::sun::star::embed::XStorage Storage ); + + /** + * Sign the content of the Scripting including macros and basic dialogs + Rest of document content will not be signed. + */ + boolean SignScriptingContent( [in] ::com::sun::star::embed::XStorage Storage ); + + /** + * Check for digital signatures and their status. + Only Scripting content will be checked. + */ + sequence< com::sun::star::security::DocumentSignaturesInformation > VerifyScriptingContentSignatures( [in] ::com::sun::star::embed::XStorage Storage ); + + /** + * Show the digital signatures of the scripting content + */ + void ShowScriptingContentSignatures( [in] ::com::sun::star::embed::XStorage Storage ); + + /** + * Sign the full Package, which means everything in the storage excecpt the content of META-INF + */ + boolean SignPackage( [in] ::com::sun::star::embed::XStorage Storage ); + + /** + * Check for digital signatures and their status. + Only Package content will be checked. + */ + sequence< com::sun::star::security::DocumentSignaturesInformation > VerifyPackageSignatures( [in] ::com::sun::star::embed::XStorage Storage ); + + /** + * Show the digital signatures of the package + */ + void ShowPackageSignatures( [in] ::com::sun::star::embed::XStorage Storage ); + + void ShowCertificate( [in] com::sun::star::security::XCertificate Certificate ); + + + /** + * Manage trusted sources (Authors and pathes ) + */ + + void manageTrustedSources(); + boolean isAuthorTrusted( [in] com::sun::star::security::XCertificate Author ); + boolean isLocationTrusted( [in] string Location ); + + // These method should raise confirmation dialog, so it can not used from bad macros... + void addAuthorToTrustedSources( [in] com::sun::star::security::XCertificate Author ); + void addLocationToTrustedSources( [in] string Location ); + + + +} ; + +} ; } ; } ; } ; + +#endif + + |