LibreOffice
LibreOffice 7.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#ifndef __com_sun_star_security_XDocumentDigitalSignatures_idl_
21#define __com_sun_star_security_XDocumentDigitalSignatures_idl_
22
30
31module com { module sun { module star { module security {
32
42{
48 [in] ::com::sun::star::io::XStream xSignStream);
49
61 [in] ::com::sun::star::io::XStream xSignStream,
62 [in] string signatureLineId,
64 [in] ::com::sun::star::graphic::XGraphic xValidGraphic,
65 [in] ::com::sun::star::graphic::XGraphic xInvalidGraphic,
66 [in] string comment);
67
72 sequence< com::sun::star::security::DocumentSignatureInformation > verifyDocumentContentSignatures(
74 [in] ::com::sun::star::io::XInputStream xSignInStream );
75
80 [in] ::com::sun::star::io::XInputStream xSignInStream );
81
86
92 [in] ::com::sun::star::io::XStream xSignStream);
93
98 sequence< com::sun::star::security::DocumentSignatureInformation > verifyScriptingContentSignatures(
100 [in] ::com::sun::star::io::XInputStream xSignInStream );
101
106 [in] ::com::sun::star::io::XInputStream xSignInStream );
107
112
116 [in] ::com::sun::star::io::XStream xSignStream);
117
122 sequence< com::sun::star::security::DocumentSignatureInformation > verifyPackageSignatures(
124 [in] ::com::sun::star::io::XInputStream xSignInStream );
125
130 [in] ::com::sun::star::io::XInputStream xSignInStream );
131
136
137
139
140
145 boolean isLocationTrusted( [in] string Location );
146
147 // These methods should raise a confirmation dialog, so they can not be misused from bad macros.
149 void addLocationToTrustedSources( [in] string Location );
150
157
164
171
178 [in] CertificateKind certificateKind,
179 [out] string Description);
180
186 sequence< com::sun::star::security::XCertificate > chooseEncryptionCertificate( );
187
193 com::sun::star::security::XCertificate chooseCertificateWithProps( [out] sequence<::com::sun::star::beans::PropertyValue> Properties);
194
201 [in] ::com::sun::star::io::XStream xStream);
202
208
217 [in] ::com::sun::star::io::XStream xStream);
218
225 [in] ::com::sun::star::io::XStream xStream);
226};
227
228} ; } ; } ; } ;
229
230#endif
231
232/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
specifies the basic operations for a window component.
Definition: XWindow.idl:51
This interface represents main storage functionality.
Definition: XStorage.idl:44
This interface acts as a container for the loaded graphic.
Definition: XGraphic.idl:44
This is the basic interface to read data from a stream.
Definition: XInputStream.idl:38
offers read and write access to the same stream.
Definition: XStream.idl:33
Interface of a PKI Certificate.
Definition: XCertificate.idl:36
Interface for signing and verifying digital signatures in office documents.
Definition: XDocumentDigitalSignatures.idl:42
void setParentWindow([in] ::com::sun::star::awt::XWindow xParentWindow)
Set parent window to use when showing dialogs.
string getScriptingContentSignatureDefaultStreamName()
allows to get the default stream name for storing of the signature of the scripting content.
com::sun::star::security::XCertificate chooseSigningCertificate([out] string Description)
This is an alias for 'chooseCertificate', shows the CertificateChooser dialog with private certificat...
boolean signScriptingContentWithCertificate([in] ::com::sun::star::security::XCertificate xCertificate, [in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xStream)
signs the content of the Scripting including macros and basic dialogs with the provided certificate.
void showScriptingContentSignatures([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XInputStream xSignInStream)
shows the digital signatures of the scripting content
com::sun::star::security::XCertificate chooseCertificateWithProps([out] sequence<::com::sun::star::beans::PropertyValue > Properties)
This method shows the CertificateChooser dialog, used by document and PDF signing Shows only private ...
boolean signDocumentContent([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xSignStream)
signs the content of the document including text and pictures.
com::sun::star::security::XCertificate chooseCertificate([out] string Description)
This method shows the CertificateChooser dialog, used by document and PDF signing Shows only private ...
string getPackageSignatureDefaultStreamName()
allows to get the default stream name for storing of the signature of the package.
boolean signPackageWithCertificate([in] ::com::sun::star::security::XCertificate xCertificate, [in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xStream)
signs the full Package, which means everything in the storage except the content of META-INF with the...
boolean isAuthorTrusted([in] com::sun::star::security::XCertificate Author)
void addAuthorToTrustedSources([in] com::sun::star::security::XCertificate Author)
boolean signScriptingContent([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xSignStream)
signs the content of the Scripting including macros and basic dialogs
boolean signSignatureLine([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xSignStream, [in] string signatureLineId, [in] ::com::sun::star::security::XCertificate xCertificate, [in] ::com::sun::star::graphic::XGraphic xValidGraphic, [in] ::com::sun::star::graphic::XGraphic xInvalidGraphic, [in] string comment)
Signs the content of the document including text and pictures using the given XCertificate.
sequence< com::sun::star::security::DocumentSignatureInformation > verifyScriptingContentSignatures([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XInputStream xSignInStream)
checks for digital signatures and their status.
void showDocumentContentSignatures([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XInputStream xSignInStream)
shows the digital signatures of the document content
void showCertificate([in] com::sun::star::security::XCertificate Certificate)
void manageTrustedSources()
manages trusted sources (Authors and paths )
com::sun::star::security::XCertificate selectSigningCertificate([out] string Description)
This shows the certificate selection dialog and allows to only select the certificate without actuall...
sequence< com::sun::star::security::DocumentSignatureInformation > verifyPackageSignatures([in] ::com::sun::star::embed::XStorage Storage, [in] ::com::sun::star::io::XInputStream xSignInStream)
checks for digital signatures and their status.
sequence< com::sun::star::security::DocumentSignatureInformation > verifyDocumentContentSignatures([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XInputStream xSignInStream)
checks for digital signatures and their status.
com::sun::star::security::XCertificate selectSigningCertificateWithType([in] CertificateKind certificateKind, [out] string Description)
This shows the certificate selection dialog and allows to only select the certificate without actuall...
void addLocationToTrustedSources([in] string Location)
boolean signDocumentWithCertificate([in] ::com::sun::star::security::XCertificate xCertificate, [in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XStream xStream)
Signs the content of the document with the provided certificate.
boolean signPackage([in] ::com::sun::star::embed::XStorage Storage, [in] ::com::sun::star::io::XStream xSignStream)
signs the full Package, which means everything in the storage except the content of META-INF
void showPackageSignatures([in] ::com::sun::star::embed::XStorage xStorage, [in] ::com::sun::star::io::XInputStream xSignInStream)
shows the digital signatures of the package
sequence< com::sun::star::security::XCertificate > chooseEncryptionCertificate()
This method shows the CertificateChooser dialog with all certificates, private and other people's.
string getDocumentContentSignatureDefaultStreamName()
allows to get the default stream name for storing of the signature of the document content.
base interface of all UNO interfaces
Definition: XInterface.idl:48
CertificateKind
Enum definition of a certificate kind ( X509, OpenPGP )
Definition: CertificateKind.idl:21
Definition: Ambiguous.idl:22