UserInfo

Overview

The UserInfo class can be used to provide additional information about user being authenticating back to the client application. For example SimpleLoginService method return an instance of this class as an out parameter. However Authentication and Login infrastructure of Data Abstract doesn't enforce use of the UserInfo class. It is even possible to define own structures of similar purpose or to not use it at all.

The UserInfo class can be considered as obsolete because more advanced (and suggested to be used) LoginEx approach doesn't provide any use for the UserInfo class.

Location


 

constructor

Creates a new instance of the UserInfo class.

 

constructor

 

UserInfo()

 

init()

 

Sub New()

Attributes

Gets or sets an array of custom user attributes.

 

property Attributes: array of Object read write;

 

Object[] Attributes { get; set; }

 

var Attributes: Object... { get{} set{} }

 

Property Attributes() As Object()

GetAttributeCount    (declared in ComplexType)

 

method GetAttributeCount: Int32

 

Int32 GetAttributeCount()

 

func GetAttributeCount() -> Int32

 

Function GetAttributeCount() As Int32

GetAttributeName    (declared in ComplexType)

 

method GetAttributeName(index: Int32): String

 

String GetAttributeName(Int32 index)

 

func GetAttributeName(_ index: Int32) -> String

 

Function GetAttributeName(index As Int32) As String

Parameters:

  • index:

GetAttributeValue    (declared in ComplexType)

 

method GetAttributeValue(index: Int32): String

 

String GetAttributeValue(Int32 index)

 

func GetAttributeValue(_ index: Int32) -> String

 

Function GetAttributeValue(index As Int32) As String

Parameters:

  • index:

Privileges

Gets or sets a list of user access privileges. It is up to the client application to interpret these rules and to use them.

 

property Privileges: array of String read write;

 

String[] Privileges { get; set; }

 

var Privileges: String... { get{} set{} }

 

Property Privileges() As String()

PropertyChanged    (declared in ComplexType)

 

event PropertyChanged: PropertyChangedEventHandler

 

delegate PropertyChangedEventHandler PropertyChanged()

 

__event PropertyChangedEventHandler: PropertyChanged!

 

Event PropertyChanged As PropertyChangedEventHandler

ReadComplex

 

method ReadComplex(serializer: Serializer)

 

void ReadComplex(Serializer serializer)

 

func ReadComplex(_ serializer: Serializer)

 

Sub ReadComplex(serializer As Serializer)

Parameters:

  • serializer:

SessionID

Gets or sets the user's session Id.

 

property SessionID: String read write;

 

String SessionID { get; set; }

 

var SessionID: String { get{} set{} }

 

Property SessionID() As String

TriggerPropertyChanged  protected    (declared in ComplexType)

 

method TriggerPropertyChanged(propertyName: String)

 

void TriggerPropertyChanged(String propertyName)

 

func TriggerPropertyChanged(_ propertyName: String)

 

Sub TriggerPropertyChanged(propertyName As String)

Parameters:

  • propertyName:

UserData

Gets or sets a binary blob containing user information. For example this field can store user's photo etc.

 

property UserData: Binary read write;

 

Binary UserData { get; set; }

 

var UserData: Binary { get{} set{} }

 

Property UserData() As Binary

UserID

Gets or sets user Id, for example full user name.

 

property UserID: String read write;

 

String UserID { get; set; }

 

var UserID: String { get{} set{} }

 

Property UserID() As String

WriteComplex

 

method WriteComplex(serializer: Serializer)

 

void WriteComplex(Serializer serializer)

 

func WriteComplex(_ serializer: Serializer)

 

Sub WriteComplex(serializer As Serializer)

Parameters:

  • serializer:

 

Attributes

Gets or sets an array of custom user attributes.

 

property Attributes: array of Object read write;

 

Object[] Attributes { get; set; }

 

var Attributes: Object... { get{} set{} }

 

Property Attributes() As Object()

Privileges

Gets or sets a list of user access privileges. It is up to the client application to interpret these rules and to use them.

 

property Privileges: array of String read write;

 

String[] Privileges { get; set; }

 

var Privileges: String... { get{} set{} }

 

Property Privileges() As String()

SessionID

Gets or sets the user's session Id.

 

property SessionID: String read write;

 

String SessionID { get; set; }

 

var SessionID: String { get{} set{} }

 

Property SessionID() As String

UserData

Gets or sets a binary blob containing user information. For example this field can store user's photo etc.

 

property UserData: Binary read write;

 

Binary UserData { get; set; }

 

var UserData: Binary { get{} set{} }

 

Property UserData() As Binary

UserID

Gets or sets user Id, for example full user name.

 

property UserID: String read write;

 

String UserID { get; set; }

 

var UserID: String { get{} set{} }

 

Property UserID() As String

 

constructor

Creates a new instance of the UserInfo class.

 

constructor

 

UserInfo()

 

init()

 

Sub New()

GetAttributeCount    (declared in ComplexType)

 

method GetAttributeCount: Int32

 

Int32 GetAttributeCount()

 

func GetAttributeCount() -> Int32

 

Function GetAttributeCount() As Int32

GetAttributeName    (declared in ComplexType)

 

method GetAttributeName(index: Int32): String

 

String GetAttributeName(Int32 index)

 

func GetAttributeName(_ index: Int32) -> String

 

Function GetAttributeName(index As Int32) As String

Parameters:

  • index:

GetAttributeValue    (declared in ComplexType)

 

method GetAttributeValue(index: Int32): String

 

String GetAttributeValue(Int32 index)

 

func GetAttributeValue(_ index: Int32) -> String

 

Function GetAttributeValue(index As Int32) As String

Parameters:

  • index:

ReadComplex

 

method ReadComplex(serializer: Serializer)

 

void ReadComplex(Serializer serializer)

 

func ReadComplex(_ serializer: Serializer)

 

Sub ReadComplex(serializer As Serializer)

Parameters:

  • serializer:

TriggerPropertyChanged  protected    (declared in ComplexType)

 

method TriggerPropertyChanged(propertyName: String)

 

void TriggerPropertyChanged(String propertyName)

 

func TriggerPropertyChanged(_ propertyName: String)

 

Sub TriggerPropertyChanged(propertyName As String)

Parameters:

  • propertyName:

WriteComplex

 

method WriteComplex(serializer: Serializer)

 

void WriteComplex(Serializer serializer)

 

func WriteComplex(_ serializer: Serializer)

 

Sub WriteComplex(serializer As Serializer)

Parameters:

  • serializer:

 

PropertyChanged    (declared in ComplexType)

 

event PropertyChanged: PropertyChangedEventHandler

 

delegate PropertyChangedEventHandler PropertyChanged()

 

__event PropertyChangedEventHandler: PropertyChanged!

 

Event PropertyChanged As PropertyChangedEventHandler