summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-25 14:05:04 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-25 14:05:04 +0200
commit787c668b39f51f0ffe5741d980eaf3472155abff (patch)
tree17a49a3b4ac03273113eaec61eda571ce1a5b028 /lib/public
parent68bf4440d327e5eea71bcbf282640e3c115ec59c (diff)
parentab69a226065d576120d629f857464633fb5d17d9 (diff)
downloadnextcloud-server-787c668b39f51f0ffe5741d980eaf3472155abff.tar.gz
nextcloud-server-787c668b39f51f0ffe5741d980eaf3472155abff.zip
Merge pull request #19360 from owncloud/move-filter-method-into-config-object
Move the filtering of sensitive data to the config class
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/iconfig.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php
index ff0b6c6a5b0..933eef97ae1 100644
--- a/lib/public/iconfig.php
+++ b/lib/public/iconfig.php
@@ -41,6 +41,11 @@ namespace OCP;
*/
interface IConfig {
/**
+ * @since 8.2.0
+ */
+ const SENSITIVE_VALUE = '***REMOVED SENSITIVE VALUE***';
+
+ /**
* Sets and deletes system wide values
*
* @param array $configs Associative array with `key => value` pairs
@@ -69,6 +74,16 @@ interface IConfig {
public function getSystemValue($key, $default = '');
/**
+ * Looks up a system wide defined value and filters out sensitive data
+ *
+ * @param string $key the key of the value, under which it was saved
+ * @param mixed $default the default value to be returned if the value isn't set
+ * @return mixed the value or $default
+ * @since 8.2.0
+ */
+ public function getFilteredSystemValue($key, $default = '');
+
+ /**
* Delete a system wide defined value
*
* @param string $key the key of the value, under which it was saved