LibreOffice
LibreOffice 4.3 SDK API Reference
XDocumentDigitalSignatures.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 //i20156 - new file for xmlsecurity module
21 
24 #ifndef __com_sun_star_security_XDocumentDigitalSignatures_idl_
25 #define __com_sun_star_security_XDocumentDigitalSignatures_idl_
26 
33 
34 module com { module sun { module star { module security {
35 
45 {
50  boolean signDocumentContent( [in] ::com::sun::star::embed::XStorage xStorage,
51  [in] ::com::sun::star::io::XStream xSignStream);
52 
57  sequence< com::sun::star::security::DocumentSignatureInformation > verifyDocumentContentSignatures(
58  [in] ::com::sun::star::embed::XStorage xStorage,
59  [in] ::com::sun::star::io::XInputStream xSignInStream );
60 
63  void showDocumentContentSignatures(
64  [in] ::com::sun::star::embed::XStorage xStorage,
65  [in] ::com::sun::star::io::XInputStream xSignInStream );
66 
70  string getDocumentContentSignatureDefaultStreamName();
71 
76  boolean signScriptingContent( [in] ::com::sun::star::embed::XStorage xStorage,
77  [in] ::com::sun::star::io::XStream xSignStream);
78 
83  sequence< com::sun::star::security::DocumentSignatureInformation > verifyScriptingContentSignatures(
84  [in] ::com::sun::star::embed::XStorage xStorage,
85  [in] ::com::sun::star::io::XInputStream xSignInStream );
86 
89  void showScriptingContentSignatures(
90  [in] ::com::sun::star::embed::XStorage xStorage,
91  [in] ::com::sun::star::io::XInputStream xSignInStream );
92 
96  string getScriptingContentSignatureDefaultStreamName();
97 
100  boolean signPackage( [in] ::com::sun::star::embed::XStorage Storage,
101  [in] ::com::sun::star::io::XStream xSignStream);
102 
107  sequence< com::sun::star::security::DocumentSignatureInformation > verifyPackageSignatures(
108  [in] ::com::sun::star::embed::XStorage Storage,
109  [in] ::com::sun::star::io::XInputStream xSignInStream );
110 
113  void showPackageSignatures(
114  [in] ::com::sun::star::embed::XStorage xStorage,
115  [in] ::com::sun::star::io::XInputStream xSignInStream );
116 
120  string getPackageSignatureDefaultStreamName();
121 
122 
123  void showCertificate( [in] com::sun::star::security::XCertificate Certificate );
124 
125 
129  void manageTrustedSources();
130  boolean isAuthorTrusted( [in] com::sun::star::security::XCertificate Author );
131  boolean isLocationTrusted( [in] string Location );
132 
133  // These method should raise confirmation dialog, so it can not used from bad macros...
134  void addAuthorToTrustedSources( [in] com::sun::star::security::XCertificate Author );
135  void addLocationToTrustedSources( [in] string Location );
136 
139  com::sun::star::security::XCertificate chooseCertificate();
140 
141 } ;
142 
143 } ; } ; } ; } ;
144 
145 #endif
146 
147 
148 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This interface represents main storage functionality.
Definition: XStorage.idl:43
– idl definition –
Definition: Ambiguous.idl:22
offers read and write access to the same stream.
Definition: XStream.idl:32
This is the basic interface to read data from a stream.
Definition: XInputStream.idl:37
interface for signing and verifying digital signatures in office documents
Definition: XDocumentDigitalSignatures.idl:44
base interface of all UNO interfaces
Definition: XInterface.idl:47
Interface of a PKI Certificate.
Definition: XCertificate.idl:34