summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:46:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:08 +0100
commit8ccd11e1ae7248071184bfbeb2bced9ce096d52b (patch)
tree1cefa9c2a7d6f80190d0c5bf454a74b0b1572fac /xmlsecurity/inc
parent843e2a9dd6127bf7b5b9adde2ef01451449f0ba3 (diff)
New loplugin:dynexcspec: Add @throws documentation, xmlsecurity
Change-Id: I2447c028add359952e4bd36dbdc1d5431fe48104
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r--xmlsecurity/inc/certificate.hxx2
-rw-r--r--xmlsecurity/inc/framework/saxeventkeeperimpl.hxx3
-rw-r--r--xmlsecurity/inc/framework/securityengine.hxx4
-rw-r--r--xmlsecurity/inc/framework/signaturecreatorimpl.hxx3
-rw-r--r--xmlsecurity/inc/framework/signatureengine.hxx2
-rw-r--r--xmlsecurity/inc/framework/signatureverifierimpl.hxx3
-rw-r--r--xmlsecurity/inc/xmlsec/saxhelper.hxx14
-rw-r--r--xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx6
8 files changed, 37 insertions, 0 deletions
diff --git a/xmlsecurity/inc/certificate.hxx b/xmlsecurity/inc/certificate.hxx
index 2c0e0498bcf9..f09ffb7a978f 100644
--- a/xmlsecurity/inc/certificate.hxx
+++ b/xmlsecurity/inc/certificate.hxx
@@ -21,6 +21,8 @@ class SAL_NO_VTABLE SAL_DLLPUBLIC_RTTI Certificate
public:
/// Returns the SHA-256 thumbprint.
+ ///
+ /// @throws css::uno::RuntimeException
virtual css::uno::Sequence<sal_Int8> getSHA256Thumbprint() throw (css::uno::RuntimeException, std::exception) = 0;
protected:
diff --git a/xmlsecurity/inc/framework/saxeventkeeperimpl.hxx b/xmlsecurity/inc/framework/saxeventkeeperimpl.hxx
index 73615a37dcf5..012646c60c61 100644
--- a/xmlsecurity/inc/framework/saxeventkeeperimpl.hxx
+++ b/xmlsecurity/inc/framework/saxeventkeeperimpl.hxx
@@ -306,12 +306,15 @@ public:
throw (css::uno::RuntimeException, std::exception) override;
};
+/// @throws css::uno::RuntimeException
OUString SAXEventKeeperImpl_getImplementationName()
throw ( css::uno::RuntimeException );
+/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL SAXEventKeeperImpl_getSupportedServiceNames( )
throw ( css::uno::RuntimeException );
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface >
SAL_CALL SAXEventKeeperImpl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr)
throw ( css::uno::Exception );
diff --git a/xmlsecurity/inc/framework/securityengine.hxx b/xmlsecurity/inc/framework/securityengine.hxx
index 964f5aeac565..1315aae84b92 100644
--- a/xmlsecurity/inc/framework/securityengine.hxx
+++ b/xmlsecurity/inc/framework/securityengine.hxx
@@ -104,6 +104,8 @@ protected:
* perform the security operation.
* Any derived class will implement this method respectively.
*/
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
virtual void tryToPerform( )
throw (css::uno::Exception, css::uno::RuntimeException){};
@@ -121,6 +123,8 @@ protected:
* be transferred to a listener by this method.
* Any derived class will implement this method respectively.
*/
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
virtual void notifyResultListener() const
throw (css::uno::Exception, css::uno::RuntimeException)
{};
diff --git a/xmlsecurity/inc/framework/signaturecreatorimpl.hxx b/xmlsecurity/inc/framework/signaturecreatorimpl.hxx
index cdf0da4e1067..bd81d0efe976 100644
--- a/xmlsecurity/inc/framework/signaturecreatorimpl.hxx
+++ b/xmlsecurity/inc/framework/signaturecreatorimpl.hxx
@@ -97,12 +97,15 @@ public:
throw (css::uno::RuntimeException, std::exception) override;
};
+/// @throws css::uno::RuntimeException
OUString SignatureCreatorImpl_getImplementationName()
throw ( css::uno::RuntimeException );
+/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL SignatureCreatorImpl_getSupportedServiceNames( )
throw ( css::uno::RuntimeException );
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface >
SAL_CALL SignatureCreatorImpl_createInstance(
const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr)
diff --git a/xmlsecurity/inc/framework/signatureengine.hxx b/xmlsecurity/inc/framework/signatureengine.hxx
index 3793016cec61..3a2231dc4f6c 100644
--- a/xmlsecurity/inc/framework/signatureengine.hxx
+++ b/xmlsecurity/inc/framework/signatureengine.hxx
@@ -96,6 +96,8 @@ protected:
* For a SignatureCreator, it performs signing operation;
* for a SignatureVerifier, verification operation is performed.
*/
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
virtual void startEngine( const css::uno::Reference<
css::xml::crypto::XXMLSignatureTemplate >&)
throw (css::uno::Exception, css::uno::RuntimeException)
diff --git a/xmlsecurity/inc/framework/signatureverifierimpl.hxx b/xmlsecurity/inc/framework/signatureverifierimpl.hxx
index 70bbb419de07..de394d1da8bc 100644
--- a/xmlsecurity/inc/framework/signatureverifierimpl.hxx
+++ b/xmlsecurity/inc/framework/signatureverifierimpl.hxx
@@ -86,12 +86,15 @@ public:
throw (css::uno::RuntimeException, std::exception) override;
};
+/// @throws css::uno::RuntimeException
OUString SignatureVerifierImpl_getImplementationName()
throw ( css::uno::RuntimeException );
+/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL SignatureVerifierImpl_getSupportedServiceNames( )
throw ( css::uno::RuntimeException );
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface >
SAL_CALL SignatureVerifierImpl_createInstance(
const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr)
diff --git a/xmlsecurity/inc/xmlsec/saxhelper.hxx b/xmlsecurity/inc/xmlsec/saxhelper.hxx
index 8068d8bf35d7..6814ede6d826 100644
--- a/xmlsecurity/inc/xmlsec/saxhelper.hxx
+++ b/xmlsecurity/inc/xmlsec/saxhelper.hxx
@@ -45,27 +45,41 @@ class SAXHelper final
void setCurrentNode(const xmlNodePtr pNode);
xmlDocPtr getDocument() { return m_pParserCtxt->myDoc;}
+ /// @throws css::xml::sax::SAXException
+ /// @throws css::uno::RuntimeException
void startDocument()
throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ /// @throws css::xml::sax::SAXException
+ /// @throws css::uno::RuntimeException
void endDocument()
throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ /// @throws css::xml::sax::SAXException
+ /// @throws css::uno::RuntimeException
void startElement(
const OUString& aName ,
const css::uno::Sequence<
css::xml::csax::XMLAttribute >& aAttributes )
throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ /// @throws css::xml::sax::SAXException
+ /// @throws css::uno::RuntimeException
void endElement( const OUString& aName )
throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ /// @throws css::xml::sax::SAXException
+ /// @throws css::uno::RuntimeException
void characters( const OUString& aChars )
throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ /// @throws css::xml::sax::SAXException
+ /// @throws css::uno::RuntimeException
void ignorableWhitespace( const OUString& aWhitespaces )
throw( css::xml::sax::SAXException , css::uno::RuntimeException ) ;
+ /// @throws css::xml::sax::SAXException
+ /// @throws css::uno::RuntimeException
void processingInstruction(
const OUString& aTarget ,
const OUString& aData )
diff --git a/xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx b/xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx
index bc8471ec6f3c..dfeb0042adf0 100644
--- a/xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx
+++ b/xmlsecurity/inc/xmlsec/xmldocumentwrapper_xmlsecimpl.hxx
@@ -89,18 +89,21 @@ private:
private:
void getNextSAXEvent();
+ /// @throws css::xml::sax::SAXException
static void sendStartElement(
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler2,
const xmlNodePtr pNode)
throw (css::xml::sax::SAXException);
+ /// @throws css::xml::sax::SAXException
static void sendEndElement(
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler2,
const xmlNodePtr pNode)
throw (css::xml::sax::SAXException);
+ /// @throws css::xml::sax::SAXException
static void sendNode(
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xHandler2,
@@ -241,13 +244,16 @@ public:
throw (css::uno::RuntimeException, std::exception) override;
};
+/// @throws css::uno::RuntimeException
OUString XMLDocumentWrapper_XmlSecImpl_getImplementationName()
throw ( css::uno::RuntimeException );
+/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL
XMLDocumentWrapper_XmlSecImpl_getSupportedServiceNames( )
throw ( css::uno::RuntimeException );
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface >
SAL_CALL XMLDocumentWrapper_XmlSecImpl_createInstance(
const css::uno::Reference< css::uno::XComponentContext > &)