LibreOffice Module oox (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
oox::crypto::StrongEncryptionDataSpace Class Referencefinal

#include <StrongEncryptionDataSpace.hxx>

Inheritance diagram for oox::crypto::StrongEncryptionDataSpace:
[legend]
Collaboration diagram for oox::crypto::StrongEncryptionDataSpace:
[legend]

Public Member Functions

 StrongEncryptionDataSpace (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual sal_Bool SAL_CALL generateEncryptionKey (const OUString &rPassword) override
 
virtual sal_Bool SAL_CALL readEncryptionInfo (const css::uno::Sequence< css::beans::NamedValue > &aStreams) override
 
virtual sal_Bool SAL_CALL decrypt (const css::uno::Reference< css::io::XInputStream > &rxInputStream, css::uno::Reference< css::io::XOutputStream > &rxOutputStream) override
 
virtual sal_Bool SAL_CALL checkDataIntegrity () override
 
virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL encrypt (const css::uno::Reference< css::io::XInputStream > &rxInputStream) override
 
virtual sal_Bool SAL_CALL setupEncryption (const css::uno::Sequence< css::beans::NamedValue > &rMediaEncData) override
 
virtual css::uno::Sequence< css::beans::NamedValue > SAL_CALL createEncryptionData (const OUString &rPassword) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &rServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

css::uno::Reference< css::io::XInputStream > getStream (const css::uno::Sequence< css::beans::NamedValue > &rStreams, std::u16string_view sStreamName)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > mxContext
 
std::unique_ptr< CryptoEnginemCryptoEngine
 

Detailed Description

Definition at line 27 of file StrongEncryptionDataSpace.hxx.

Constructor & Destructor Documentation

oox::crypto::StrongEncryptionDataSpace::StrongEncryptionDataSpace ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

Definition at line 30 of file StrongEncryptionDataSpace.cxx.

References mxContext.

Member Function Documentation

sal_Bool oox::crypto::StrongEncryptionDataSpace::checkDataIntegrity ( )
overridevirtual

Definition at line 44 of file StrongEncryptionDataSpace.cxx.

References mCryptoEngine.

Sequence< NamedValue > oox::crypto::StrongEncryptionDataSpace::createEncryptionData ( const OUString &  rPassword)
overridevirtual
sal_Bool oox::crypto::StrongEncryptionDataSpace::decrypt ( const css::uno::Reference< css::io::XInputStream > &  rxInputStream,
css::uno::Reference< css::io::XOutputStream > &  rxOutputStream 
)
overridevirtual

Definition at line 52 of file StrongEncryptionDataSpace.cxx.

References mCryptoEngine.

Sequence< NamedValue > oox::crypto::StrongEncryptionDataSpace::encrypt ( const css::uno::Reference< css::io::XInputStream > &  rxInputStream)
overridevirtual
sal_Bool oox::crypto::StrongEncryptionDataSpace::generateEncryptionKey ( const OUString &  rPassword)
overridevirtual

Definition at line 36 of file StrongEncryptionDataSpace.cxx.

References mCryptoEngine.

OUString SAL_CALL oox::crypto::StrongEncryptionDataSpace::getImplementationName ( )
overridevirtual

Definition at line 178 of file StrongEncryptionDataSpace.cxx.

Reference< XInputStream > oox::crypto::StrongEncryptionDataSpace::getStream ( const css::uno::Sequence< css::beans::NamedValue > &  rStreams,
std::u16string_view  sStreamName 
)
private

Definition at line 67 of file StrongEncryptionDataSpace.cxx.

References aSeq, and mxContext.

Referenced by readEncryptionInfo().

css::uno::Sequence< OUString > SAL_CALL oox::crypto::StrongEncryptionDataSpace::getSupportedServiceNames ( )
overridevirtual

Definition at line 188 of file StrongEncryptionDataSpace.cxx.

sal_Bool oox::crypto::StrongEncryptionDataSpace::readEncryptionInfo ( const css::uno::Sequence< css::beans::NamedValue > &  aStreams)
overridevirtual
sal_Bool oox::crypto::StrongEncryptionDataSpace::setupEncryption ( const css::uno::Sequence< css::beans::NamedValue > &  rMediaEncData)
overridevirtual

Definition at line 113 of file StrongEncryptionDataSpace.cxx.

References mCryptoEngine.

sal_Bool SAL_CALL oox::crypto::StrongEncryptionDataSpace::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 183 of file StrongEncryptionDataSpace.cxx.

References cppu::supportsService().

Member Data Documentation

std::unique_ptr<CryptoEngine> oox::crypto::StrongEncryptionDataSpace::mCryptoEngine
private
css::uno::Reference<css::uno::XComponentContext> oox::crypto::StrongEncryptionDataSpace::mxContext
private

Definition at line 30 of file StrongEncryptionDataSpace.hxx.

Referenced by encrypt(), and getStream().


The documentation for this class was generated from the following files: