summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/xmlsec
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/source/xmlsec
parent843e2a9dd6127bf7b5b9adde2ef01451449f0ba3 (diff)
New loplugin:dynexcspec: Add @throws documentation, xmlsecurity
Change-Id: I2447c028add359952e4bd36dbdc1d5431fe48104
Diffstat (limited to 'xmlsecurity/source/xmlsec')
-rw-r--r--xmlsecurity/source/xmlsec/nss/nssinitializer.hxx3
-rw-r--r--xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx17
-rw-r--r--xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.hxx3
-rw-r--r--xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.hxx1
-rw-r--r--xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.hxx2
-rw-r--r--xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.hxx2
-rw-r--r--xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.hxx2
-rw-r--r--xmlsecurity/source/xmlsec/serialnumberadapter.hxx2
-rw-r--r--xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx4
9 files changed, 36 insertions, 0 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/nssinitializer.hxx b/xmlsecurity/source/xmlsec/nss/nssinitializer.hxx
index 8640544aba5a..d7fd1737bf3d 100644
--- a/xmlsecurity/source/xmlsec/nss/nssinitializer.hxx
+++ b/xmlsecurity/source/xmlsec/nss/nssinitializer.hxx
@@ -63,12 +63,15 @@ public:
throw (css::uno::RuntimeException, std::exception) override;
};
+/// @throws css::uno::RuntimeException
OUString ONSSInitializer_getImplementationName()
throw ( css::uno::RuntimeException );
+/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL ONSSInitializer_getSupportedServiceNames()
throw ( css::uno::RuntimeException );
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface >
SAL_CALL ONSSInitializer_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rSMgr )
throw ( css::uno::Exception );
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx
index 30394bb4726f..117d599c34e4 100644
--- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx
+++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx
@@ -80,9 +80,11 @@ private:
//Helper for XServiceInfo
static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ;
+ /// @throws css::uno::RuntimeException
static OUString impl_getImplementationName() throw( css::uno::RuntimeException ) ;
//Helper for registry
+ /// @throws css::uno::RuntimeException
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) throw( css::uno::RuntimeException ) ;
static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
@@ -105,13 +107,23 @@ private:
static const css::uno::Sequence< sal_Int8 >& getUnoTunnelId() ;
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
void setCertDb( CERTCertDBHandle* aCertDb ) throw( css::uno::Exception , css::uno::RuntimeException ) ;
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
void adoptSymKey( PK11SymKey* aSymKey ) throw( css::uno::Exception , css::uno::RuntimeException ) ;
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
PK11SymKey* getSymKey( unsigned int position ) throw( css::uno::Exception , css::uno::RuntimeException ) ;
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
SECKEYPublicKey* getPubKey( unsigned int position ) throw( css::uno::Exception , css::uno::RuntimeException ) ;
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
SECKEYPrivateKey* getPriKey( unsigned int position ) throw( css::uno::Exception , css::uno::RuntimeException ) ;
virtual css::uno::Sequence< css::uno::Reference< css::security::XCertificate > > SAL_CALL getPersonalCertificates() throw( css::uno::SecurityException , css::uno::RuntimeException, std::exception ) override ;
@@ -125,12 +137,17 @@ private:
//Native methods
+ /// @throws css::uno::RuntimeException
xmlSecKeysMngrPtr createKeysManager() throw( css::uno::Exception , css::uno::RuntimeException ) ;
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
static void destroyKeysManager(xmlSecKeysMngrPtr pKeysMngr) throw( css::uno::Exception , css::uno::RuntimeException ) ;
private:
void updateSlots();
+ /// @throws css::uno::Exception
+ /// @throws css::uno::RuntimeException
void addCryptoSlot( PK11SlotInfo* aSlot ) throw( css::uno::Exception , css::uno::RuntimeException ) ;
} ;
diff --git a/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.hxx b/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.hxx
index 685473283195..6b051315cb93 100644
--- a/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.hxx
+++ b/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.hxx
@@ -59,12 +59,15 @@ public:
throw (css::uno::RuntimeException, std::exception) override;
};
+/// @throws css::uno::RuntimeException
OUString SEInitializer_NssImpl_getImplementationName()
throw ( css::uno::RuntimeException );
+/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL SEInitializer_NssImpl_getSupportedServiceNames( )
throw ( css::uno::RuntimeException );
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface >
SAL_CALL SEInitializer_NssImpl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > & rxMSF)
throw ( css::uno::Exception );
diff --git a/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.hxx b/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.hxx
index 12f23aafad5a..8c9e6ab502c8 100644
--- a/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.hxx
+++ b/xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.hxx
@@ -91,6 +91,7 @@ class X509Certificate_NssImpl : public ::cppu::WeakImplHelper<
//Helper methods
void setCert( CERTCertificate* cert ) ;
const CERTCertificate* getNssCert() const ;
+ /// @throws css::uno::RuntimeException
void setRawCert( const css::uno::Sequence< sal_Int8 >& rawCert ) throw ( css::uno::RuntimeException) ;
} ;
diff --git a/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.hxx b/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.hxx
index e96b55310421..37d66f6b1dd1 100644
--- a/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.hxx
+++ b/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.hxx
@@ -70,9 +70,11 @@ class XMLEncryption_NssImpl : public ::cppu::WeakImplHelper<
//Helper for XServiceInfo
static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ;
+ /// @throws css::uno::RuntimeException
static OUString impl_getImplementationName() throw( css::uno::RuntimeException ) ;
//Helper for registry
+ /// @throws css::uno::RuntimeException
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) throw( css::uno::RuntimeException ) ;
static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
diff --git a/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.hxx b/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.hxx
index d01d93580ceb..52db8b1e9517 100644
--- a/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.hxx
+++ b/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.hxx
@@ -85,9 +85,11 @@ class XMLSecurityContext_NssImpl : public ::cppu::WeakImplHelper<
//Helper for XServiceInfo
static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ;
+ /// @throws css::uno::RuntimeException
static OUString impl_getImplementationName() throw( css::uno::RuntimeException ) ;
//Helper for registry
+ /// @throws css::uno::RuntimeException
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) throw( css::uno::RuntimeException ) ;
static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
diff --git a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.hxx b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.hxx
index 2e44b2c5eafd..5e6fe23a1ca0 100644
--- a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.hxx
+++ b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.hxx
@@ -69,9 +69,11 @@ class XMLSignature_NssImpl : public ::cppu::WeakImplHelper<
//Helper for XServiceInfo
static css::uno::Sequence< OUString > impl_getSupportedServiceNames() ;
+ /// @throws css::uno::RuntimeException
static OUString impl_getImplementationName() throw( css::uno::RuntimeException ) ;
//Helper for registry
+ /// @throws css::uno::RuntimeException
static css::uno::Reference< css::uno::XInterface > SAL_CALL impl_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) throw( css::uno::RuntimeException ) ;
static css::uno::Reference< css::lang::XSingleServiceFactory > impl_createFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& aServiceManager ) ;
diff --git a/xmlsecurity/source/xmlsec/serialnumberadapter.hxx b/xmlsecurity/source/xmlsec/serialnumberadapter.hxx
index 3e8a9e9a3f4f..5fb4269b92fe 100644
--- a/xmlsecurity/source/xmlsec/serialnumberadapter.hxx
+++ b/xmlsecurity/source/xmlsec/serialnumberadapter.hxx
@@ -36,8 +36,10 @@ namespace xml_security { namespace serial_number_adapter {
css::uno::Reference< css::uno::XInterface > SAL_CALL create(
css::uno::Reference< css::uno::XComponentContext > const &);
+/// @throws css::uno::RuntimeException
OUString implementationName() throw (css::uno::RuntimeException);
+/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > serviceNames()
throw (css::uno::RuntimeException);
diff --git a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx
index 4883581397f7..469ab4eef5a5 100644
--- a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx
+++ b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx
@@ -61,6 +61,7 @@ public:
/* css::lang::XUnoTunnel */
virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& aIdentifier )
throw (css::uno::RuntimeException, std::exception) override;
+ /// @throws css::uno::RuntimeException
static css::uno::Sequence < sal_Int8 > getUnoTunnelImplementationId()
throw(css::uno::RuntimeException);
@@ -87,12 +88,15 @@ public:
void setNativeElement(const xmlNodePtr pNode);
};
+/// @throws css::uno::RuntimeException
OUString XMLElementWrapper_XmlSecImpl_getImplementationName()
throw ( css::uno::RuntimeException );
+/// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL XMLElementWrapper_XmlSecImpl_getSupportedServiceNames( )
throw ( css::uno::RuntimeException );
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface >
SAL_CALL XMLElementWrapper_XmlSecImpl_createInstance(
const css::uno::Reference< css::uno::XComponentContext > &)