LibreOffice
LibreOffice 25.2 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 module com { module sun { module star { module security {
21 
31 {
42  boolean signSignatureLine( [in] ::com::sun::star::embed::XStorage xStorage,
43  [in] ::com::sun::star::io::XStream xSignStream,
44  [in] string signatureLineId,
45  [in] ::com::sun::star::security::XCertificate xCertificate,
46  [in] ::com::sun::star::graphic::XGraphic xValidGraphic,
47  [in] ::com::sun::star::graphic::XGraphic xInvalidGraphic,
48  [in] string comment);
49 
54  sequence< com::sun::star::security::DocumentSignatureInformation > verifyDocumentContentSignatures(
55  [in] ::com::sun::star::embed::XStorage xStorage,
56  [in] ::com::sun::star::io::XInputStream xSignInStream );
57 
60  void showDocumentContentSignatures(
61  [in] ::com::sun::star::embed::XStorage xStorage,
62  [in] ::com::sun::star::io::XInputStream xSignInStream );
63 
67  string getDocumentContentSignatureDefaultStreamName();
68 
73  sequence< com::sun::star::security::DocumentSignatureInformation > verifyScriptingContentSignatures(
74  [in] ::com::sun::star::embed::XStorage xStorage,
75  [in] ::com::sun::star::io::XInputStream xSignInStream );
76 
79  void showScriptingContentSignatures(
80  [in] ::com::sun::star::embed::XStorage xStorage,
81  [in] ::com::sun::star::io::XInputStream xSignInStream );
82 
86  string getScriptingContentSignatureDefaultStreamName();
87 
88  void showCertificate( [in] com::sun::star::security::XCertificate Certificate );
89 
90 
93  void manageTrustedSources();
94  boolean isAuthorTrusted( [in] com::sun::star::security::XCertificate Author );
95  boolean isLocationTrusted( [in] string Location );
96 
97  // These methods should raise a confirmation dialog, so they can not be misused from bad macros.
98  void addAuthorToTrustedSources( [in] com::sun::star::security::XCertificate Author );
99  void addLocationToTrustedSources( [in] string Location );
100 
106  com::sun::star::security::XCertificate chooseCertificate( [out] string Description );
107 
113  com::sun::star::security::XCertificate chooseSigningCertificate( [out] string Description );
114 
120  com::sun::star::security::XCertificate selectSigningCertificate( [out] string Description );
121 
131  com::sun::star::security::XCertificate selectSigningCertificateWithType(
132  [in] CertificateKind certificateKind,
133  [out] string Description);
134 
144  sequence< com::sun::star::security::XCertificate > chooseEncryptionCertificate(
145  [in] CertificateKind certificateKind);
146 
152  com::sun::star::security::XCertificate chooseCertificateWithProps( [out] sequence<::com::sun::star::beans::PropertyValue> Properties);
153 
158  boolean signDocumentWithCertificate([in] ::com::sun::star::security::XCertificate xCertificate,
159  [in] ::com::sun::star::embed::XStorage xStorage,
160  [in] ::com::sun::star::io::XStream xStream);
161 
166  void setParentWindow([in] ::com::sun::star::awt::XWindow xParentWindow);
167 
174  boolean signScriptingContentWithCertificate([in] ::com::sun::star::security::XCertificate xCertificate,
175  [in] ::com::sun::star::embed::XStorage xStorage,
176  [in] ::com::sun::star::io::XStream xStream);
177 
182  boolean trustUntrustedCertificate([in] ::com::sun::star::security::XCertificate xCertificate);
183 };
184 
185 } ; } ; } ; } ;
186 
187 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This interface represents main storage functionality.
Definition: XStorage.idl:26
Definition: Ambiguous.idl:20
specifies the basic operations for a window component.
Definition: XWindow.idl:32
offers read and write access to the same stream.
Definition: XStream.idl:26
This interface acts as a container for the loaded graphic.
Definition: XGraphic.idl:37
CertificateKind
Enum definition of a certificate kind ( X509, OpenPGP )
Definition: CertificateKind.idl:17
This is the basic interface to read data from a stream.
Definition: XInputStream.idl:29
Interface for signing and verifying digital signatures in office documents.
Definition: XDocumentDigitalSignatures.idl:30
base interface of all UNO interfaces
Definition: XInterface.idl:45
Interface of a PKI Certificate.
Definition: XCertificate.idl:27