LibreOffice Module xmlsecurity (master) 1
Public Member Functions | Protected Attributes | List of all members
OOXMLSecParser::ReferencedContextImpl Class Reference

note: anything in ds:Object should be trusted only if there is a ds:Reference to it so it is signed (exception: the xades:EncapsulatedX509Certificate). More...

Inheritance diagram for OOXMLSecParser::ReferencedContextImpl:
[legend]
Collaboration diagram for OOXMLSecParser::ReferencedContextImpl:
[legend]

Public Member Functions

 ReferencedContextImpl (OOXMLSecParser &rParser, std::optional< SvXMLNamespaceMap > &&pOldNamespaceMap, bool const isReferenced)
 
OUString CheckIdAttrReferenced (css::uno::Reference< css::xml::sax::XAttributeList > const &xAttrs)
 
- Public Member Functions inherited from OOXMLSecParser::Context
 Context (OOXMLSecParser &rParser, std::optional< SvXMLNamespaceMap > &&pOldNamespaceMap)
 
virtual ~Context ()=default
 
virtual void StartElement (css::uno::Reference< css::xml::sax::XAttributeList > const &)
 
virtual void EndElement ()
 
virtual std::unique_ptr< ContextCreateChildContext (std::optional< SvXMLNamespaceMap > &&pOldNamespaceMap, sal_uInt16 const, OUString const &)
 
virtual void Characters (OUString const &)
 

Protected Attributes

bool m_isReferenced
 
- Protected Attributes inherited from OOXMLSecParser::Context
OOXMLSecParserm_rParser
 

Detailed Description

note: anything in ds:Object should be trusted only if there is a ds:Reference to it so it is signed (exception: the xades:EncapsulatedX509Certificate).

ds:SignedInfo precedes all ds:Object.

There may be multiple ds:Signature for purpose of counter-signatures but the way XAdES describes these, only the ds:SignatureValue element would be referenced, so requiring a ds:Reference for anything in ds:Object shouldn't cause issues.

Definition at line 101 of file ooxmlsecparser.cxx.

Constructor & Destructor Documentation

◆ ReferencedContextImpl()

OOXMLSecParser::ReferencedContextImpl::ReferencedContextImpl ( OOXMLSecParser rParser,
std::optional< SvXMLNamespaceMap > &&  pOldNamespaceMap,
bool const  isReferenced 
)
inline

Definition at line 108 of file ooxmlsecparser.cxx.

Member Function Documentation

◆ CheckIdAttrReferenced()

OUString OOXMLSecParser::ReferencedContextImpl::CheckIdAttrReferenced ( css::uno::Reference< css::xml::sax::XAttributeList > const &  xAttrs)
inline

Member Data Documentation

◆ m_isReferenced

bool OOXMLSecParser::ReferencedContextImpl::m_isReferenced
protected

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