[This is preliminary documentation and is subject to change.]
The User type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | User(Credentials, AuthenticationToken, String, Rights) | Initializes a new instance of the User class |
![]() | User(Credentials, AuthenticationToken, UserStatus, String, String, Rights) | Initializes a new instance of the User class |
Methods
Name | Description | |
---|---|---|
![]() | ___update_status |
Framework-internal. Do not call
|
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | Invalidate |
Makes user invalid
|
![]() | IsInRole |
Determines whether the current principal belongs to the specified role.
This method implements IPrincipal and has little application in NFX framework context
as NFX permissions are more granular than just boolean. This method really checks user kind (User/Admin/Sys).
Confusion comes from the fact that what Microsoft calls role really is just a single named permission -
a role is a named permission set in NFX.
|
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | OnDeserialization | |
![]() | ToString | (Overrides ![]() |
Extension Methods
Properties
Name | Description | |
---|---|---|
![]() | AuthenticationType |
Implementation of IIdentity interface
|
![]() | AuthToken | |
![]() | Credentials | |
![]() | Description | |
![]() ![]() | Fake |
Returns default instance of the fake user that has no rights
|
![]() | Identity |
Implementation of IPrincipal interface
|
![]() | IsAuthenticated |
Implementation of IIdentity interface. Checks to see if user is not in invalid status
|
![]() | Item |
Authorizes user to specified permission.
Note: this authorization call returns AccessLevel object that may contain a complex data structure.
The final assertion of user's ability to perform a certain action is encapsulated in Permission.Check() method.
Call Permission.AuthorizeAndGuardAction(MemberInfo, ISession) to guard classes and methods from unauthorized access
|
![]() | Name | |
![]() | Rights |
Returns data bag that contains user rights. This is a framework-only internal property
which should not be used by application developers. This bag may get populated fully-or-partially
by ISecurityManager implementation. Use User[permission] indexer or Application.SecurityManager.Authorize()
to obtain AccessLevel
|
![]() | Status | |
![]() | StatusTimeStampUTC |
Captures timestamp when this user was set to current status (created/set rights)
Security managers may elect to reftech user rights after some period
|
See Also