Identity

Identity

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

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

Parameters

Name Summary
dtas

required for server side validation.

id

Identifier of the identity.

mpinId

representing the identity to the MIRACL Trust Platform.

pinLength

The number of the digits the identity PIN should be.

publicKey

Public part of the signing key.

revoked

provides information if the identity is revoked or not.

token

representing the identity securely.

Constructors

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

Identifier of the identity.

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

Types

Name Summary
Companion
Content
object Companion


Functions

Name Summary
component1
Content
operator fun component1(): UUID


component2
Content
operator fun component2(): Int


component3
Content
operator fun component3(): Boolean


component4
Content
operator fun component4(): ByteArray


component5
Content
operator fun component5(): ByteArray


component6
Content
operator fun component6(): String


component7
Content
operator fun component7(): ByteArray?


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


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
dtas

required for server side validation.

val dtas: String
hashedMpinId

Hex encoded SHA256 representation of the mpinId property.

@ExperimentalUnsignedTypes()

val hashedMpinId: String
id

Identifier of the identity.

val id: UUID
mpinId

representing the identity to the MIRACL Trust Platform.

val mpinId: ByteArray
pinLength

The number of the digits the identity PIN should be.

val pinLength: Int
publicKey

Public part of the signing key.

val publicKey: ByteArray?
revoked

provides information if the identity is revoked or not.

val revoked: Boolean
token

representing the identity securely.

val token: ByteArray