TOTP: Add ClearSecretKey D-bus method
This method clears Time-based One-time Password authenticator secret
key for the given user.
Change-Id: I0d880c7faff28232304afd3253a861a49f5a3375
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
diff --git a/yaml/xyz/openbmc_project/User/TOTPAuthenticator.interface.yaml b/yaml/xyz/openbmc_project/User/TOTPAuthenticator.interface.yaml
index 5b1c8a7..0457f04 100644
--- a/yaml/xyz/openbmc_project/User/TOTPAuthenticator.interface.yaml
+++ b/yaml/xyz/openbmc_project/User/TOTPAuthenticator.interface.yaml
@@ -35,6 +35,13 @@
description: >
Returns true if provided OTP is valid otherwise returns false.
+ - name: ClearSecretKey
+ description: >
+ This method clears Time-based One-time Password authenticator secret
+ key for the given user.
+ errors:
+ - xyz.openbmc_project.Common.Error.UnsupportedRequest
+ - xyz.openbmc_project.Common.Error.NotAllowed
properties:
- name: SecretKeyGenerationRequired
type: boolean