LibreOffice LibreOffice 5.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 #ifndef __com_sun_star_security_XDocumentDigitalSignatures_idl_
21 #define __com_sun_star_security_XDocumentDigitalSignatures_idl_
22
23 #include <com/sun/star/uno/XInterface.idl>
24 #include <com/sun/star/io/XInputStream.idl>
25 #include <com/sun/star/io/XStream.idl>
26 #include <com/sun/star/embed/XStorage.idl>
27 #include <com/sun/star/security/DocumentSignatureInformation.idl>
28 #include <com/sun/star/security/XCertificate.idl>
29
30 module com { module sun { module star { module security {
31
40 interface XDocumentDigitalSignatures : com::sun::star::uno::XInterface
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
125 void manageTrustedSources();
126 boolean isAuthorTrusted( [in] com::sun::star::security::XCertificate Author );
127 boolean isLocationTrusted( [in] string Location );
128
129 // These method should raise confirmation dialog, so it can not used from bad macros...
130 void addAuthorToTrustedSources( [in] com::sun::star::security::XCertificate Author );
131 void addLocationToTrustedSources( [in] string Location );
132
137 com::sun::star::security::XCertificate chooseCertificate( [out] string Description );
138
139 } ;
140
141 } ; } ; } ; } ;
142
143 #endif
144
145 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::embed::XStorage
This interface represents main storage functionality.
Definition: XStorage.idl:43
XStorage.idl
com
Definition: Ambiguous.idl:22
com::sun::star::io::XStream
offers read and write access to the same stream.
Definition: XStream.idl:32
XInterface.idl
com::sun::star::io::XInputStream
This is the basic interface to read data from a stream.
Definition: XInputStream.idl:37
com::sun::star::security::XDocumentDigitalSignatures
interface for signing and verifying digital signatures in office documents
Definition: XDocumentDigitalSignatures.idl:40
XCertificate.idl
XInputStream.idl
XStream.idl
com::sun::star::uno::XInterface
base interface of all UNO interfaces
Definition: XInterface.idl:47
DocumentSignatureInformation.idl
com::sun::star::security::XCertificate
Interface of a PKI Certificate.
Definition: XCertificate.idl:34