From a3ebcfcc62749fccd47b91eea4f9dc530aa261bd Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 18 Apr 2021 04:12:13 +0530 Subject: app: switch to format-common's PasswordEntry Signed-off-by: Harsh Shandilya --- .../java/dev/msfjarvis/aps/util/totp/TotpFinder.kt | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 app/src/main/java/dev/msfjarvis/aps/util/totp/TotpFinder.kt (limited to 'app/src/main/java/dev/msfjarvis/aps/util/totp/TotpFinder.kt') diff --git a/app/src/main/java/dev/msfjarvis/aps/util/totp/TotpFinder.kt b/app/src/main/java/dev/msfjarvis/aps/util/totp/TotpFinder.kt deleted file mode 100644 index e787fea5..00000000 --- a/app/src/main/java/dev/msfjarvis/aps/util/totp/TotpFinder.kt +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. - * SPDX-License-Identifier: GPL-3.0-only - */ - -package dev.msfjarvis.aps.util.totp - -/** Defines a class that can extract relevant parts of a TOTP URL for use by the app. */ -interface TotpFinder { - - /** Get the TOTP secret from the given extra content. */ - fun findSecret(content: String): String? - - /** Get the number of digits required in the final OTP. */ - fun findDigits(content: String): String - - /** Get the TOTP timeout period. */ - fun findPeriod(content: String): Long - - /** Get the algorithm for the TOTP secret. */ - fun findAlgorithm(content: String): String -} -- cgit v1.2.3