From 77abe7ee2c906747d80813fef8d786b3e8d94c0a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 18 Apr 2021 02:48:59 +0530 Subject: format-common: initial API for PasswordEntry Signed-off-by: Harsh Shandilya --- format-common/api/format-common.api | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 format-common/api/format-common.api (limited to 'format-common/api') 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 (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 ()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; +} + -- cgit v1.2.3