summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2022-07-28 23:30:17 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-07-28 23:30:17 +0200
commit2a6f46e6891ee82b613be6151d2f51583c45c2bf (patch)
tree9c2419d41c3fac9674b5b6323e79d4e66b018c64 /lib/public
parentbbe15b4b43f95e1600f5122a7bf72a64ee404b36 (diff)
downloadnextcloud-server-2a6f46e6891ee82b613be6151d2f51583c45c2bf.tar.gz
nextcloud-server-2a6f46e6891ee82b613be6151d2f51583c45c2bf.zip
allow apps to specify methods carrying sensitive parameters
… in order to remove them from logging. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Bootstrap/IRegistrationContext.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
index a5d675f14c7..6b10d7bfc0f 100644
--- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
+++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php
@@ -306,4 +306,15 @@ interface IRegistrationContext {
* @since 24.0.0
*/
public function registerUserMigrator(string $migratorClass): void;
+
+ /**
+ * Announce methods of classes that may contain sensitive values, which
+ * should be obfuscated before being logged.
+ *
+ * @param string $class
+ * @param string[] $methods
+ * @return void
+ * @since 25.0.0
+ */
+ public function registerSensitiveMethods(string $class, array $methods): void;
}