OTP

OTP

Object representing one time password and its validity period.

data class OTP(code: String, nowTime: Long, expireTime: Long, ttlSeconds: Int) : OneTimeCode

Parameters

Name Summary
code

The issued OTP.

expireTime

MIRACL MFA system time when the OTP will expire.

nowTime

The current MIRACL MFA system time.

ttlSeconds

The expiration period in seconds.

Constructors

Name Summary
OTP

The issued OTP.

fun OTP(code: String, nowTime: Long, expireTime: Long, ttlSeconds: Int)

Functions

Name Summary
component1
Content
operator fun component1(): String


component2
Content
operator fun component2(): Long


component3
Content
operator fun component3(): Long


component4
Content
operator fun component4(): Int


copy
Content
fun copy(code: String, nowTime: Long, expireTime: Long, ttlSeconds: Int): OTP


equals
Content
open operator override fun equals(other: Any?): Boolean


hashCode
Content
open override fun hashCode(): Int


toString
Content
open override fun toString(): String


Properties

Name Summary
code

The issued OTP.

open override val code: String
expireTime

MIRACL MFA system time when the OTP will expire.

open override val expireTime: Long
nowTime

The current MIRACL MFA system time.

open override val nowTime: Long
ttlSeconds

The expiration period in seconds.

open override val ttlSeconds: Int