2021-05-27 15:30:04 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Common
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IUser
|
|
|
|
|
|
{
|
|
|
|
|
|
string UserName { get; } /// = name, alias, abbreviation
|
|
|
|
|
|
string FullName { get; } /// = description
|
|
|
|
|
|
string Tag { get; }
|
|
|
|
|
|
int Number { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// Access rights
|
2022-05-23 09:53:48 +00:00
|
|
|
|
bool IsPowerUser();
|
2021-05-27 15:30:04 +00:00
|
|
|
|
bool IsMemberOf(GID group);
|
|
|
|
|
|
bool IsMemberOf(GID[] groups);
|
|
|
|
|
|
bool IsCorrectPassword(string password);
|
|
|
|
|
|
|
|
|
|
|
|
/// Password complexity, history, etc.
|
|
|
|
|
|
bool IsPasswordExpired();
|
|
|
|
|
|
bool IsPasswordUsedInPast(string passwordCandidate);
|
|
|
|
|
|
void SetPassword(string password);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|