LibreOffice
LibreOffice 5.4 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 #ifndef __com_sun_star_security_XDocumentDigitalSignatures_idl_
21 #define __com_sun_star_security_XDocumentDigitalSignatures_idl_
22 
29 
30 module com { module sun { module star { module security {
31 
41 {
46  boolean signDocumentContent( [in] ::com::sun::star::embed::XStorage xStorage,
47  [in] ::com::sun::star::io::XStream xSignStream);
48 
53  sequence< com::sun::star::security::DocumentSignatureInformation > verifyDocumentContentSignatures(
54  [in] ::com::sun::star::embed::XStorage xStorage,
55  [in] ::com::sun::star::io::XInputStream xSignInStream );
56 
59  void showDocumentContentSignatures(
60  [in] ::com::sun::star::embed::XStorage xStorage,
61  [in] ::com::sun::star::io::XInputStream xSignInStream );
62 
66  string getDocumentContentSignatureDefaultStreamName();
67 
72  boolean signScriptingContent( [in] ::com::sun::star::embed::XStorage xStorage,
73  [in] ::com::sun::star::io::XStream xSignStream);
74 
79  sequence< com::sun::star::security::DocumentSignatureInformation > verifyScriptingContentSignatures(
80  [in] ::com::sun::star::embed::XStorage xStorage,
81  [in] ::com::sun::star::io::XInputStream xSignInStream );
82 
85  void showScriptingContentSignatures(
86  [in] ::com::sun::star::embed::XStorage xStorage,
87  [in] ::com::sun::star::io::XInputStream xSignInStream );
88 
92  string getScriptingContentSignatureDefaultStreamName();
93 
96  boolean signPackage( [in] ::com::sun::star::embed::XStorage Storage,
97  [in] ::com::sun::star::io::XStream xSignStream);
98 
103  sequence< com::sun::star::security::DocumentSignatureInformation > verifyPackageSignatures(
104  [in] ::com::sun::star::embed::XStorage Storage,
105  [in] ::com::sun::star::io::XInputStream xSignInStream );
106 
109  void showPackageSignatures(
110  [in] ::com::sun::star::embed::XStorage xStorage,
111  [in] ::com::sun::star::io::XInputStream xSignInStream );
112 
116  string getPackageSignatureDefaultStreamName();
117 
118 
119  void showCertificate( [in] com::sun::star::security::XCertificate Certificate );
120 
121 
124  void manageTrustedSources();
125  boolean isAuthorTrusted( [in] com::sun::star::security::XCertificate Author );
126  boolean isLocationTrusted( [in] string Location );
127 
128  // These methods should raise a confirmation dialog, so they can not be misused from bad macros.
129  void addAuthorToTrustedSources( [in] com::sun::star::security::XCertificate Author );
130  void addLocationToTrustedSources( [in] string Location );
131 
136  com::sun::star::security::XCertificate chooseCertificate( [out] string Description );
137 
138 } ;
139 
140 } ; } ; } ; } ;
141 
142 #endif
143 
144 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This interface represents main storage functionality.
Definition: XStorage.idl:43
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:40
base interface of all UNO interfaces
Definition: XInterface.idl:47
Interface of a PKI Certificate.
Definition: XCertificate.idl:35