Show / Hide Table of Contents

Class CurrentUser

Contains information about the current user.

Inheritance
System.Object
CurrentUser
Implements
ILocalPrincipal
System.Security.Principal.IPrincipal
System.IDisposable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.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.

System.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
System.Collections.Generic.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 System.Security.Principal.IPrincipal.

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

Id

Gets the id of the current user.

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

Identity

Declaration
public IIdentity Identity { get; }
Property Value
Type Description
System.Security.Principal.IIdentity
View Source

Name

Gets the name of the current user.

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

Password

Gets the user password.

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

The user password.

View Source

Properties

Gets a dictionary of properties.

Declaration
public Dictionary<string, object> Properties { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Object>

Methods

View Source

Dispose()

Declaration
public void Dispose()
View Source

Dispose(Boolean)

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

IsInRole(String)

Declaration
public bool IsInRole(string role)
Parameters
Type Name Description
System.String role
Returns
Type Description
System.Boolean
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.

System.String password

The users password.

Remarks

Only for internal usage.

Implements

ILocalPrincipal
System.Security.Principal.IPrincipal
System.IDisposable

Extension Methods

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