LibreOffice Module xmlsecurity (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
OOXMLSecExporter::Impl Struct Reference
Collaboration diagram for OOXMLSecExporter::Impl:
[legend]

Public Member Functions

 Impl (const uno::Reference< uno::XComponentContext > &xComponentContext, const uno::Reference< embed::XStorage > &xRootStorage, const uno::Reference< xml::sax::XDocumentHandler > &xDocumentHandler, const SignatureInformation &rInformation)
 
const uno::Reference< xml::sax::XDocumentHandler > & getDocumentHandler () const
 
void writeSignature ()
 
void writeSignedInfo ()
 
void writeCanonicalizationMethod ()
 
void writeCanonicalizationTransform ()
 
void writeSignatureMethod ()
 
void writeSignedInfoReferences ()
 
void writeSignatureValue ()
 
void writeKeyInfo ()
 
void writePackageObject ()
 
void writeManifest ()
 
void writeRelationshipTransform (const OUString &rURI)
 
void writePackageObjectSignatureProperties ()
 Writes <SignatureProperties> inside idPackageObject. More...
 
void writeManifestReference (const SignatureReferenceInformation &rReference)
 Writes a single <Reference> inside <Manifest>. More...
 
void writeOfficeObject ()
 
void writeSignatureInfo ()
 Writes <SignatureInfoV1>. More...
 
void writePackageSignature ()
 
void writeSignatureLineImages ()
 

Static Public Member Functions

static bool isOOXMLDenylist (std::u16string_view rStreamName)
 Should we intentionally not sign this stream? More...
 
static bool isOOXMLRelationDenylist (const OUString &rRelationName)
 Should we intentionally not sign this relation type? More...
 

Private Attributes

const uno::Reference< uno::XComponentContext > & m_xComponentContext
 
const uno::Reference< embed::XStorage > & m_xRootStorage
 
const uno::Reference< xml::sax::XDocumentHandler > & m_xDocumentHandler
 
const SignatureInformationm_rInformation
 
OUString m_aSignatureTimeValue
 

Detailed Description

Definition at line 37 of file ooxmlsecexporter.cxx.

Constructor & Destructor Documentation

◆ Impl()

OOXMLSecExporter::Impl::Impl ( const uno::Reference< uno::XComponentContext > &  xComponentContext,
const uno::Reference< embed::XStorage > &  xRootStorage,
const uno::Reference< xml::sax::XDocumentHandler > &  xDocumentHandler,
const SignatureInformation rInformation 
)
inline

Definition at line 47 of file ooxmlsecexporter.cxx.

Member Function Documentation

◆ getDocumentHandler()

const uno::Reference< xml::sax::XDocumentHandler > & OOXMLSecExporter::Impl::getDocumentHandler ( ) const
inline

Definition at line 63 of file ooxmlsecexporter.cxx.

References m_xDocumentHandler.

◆ isOOXMLDenylist()

bool OOXMLSecExporter::Impl::isOOXMLDenylist ( std::u16string_view  rStreamName)
static

Should we intentionally not sign this stream?

Definition at line 90 of file ooxmlsecexporter.cxx.

References u.

Referenced by writeManifest().

◆ isOOXMLRelationDenylist()

bool OOXMLSecExporter::Impl::isOOXMLRelationDenylist ( const OUString &  rRelationName)
static

Should we intentionally not sign this relation type?

Definition at line 103 of file ooxmlsecexporter.cxx.

References u.

Referenced by writeRelationshipTransform().

◆ writeCanonicalizationMethod()

void OOXMLSecExporter::Impl::writeCanonicalizationMethod ( )

Definition at line 125 of file ooxmlsecexporter.cxx.

References ALGO_C14N.

◆ writeCanonicalizationTransform()

void OOXMLSecExporter::Impl::writeCanonicalizationTransform ( )

Definition at line 134 of file ooxmlsecexporter.cxx.

References ALGO_C14N.

◆ writeKeyInfo()

void OOXMLSecExporter::Impl::writeKeyInfo ( )

Definition at line 205 of file ooxmlsecexporter.cxx.

◆ writeManifest()

void OOXMLSecExporter::Impl::writeManifest ( )

Definition at line 240 of file ooxmlsecexporter.cxx.

References isOOXMLDenylist().

◆ writeManifestReference()

void OOXMLSecExporter::Impl::writeManifestReference ( const SignatureReferenceInformation rReference)

Writes a single <Reference> inside <Manifest>.

Definition at line 348 of file ooxmlsecexporter.cxx.

References SignatureReferenceInformation::ouDigestValue, SignatureReferenceInformation::ouURI, and DocumentSignatureHelper::writeDigestMethod().

◆ writeOfficeObject()

void OOXMLSecExporter::Impl::writeOfficeObject ( )

Definition at line 385 of file ooxmlsecexporter.cxx.

◆ writePackageObject()

void OOXMLSecExporter::Impl::writePackageObject ( )

Definition at line 227 of file ooxmlsecexporter.cxx.

◆ writePackageObjectSignatureProperties()

void OOXMLSecExporter::Impl::writePackageObjectSignatureProperties ( )

Writes <SignatureProperties> inside idPackageObject.

Definition at line 302 of file ooxmlsecexporter.cxx.

References NS_MDSSI, and utl::toISO8601().

◆ writePackageSignature()

void OOXMLSecExporter::Impl::writePackageSignature ( )

◆ writeRelationshipTransform()

void OOXMLSecExporter::Impl::writeRelationshipTransform ( const OUString &  rURI)

◆ writeSignature()

void OOXMLSecExporter::Impl::writeSignature ( )

Definition at line 532 of file ooxmlsecexporter.cxx.

References NS_XMLDSIG.

◆ writeSignatureInfo()

void OOXMLSecExporter::Impl::writeSignatureInfo ( )

Writes <SignatureInfoV1>.

Definition at line 409 of file ooxmlsecexporter.cxx.

◆ writeSignatureLineImages()

void OOXMLSecExporter::Impl::writeSignatureLineImages ( )

Definition at line 502 of file ooxmlsecexporter.cxx.

References XOutBitmap::GraphicToBase64(), and SAL_WARN.

◆ writeSignatureMethod()

void OOXMLSecExporter::Impl::writeSignatureMethod ( )

Definition at line 143 of file ooxmlsecexporter.cxx.

References ALGO_ECDSASHA256, ALGO_RSASHA256, and svl::crypto::ECDSA.

◆ writeSignatureValue()

void OOXMLSecExporter::Impl::writeSignatureValue ( )

Definition at line 197 of file ooxmlsecexporter.cxx.

◆ writeSignedInfo()

void OOXMLSecExporter::Impl::writeSignedInfo ( )

Definition at line 113 of file ooxmlsecexporter.cxx.

◆ writeSignedInfoReferences()

void OOXMLSecExporter::Impl::writeSignedInfoReferences ( )

Member Data Documentation

◆ m_aSignatureTimeValue

OUString OOXMLSecExporter::Impl::m_aSignatureTimeValue
private

Definition at line 44 of file ooxmlsecexporter.cxx.

◆ m_rInformation

const SignatureInformation& OOXMLSecExporter::Impl::m_rInformation
private

Definition at line 43 of file ooxmlsecexporter.cxx.

◆ m_xComponentContext

const uno::Reference<uno::XComponentContext>& OOXMLSecExporter::Impl::m_xComponentContext
private

Definition at line 40 of file ooxmlsecexporter.cxx.

◆ m_xDocumentHandler

const uno::Reference<xml::sax::XDocumentHandler>& OOXMLSecExporter::Impl::m_xDocumentHandler
private

Definition at line 42 of file ooxmlsecexporter.cxx.

Referenced by getDocumentHandler().

◆ m_xRootStorage

const uno::Reference<embed::XStorage>& OOXMLSecExporter::Impl::m_xRootStorage
private

Definition at line 41 of file ooxmlsecexporter.cxx.


The documentation for this struct was generated from the following file: