11#ifndef INCLUDED_OOX_CRYPTO_STRONGENCRYPTINDATASPACE_HXX
12#define INCLUDED_OOX_CRYPTO_STRONGENCRYPTINDATASPACE_HXX
19#include <com/sun/star/lang/XServiceInfo.hpp>
20#include <com/sun/star/packages/XPackageEncryption.hpp>
21#include <com/sun/star/io/XInputStream.hpp>
26class XComponentContext;
32 :
public cppu::WeakImplHelper<css::lang::XServiceInfo, css::packages::XPackageEncryption>
34 css::uno::Reference<css::uno::XComponentContext>
mxContext;
37 css::uno::Reference<css::io::XInputStream>
38 getStream(
const css::uno::Sequence<css::beans::NamedValue>& rStreams,
39 std::u16string_view sStreamName);
48 readEncryptionInfo(
const css::uno::Sequence<css::beans::NamedValue>& aStreams)
override;
50 decrypt(
const css::uno::Reference<css::io::XInputStream>& rxInputStream,
51 css::uno::Reference<css::io::XOutputStream>& rxOutputStream)
override;
57 virtual css::uno::Sequence<css::beans::NamedValue>
58 SAL_CALL
encrypt(
const css::uno::Reference<css::io::XInputStream>& rxInputStream)
override;
61 setupEncryption(
const css::uno::Sequence<css::beans::NamedValue>& rMediaEncData)
override;
63 virtual css::uno::Sequence<css::beans::NamedValue>
virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL encrypt(const css::uno::Reference< css::io::XInputStream > &rxInputStream) override
virtual sal_Bool SAL_CALL readEncryptionInfo(const css::uno::Sequence< css::beans::NamedValue > &aStreams) override
virtual sal_Bool SAL_CALL setupEncryption(const css::uno::Sequence< css::beans::NamedValue > &rMediaEncData) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL decrypt(const css::uno::Reference< css::io::XInputStream > &rxInputStream, css::uno::Reference< css::io::XOutputStream > &rxOutputStream) override
std::unique_ptr< CryptoEngine > mCryptoEngine
css::uno::Reference< css::uno::XComponentContext > mxContext
virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL createEncryptionData(const OUString &rPassword) override
virtual sal_Bool SAL_CALL generateEncryptionKey(const OUString &rPassword) override
css::uno::Reference< css::io::XInputStream > getStream(const css::uno::Sequence< css::beans::NamedValue > &rStreams, std::u16string_view sStreamName)
virtual OUString SAL_CALL getImplementationName() override
StrongEncryptionDataSpace(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual sal_Bool SAL_CALL supportsService(const OUString &rServiceName) override
virtual sal_Bool SAL_CALL checkDataIntegrity() override