# User
data class User(val userId: String, val projectId: String, val revoked: Boolean, val pinLength: Int, val mpinId: ByteArray, val token: ByteArray, val dtas: String, val publicKey: ByteArray?)
Object representing the user in the platform.
# Parameters
| userId | Identifier of the user. Could be email, username, etc. |
| projectId | Required to link the user with the project on the MIRACLTrust platform. |
| revoked | Provides information if the user is revoked or not. |
| pinLength | The number of the digits the user PIN should be. |
| mpinId | representing the user to the MIRACL Trust Platform. |
| token | representing the user securely. |
| dtas | required for server side validation. |
| publicKey | Public part of the signing key. |
# Constructors
| User | constructor(userId: String, projectId: String, revoked: Boolean, pinLength: Int, mpinId: ByteArray, token: ByteArray, dtas: String, publicKey: ByteArray?) |
# Properties
| Name | Summary |
|---|---|
| dtas | val dtas: String |
| hashedMpinId | val hashedMpinId: String Hex encoded SHA256 representation of the mpinId property. |
| mpinId | val mpinId: ByteArray |
| pinLength | val pinLength: Int |
| projectId | val projectId: String |
| publicKey | val publicKey: ByteArray? |
| revoked | val revoked: Boolean |
| token | val token: ByteArray |
| userId | val userId: String |
# Functions
| Name | Summary |
|---|---|
| equals | open operator override fun equals(other: Any?): Boolean |
| hashCode | open override fun hashCode(): Int |