Structure
PCUser
public struct PCUser: Decodable, Equatable
The struct that holds information about a user
Relationships
Conforms To
Decodable
Equatable
Initializers
init(from:)
public init(from decoder: Decoder) throws
:nodoc:
Properties
userID
let userID: String
User's identifier generated by the PControl System
expirationDate
var expirationDate: Date
User's expiration date
systemID
let systemID: String
The system's identifier
interactionURL
let interactionURL: URL
URL of the external server
name
var name: String?
User's name to store in the device storage
registeredDeviceToken
var registeredDeviceToken: String?
Registered device token for this user
suggestedUserName
var suggestedUserName: String?
The name for the user suggested by the server
publicKey
var publicKey: String?
Registered public key for this user
apiVersion
var apiVersion: Int?
API's version of the system
systemName
var systemName: String?
Name of the system
extAuthMethods
var extAuthMethods: Set<PCExtendedAuthType>
User's list of extended authentication methods
isActivated
var isActivated: Bool
Returns true
if the user is activated
isReadyToSign
var isReadyToSign: Bool
Checks if password has been submitted for this user and the user is still being unlocked
hasKeyPair
var hasKeyPair: Bool
Checks if user has registered public key
isExpired
var isExpired: Bool
Returns true
if the user is expired
confirmationCodeTSI
var confirmationCodeTSI: TimeInterval
Expiration interval of generated signatures and codes. By default - 180 seconds
authorizationCodeTSI
var authorizationCodeTSI: TimeInterval
Expiration interval of authorization codes. By default - 180 seconds
uniqueID
var uniqueID: String
Unique identifier of this user.
isRegisteredToAutosign
var isRegisteredToAutosign: Bool
Returns true if user has been registered to use autosign