aboutsummaryrefslogtreecommitdiff
path: root/format-common/api
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-04-18 02:48:59 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-04-18 04:03:17 +0530
commit77abe7ee2c906747d80813fef8d786b3e8d94c0a (patch)
tree8146a514df53fc6e51e5288e7cf7e46673247740 /format-common/api
parent931cc052a8f22b96e11d4bd8f9d069ef8ff92e21 (diff)
format-common: initial API for PasswordEntry
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'format-common/api')
-rw-r--r--format-common/api/format-common.api30
1 files changed, 30 insertions, 0 deletions
diff --git a/format-common/api/format-common.api b/format-common/api/format-common.api
new file mode 100644
index 00000000..c088a828
--- /dev/null
+++ b/format-common/api/format-common.api
@@ -0,0 +1,30 @@
+public final class dev/msfjarvis/aps/data/passfile/PasswordEntry {
+ public static final field Companion Ldev/msfjarvis/aps/data/passfile/PasswordEntry$Companion;
+ public fun <init> (Ldev/msfjarvis/aps/util/time/UserClock;Ldev/msfjarvis/aps/util/totp/TotpFinder;Lkotlinx/coroutines/CoroutineScope;[B)V
+ public final fun getExtraContent ()Ljava/util/Map;
+ public final fun getExtraContentWithoutAuthData ()Ljava/lang/String;
+ public final fun getPassword ()Ljava/lang/String;
+ public final fun getTotp ()Lkotlinx/coroutines/flow/StateFlow;
+ public final fun getUsername ()Ljava/lang/String;
+ public final fun hasTotp ()Z
+}
+
+public class dev/msfjarvis/aps/util/time/UserClock : java/time/Clock {
+ public fun <init> ()V
+ public fun getZone ()Ljava/time/ZoneId;
+ public fun instant ()Ljava/time/Instant;
+ public fun withZone (Ljava/time/ZoneId;)Ljava/time/Clock;
+}
+
+public abstract interface class dev/msfjarvis/aps/util/totp/TotpFinder {
+ public static final field Companion Ldev/msfjarvis/aps/util/totp/TotpFinder$Companion;
+ public abstract fun findAlgorithm (Ljava/lang/String;)Ljava/lang/String;
+ public abstract fun findDigits (Ljava/lang/String;)Ljava/lang/String;
+ public abstract fun findPeriod (Ljava/lang/String;)J
+ public abstract fun findSecret (Ljava/lang/String;)Ljava/lang/String;
+}
+
+public final class dev/msfjarvis/aps/util/totp/TotpFinder$Companion {
+ public final fun getTOTP_FIELDS ()[Ljava/lang/String;
+}
+