OathMechanism constructor

OathMechanism(
  1. String? id,
  2. String? mechanismUID,
  3. String? issuer,
  4. String? accountName,
  5. String? type,
  6. TokenType oathType,
  7. String? algorithm,
  8. String? secret,
  9. int? digits,
  10. int? counter,
  11. int? period,
  12. int? timeAdded, [
  13. Account? account,
])

Creates OathMechanism object with given information.

Implementation

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])
    : super(id, mechanismUID, issuer, accountName, type, secret, timeAdded,
          account) {
  this.oathType = oathType;
  this.algorithm = algorithm;
  this.digits = digits;
  this.counter = counter;
  this.period = period;
}