summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-06-27 16:56:35 -0700
committerChristopher Ng <chrng8@gmail.com>2024-07-04 17:05:45 -0700
commitd9bf6c432e2c28600ee5aa562f3f36f48cb7b7cc (patch)
tree1b42bebb1e362aaad28a15b73872552da1655332 /lib/public
parent7e8a061ab6a4aed213440503b8cb919468eff4cc (diff)
downloadnextcloud-server-d9bf6c432e2c28600ee5aa562f3f36f48cb7b7cc.tar.gz
nextcloud-server-d9bf6c432e2c28600ee5aa562f3f36f48cb7b7cc.zip
feat: Add method to validate an IHasher hash
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Security/IHasher.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/Security/IHasher.php b/lib/public/Security/IHasher.php
index 378c2cf3f51..d985ffe48ab 100644
--- a/lib/public/Security/IHasher.php
+++ b/lib/public/Security/IHasher.php
@@ -47,4 +47,11 @@ interface IHasher {
* @since 8.0.0
*/
public function verify(string $message, string $hash, &$newHash = null): bool ;
+
+ /**
+ * Check if the prefixed hash is valid
+ *
+ * @since 30.0.0
+ */
+ public function validate(string $prefixedHash): bool;
}