23 lines
595 B
C#
23 lines
595 B
C#
|
|
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
|
|||
|
|
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);
|
|||
|
|
}
|
|||
|
|
}
|