Identity

CLASS

Identity

@objc public class Identity: NSObject

Representing a user’s identity in the system.

Properties

userId

public var userId: String = ""

Identifier of the identity. Could be email or another string.

pinLength

public var pinLength: Int = 0

The number of the digits the identity PIN should be.

dtas

public var dtas: String = ""

Base64 encoded URL-s of DTA-s.

mpinId

public var mpinId: Data = Data()

Actual representation of the identity.

token

public var token: Data = Data()

The second factor of the authentication.

hashedMpinId

public var hashedMpinId: String

Hex encoded SHA256 representation of the mpinId property.

Methods

init()

public override init()

init(userId:)

public init(userId: String)