Show / Hide Table of Contents

Class CurrentUser

Contains information about the current user.

Inheritance
object
CurrentUser
Implements
ILocalPrincipal
IPrincipal
IDisposable
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Security
Assembly: Sartorius.SAF.dll
Syntax
[Obsolete("Use the new IAuthenticationProvider API")]
public class CurrentUser : ILocalPrincipal, IPrincipal, IDisposable

Constructors

View Source

CurrentUser(AuthenticationResponse, string)

Initializes a new instance of the CurrentUser class.

Declaration
public CurrentUser(AuthenticationResponse authenticationResponse, string password)
Parameters
Type Name Description
AuthenticationResponse authenticationResponse

The AuthenticationResponse.

string password

The password.

Properties

View Source

AccessRights

Gets or sets the system access rights.

Declaration
public List<AccessRight> AccessRights { get; set; }
Property Value
Type Description
List<AccessRight>

The system access rights.

View Source

AuthenticationResponse

Gets the AuthenticationResponse used to create this user.

Declaration
public AuthenticationResponse AuthenticationResponse { get; }
Property Value
Type Description
AuthenticationResponse
View Source

CultureInfo

Define additional data for IPrincipal.

Declaration
public CultureInfo CultureInfo { get; }
Property Value
Type Description
CultureInfo
View Source

Id

Gets the id of the current user.

Declaration
public string Id { get; }
Property Value
Type Description
string
View Source

Identity

Defines the basic functionality of an identity object.

Declaration
public IIdentity Identity { get; }
Property Value
Type Description
IIdentity
View Source

Name

Gets the name of the current user.

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

Password

Gets the user password.

Declaration
public string Password { get; }
Property Value
Type Description
string

The user password.

View Source

Properties

Gets a dictionary of properties.

Declaration
public Dictionary<string, object> Properties { get; }
Property Value
Type Description
Dictionary<string, object>

Methods

View Source

Dispose()

Provides a mechanism for releasing unmanaged resources.

Declaration
public void Dispose()
View Source

Dispose(bool)

Provides a mechanism for releasing unmanaged resources.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing
View Source

IsInRole(string)

Defines the basic functionality of an identity object.

Declaration
public bool IsInRole(string role)
Parameters
Type Name Description
string role
Returns
Type Description
bool
View Source

Update(AuthenticationResponse, string)

Updates the AuthenticationResponse and Password properties.

Declaration
public void Update(AuthenticationResponse userData, string password)
Parameters
Type Name Description
AuthenticationResponse userData

The AuthenticationResponse.

string password

The users password.

Remarks

Only for internal usage.

Implements

ILocalPrincipal
IPrincipal
IDisposable

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX