OathCredential
@Serializable
Represents an OATH (TOTP/HOTP) credential. This model holds all necessary information to generate OTP codes and identify the credential.
Constructors
Link copied to clipboard
constructor(id: String = UUID.randomUUID().toString(), userId: String? = null, resourceId: String? = null, issuer: String, displayIssuer: String = issuer, accountName: String, displayAccountName: String = accountName, oathType: OathType, secret: String, oathAlgorithm: OathAlgorithm = OathAlgorithm.SHA1, digits: Int = 6, period: Int = 30, counter: Long = 0, createdAt: Date = Date(), imageURL: String? = null, backgroundColor: String? = null, policies: String? = null, lockingPolicy: String? = null, isLocked: Boolean = false)
Properties
Link copied to clipboard
The account name (username) associated with this credential.
Link copied to clipboard
Optional background color for the credential.
Link copied to clipboard
The timestamp when this credential was created.
Link copied to clipboard
The account name (username) associated with this credential, editable by the user.
Link copied to clipboard
The name of the issuer for this credential, editable by the user.
Link copied to clipboard
Optional lName of the Policy locking the credential.
Link copied to clipboard
The HMAC algorithm used (SHA1, SHA256, SHA512).
Link copied to clipboard
The type of credential (TOTP or HOTP).
Link copied to clipboard
Server-side device identifier.