OathMechanism class

Represents an instance of a OATH authentication mechanism. Associated with an Account.

Inheritance

Constructors

OathMechanism(String? id, String? mechanismUID, String? issuer, String? accountName, String? type, TokenType oathType, String? algorithm, String? secret, int? digits, int? counter, int? period, int? timeAdded, [Account? account])
Creates OathMechanism object with given information.
OathMechanism.fromJson(Map<String, dynamic> json, [Account? account])
Deserializes the specified Json into an object of the OathMechanism object.
factory

Properties

account Account?
getter/setter pairinherited
accountName String?
getter/setter pairinherited
algorithm String?
getter/setter pair
counter int?
getter/setter pair
digits int?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pairinherited
issuer String?
getter/setter pairinherited
mechanismUID String?
getter/setter pairinherited
oathType TokenType?
getter/setter pair
period int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeAdded int?
getter/setter pairinherited
type String?
getter/setter pairinherited

Methods

getAccount() Account?
Gets the Account object associated with the mechanism.
inherited
getAccountId() String
Gets the account identification associated with the mechanism.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAccount(Account account) → void
Sets the Account object associated with the mechanism.
inherited
toJson() Map<String, dynamic>
Creates a JSON string representation of OathMechanism object.
override
toString() String
Creates a String representation of OathMechanism object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited