Class CurrentUser
Contains information about the current user.
Inheritance
System.Object
CurrentUser
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 SourceCurrentUser(AuthenticationResponse, String)
Initializes a new instance of the CurrentUser class.
Declaration
public CurrentUser(AuthenticationResponse authenticationResponse, string password)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationResponse | authenticationResponse | |
System.String | password | The password. |
Properties
View SourceAccessRights
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. |
AuthenticationResponse
Gets the AuthenticationResponse used to create this user.
Declaration
public AuthenticationResponse AuthenticationResponse { get; }
Property Value
Type | Description |
---|---|
AuthenticationResponse |
CultureInfo
Define additional data for System.Security.Principal.IPrincipal.
Declaration
public CultureInfo CultureInfo { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
Id
Gets the id of the current user.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Identity
Declaration
public IIdentity Identity { get; }
Property Value
Type | Description |
---|---|
System.Security.Principal.IIdentity |
Name
Gets the name of the current user.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Password
Gets the user password.
Declaration
public string Password { get; }
Property Value
Type | Description |
---|---|
System.String | The user password. |
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 SourceDispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
IsInRole(String)
Declaration
public bool IsInRole(string role)
Parameters
Type | Name | Description |
---|---|---|
System.String | role |
Returns
Type | Description |
---|---|
System.Boolean |
Update(AuthenticationResponse, String)
Updates the AuthenticationResponse and Password properties.
Declaration
public void Update(AuthenticationResponse userData, string password)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationResponse | userData | |
System.String | password | The users password. |
Remarks
Only for internal usage.
Implements
System.Security.Principal.IPrincipal
System.IDisposable