Identity

Identity


data class Identity(id: UUID, pinLength: Int, revoked: Boolean, mpinId: ByteArray, token: ByteArray, dtas: String, publicKey: ByteArray?)

Identity is a MIRACL Trust data class to represent an identity.

Parameters

id Identifier of the identity.
pinLength The number of the digits the identity PIN should be.
revoked provides information if the identity is revoked or not.
mpinId representing the identity to the MIRACL Trust Platform.
token representing the identity securely.
dtas required for server side validation.
publicKey Public part of the signing key.

Constructors

Identity
fun Identity(pinLength: Int, revoked: Boolean, mpinId: ByteArray, token: ByteArray, dtas: String, publicKey: ByteArray?)
Identity
fun Identity(id: UUID, pinLength: Int, revoked: Boolean, mpinId: ByteArray, token: ByteArray, dtas: String, publicKey: ByteArray?)

Types

Name Summary
Companion
object Companion

Functions

Name Summary
equals
open operator override fun equals(other: Any?): Boolean
hashCode
open override fun hashCode(): Int

Properties

Name Summary
dtas
val dtas: String
hashedMpinId
val hashedMpinId: String
Hex encoded SHA256 representation of the mpinId property.
id
val id: UUID
mpinId
val mpinId: ByteArray
pinLength
val pinLength: Int
publicKey
val publicKey: ByteArray?
revoked
val revoked: Boolean
token
val token: ByteArray