PCSDKModule Documentation Beta

Structure PCUser

public struct PCUser: Decodable, Equatable

The struct that holds information about a user

PCUser PCUser Decodable Decodable PCUser->Decodable Equatable Equatable PCUser->Equatable

Conforms To

Decodable
Equatable

Initializers

init(from:​)

public init(from decoder: Decoder) throws

:nodoc:

Properties

user​ID

let userID: String

User's identifier generated by the PControl System

expiration​Date

var expirationDate: Date

User's expiration date

system​ID

let systemID: String

The system's identifier

options

let options: PCUserOptions

User's options

interaction​URL

let interactionURL: URL

URL of the external server

name

var name: String?

User's name to store in the device storage

registered​Device​Token

var registeredDeviceToken: String?

Registered device token for this user

suggested​User​Name

var suggestedUserName: String?

The name for the user suggested by the server

public​Key

var publicKey: String?

Registered public key for this user

api​Version

var apiVersion: Int?

API's version of the system

system​Name

var systemName: String?

Name of the system

ext​Auth​Methods

var extAuthMethods: Set<PCExtendedAuthType>

User's list of extended authentication methods

is​Activated

var isActivated: Bool

Returns true if the user is activated

is​Ready​ToSign

var isReadyToSign: Bool

Checks if password has been submitted for this user and the user is still being unlocked

has​Key​Pair

var hasKeyPair: Bool

Checks if user has registered public key

is​Expired

var isExpired: Bool

Returns true if the user is expired

confirmation​Code​TSI

var confirmationCodeTSI: TimeInterval

Expiration interval of generated signatures and codes. By default - 180 seconds

authorization​Code​TSI

var authorizationCodeTSI: TimeInterval

Expiration interval of authorization codes. By default - 180 seconds

unique​ID

var uniqueID: String

Unique identifier of this user.

is​Registered​ToAutosign

var isRegisteredToAutosign: Bool

Returns true if user has been registered to use autosign