Account

open class Account : ModelObject<T>

Account model represents an identity for the user with an issuer. It is possible for a user to have multiple accounts provided by a single issuer, however it is not possible to have multiple accounts from with same issuer for the same account name.

Constructors

Link copied to clipboard
protected constructor(issuer: String, displayIssuer: String, accountName: String, displayAccountName: String, imageURL: String, backgroundColor: String, timeAdded: Calendar, policies: String, lockingPolicy: String, lock: Boolean)
Creates Account object with given information.

Types

Link copied to clipboard
open class AccountBuilder
Builder class responsible for producing Accounts.

Properties

Link copied to clipboard
AccountName, or Username of the account for the issuer
Link copied to clipboard
HEX Color code in String for Account
Link copied to clipboard
Alternative AccountName for the issuer
Link copied to clipboard
Alternative Issuer of the account
Link copied to clipboard
val id: String
Unique identifier of Account
Link copied to clipboard
URL of Account's logo image
Link copied to clipboard
Issuer of the account
Link copied to clipboard
private open var lock: Boolean
Account lock flag
Link copied to clipboard
Name of the Policy locking the Account
Link copied to clipboard
private open var mechanismList: List<Mechanism>
List of Mechanism objects associated with this account
Link copied to clipboard
Authenticator Policies in a JSON String format
Link copied to clipboard
Date this object was stored

Functions

Link copied to clipboard
Returns a builder for creating an Account.
Link copied to clipboard
open fun compareTo(another: Account): Int
Link copied to clipboard
open fun deserialize(jsonString: String): Account
Deserializes the specified Json into an object of the Account object.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun getDate(milliSeconds: Long): Calendar
Return date from milliseconds.
Link copied to clipboard
Get the list of mechanisms associates with this account.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isLocked(): Boolean
Determine whether the this Account should be locked by the app.
Link copied to clipboard
open fun lock(@NonNull policy: FRAPolicy)
Lock this Account.
Link copied to clipboard
open fun matches(other: Account): Boolean
Returns true if the two objects would conflict if added to a storage system.
Link copied to clipboard
open fun serialize(): String
Serializes the T object into its equivalent Json representation.
Link copied to clipboard
open fun setMechanismList(mechanismList: List<Mechanism>)
Link copied to clipboard
open fun toJson(): String
Creates a JSON string representation of T object.
Link copied to clipboard
open fun unlock()
Unlock this Account.