LibreOffice Module xmlsecurity (master) 1
|
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 SignatureInformation & | m_rInformation |
OUString | m_aSignatureTimeValue |
Definition at line 37 of file ooxmlsecexporter.cxx.
|
inline |
Definition at line 47 of file ooxmlsecexporter.cxx.
|
inline |
Definition at line 63 of file ooxmlsecexporter.cxx.
References m_xDocumentHandler.
|
static |
Should we intentionally not sign this stream?
Definition at line 90 of file ooxmlsecexporter.cxx.
References u.
Referenced by writeManifest().
|
static |
Should we intentionally not sign this relation type?
Definition at line 103 of file ooxmlsecexporter.cxx.
References u.
Referenced by writeRelationshipTransform().
void OOXMLSecExporter::Impl::writeCanonicalizationMethod | ( | ) |
Definition at line 125 of file ooxmlsecexporter.cxx.
References ALGO_C14N.
void OOXMLSecExporter::Impl::writeCanonicalizationTransform | ( | ) |
Definition at line 134 of file ooxmlsecexporter.cxx.
References ALGO_C14N.
void OOXMLSecExporter::Impl::writeKeyInfo | ( | ) |
Definition at line 205 of file ooxmlsecexporter.cxx.
void OOXMLSecExporter::Impl::writeManifest | ( | ) |
Definition at line 240 of file ooxmlsecexporter.cxx.
References isOOXMLDenylist().
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().
void OOXMLSecExporter::Impl::writeOfficeObject | ( | ) |
Definition at line 385 of file ooxmlsecexporter.cxx.
void OOXMLSecExporter::Impl::writePackageObject | ( | ) |
Definition at line 227 of file ooxmlsecexporter.cxx.
void OOXMLSecExporter::Impl::writePackageObjectSignatureProperties | ( | ) |
Writes <SignatureProperties> inside idPackageObject.
Definition at line 302 of file ooxmlsecexporter.cxx.
References NS_MDSSI, and utl::toISO8601().
void OOXMLSecExporter::Impl::writePackageSignature | ( | ) |
Definition at line 483 of file ooxmlsecexporter.cxx.
References NS_XD, and DocumentSignatureHelper::writeSignedProperties().
void OOXMLSecExporter::Impl::writeRelationshipTransform | ( | const OUString & | rURI | ) |
Definition at line 258 of file ooxmlsecexporter.cxx.
References ALGO_RELATIONSHIP, isOOXMLRelationDenylist(), m_xComponentContext, NS_MDSSI, and comphelper::OFOPXMLHelper::ReadRelationsInfoSequence().
void OOXMLSecExporter::Impl::writeSignature | ( | ) |
Definition at line 532 of file ooxmlsecexporter.cxx.
References NS_XMLDSIG.
void OOXMLSecExporter::Impl::writeSignatureInfo | ( | ) |
Writes <SignatureInfoV1>.
Definition at line 409 of file ooxmlsecexporter.cxx.
void OOXMLSecExporter::Impl::writeSignatureLineImages | ( | ) |
Definition at line 502 of file ooxmlsecexporter.cxx.
References XOutBitmap::GraphicToBase64(), and SAL_WARN.
void OOXMLSecExporter::Impl::writeSignatureMethod | ( | ) |
Definition at line 143 of file ooxmlsecexporter.cxx.
References ALGO_ECDSASHA256, ALGO_RSASHA256, and svl::crypto::ECDSA.
void OOXMLSecExporter::Impl::writeSignatureValue | ( | ) |
Definition at line 197 of file ooxmlsecexporter.cxx.
void OOXMLSecExporter::Impl::writeSignedInfo | ( | ) |
Definition at line 113 of file ooxmlsecexporter.cxx.
void OOXMLSecExporter::Impl::writeSignedInfoReferences | ( | ) |
Definition at line 157 of file ooxmlsecexporter.cxx.
References DocumentSignatureHelper::writeDigestMethod().
|
private |
Definition at line 44 of file ooxmlsecexporter.cxx.
|
private |
Definition at line 43 of file ooxmlsecexporter.cxx.
|
private |
Definition at line 40 of file ooxmlsecexporter.cxx.
|
private |
Definition at line 42 of file ooxmlsecexporter.cxx.
Referenced by getDocumentHandler().
|
private |
Definition at line 41 of file ooxmlsecexporter.cxx.