Bump version to 6.0-36
[LibreOffice.git] / xmlsecurity / source / gpg / XMLEncryption.hxx
blobd9c6b508c666d1787abc6c830b8a35ec8ceffd54
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_XMLSECURITY_SOURCE_GPG_XMLENCRYPTION_HXX
11 #define INCLUDED_XMLSECURITY_SOURCE_GPG_XMLENCRYPTION_HXX
13 #include <sal/config.h>
14 #include <rtl/ustring.hxx>
15 #include <cppuhelper/implbase.hxx>
16 #include <com/sun/star/uno/Exception.hpp>
18 #include <com/sun/star/uno/Reference.hxx>
19 #include <com/sun/star/xml/crypto/XXMLEncryption.hpp>
20 #include <com/sun/star/xml/crypto/XXMLEncryptionTemplate.hpp>
21 #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
22 #include <com/sun/star/xml/crypto/XMLEncryptionException.hpp>
24 class XMLEncryptionGpg : public cppu::WeakImplHelper< css::xml::crypto::XXMLEncryption >
26 public:
27 explicit XMLEncryptionGpg();
28 virtual ~XMLEncryptionGpg() override;
30 // XXMLEncryption
31 virtual css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > SAL_CALL encrypt(
32 const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate >& aTemplate,
33 const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& aEnvironment) override;
35 virtual css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > SAL_CALL decrypt(
36 const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate >& aTemplate,
37 const css::uno::Reference< css::xml::crypto::XXMLSecurityContext >& aContext) override;
40 #endif // INCLUDED_XMLSECURITY_SOURCE_GPG_XMLENCRYPTION_HXX
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */