LibreOffice Module xmlsecurity (master) 1
XMLEncryption.hxx
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
10#pragma once
11
12#include <sal/config.h>
14
15#include <com/sun/star/uno/Reference.hxx>
16#include <com/sun/star/xml/crypto/XXMLEncryption.hpp>
17
18namespace com::sun::star::xml::crypto { class XXMLEncryptionTemplate; }
19namespace com::sun::star::xml::crypto { class XXMLSecurityContext; }
20
21class XMLEncryptionGpg : public cppu::WeakImplHelper< css::xml::crypto::XXMLEncryption >
22{
23public:
24 explicit XMLEncryptionGpg();
25 virtual ~XMLEncryptionGpg() override;
26
27 // XXMLEncryption
28 virtual css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > SAL_CALL encrypt(
29 const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate >& aTemplate,
30 const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& aEnvironment) override;
31
32 virtual css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > SAL_CALL decrypt(
33 const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate >& aTemplate,
34 const css::uno::Reference< css::xml::crypto::XXMLSecurityContext >& aContext) override;
35};
36
37/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > SAL_CALL decrypt(const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > &aTemplate, const css::uno::Reference< css::xml::crypto::XXMLSecurityContext > &aContext) override
virtual css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > SAL_CALL encrypt(const css::uno::Reference< css::xml::crypto::XXMLEncryptionTemplate > &aTemplate, const css::uno::Reference< css::xml::crypto::XSecurityEnvironment > &aEnvironment) override
virtual ~XMLEncryptionGpg() override