User

CLASS

# User

@objc public class User: NSObject

Representing user in the MIRACL platform. This user is having authentication and signing identities.

# Properties

# userId

public var userId = ""

Identifier of the user (e.g email address)

# projectId

public var projectId = ""

Identifier of the project in the MIRACL Trust platform.

# authenticationIdentityId

public var authenticationIdentityId = NSUUID()

Identifier of the authentication identity.

# signingIdentityId

public var signingIdentityId: NSUUID?

Identifier of the signing identity.

# Methods

# getAuthenticationIdentity()

public func getAuthenticationIdentity() -> Identity?

Retrieve last version of authentication Identity from the storage.

  • Returns: last version of authentication Identity.

# getSigningIdentity()

public func getSigningIdentity() -> Identity?

Retrieve last version of signing Identity from the storage.

  • Returns: last version of signing Identity.