Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / xmlsecurity / source / gpg / XMLEncryption.hxx
blob168128b40a9c4e288d9d412702bf2322e80d07c5
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 <cppuhelper/implbase.hxx>
16 #include <com/sun/star/uno/Reference.hxx>
17 #include <com/sun/star/xml/crypto/XXMLEncryption.hpp>
19 namespace com::sun::star::xml::crypto { class XXMLEncryptionTemplate; }
20 namespace com::sun::star::xml::crypto { class XXMLSecurityContext; }
22 class XMLEncryptionGpg : public cppu::WeakImplHelper< css::xml::crypto::XXMLEncryption >
24 public:
25 explicit XMLEncryptionGpg();
26 virtual ~XMLEncryptionGpg() override;
28 // XXMLEncryption
29 virtual css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > SAL_CALL encrypt(
30 const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate >& aTemplate,
31 const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& aEnvironment) override;
33 virtual css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > SAL_CALL decrypt(
34 const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate >& aTemplate,
35 const css::uno::Reference< css::xml::crypto::XXMLSecurityContext >& aContext) override;
38 #endif // INCLUDED_XMLSECURITY_SOURCE_GPG_XMLENCRYPTION_HXX
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */