1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
>
25 explicit XMLEncryptionGpg();
26 virtual ~XMLEncryptionGpg() override
;
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: */