36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using Sarand.Net.Standard.Base.Bus;
|
|
using Sarand.Net.Standard.Base.Security;
|
|
using System;
|
|
|
|
namespace Sarand.Net.Standard.Dbas.Security
|
|
{
|
|
//=======================================================================
|
|
class SaSecurityItem_Dbas : SaSecurityItem
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SaSecurityItem_Dbas (SysId id, SaSecurity.ItemType securityItemType, ushort flags) :
|
|
base(id, securityItemType)
|
|
{
|
|
Flags = flags;
|
|
}
|
|
|
|
public void SetPasswordSalt(String passwordSalt)
|
|
{
|
|
base.PasswordSalt = passwordSalt;
|
|
}
|
|
public void SetPasswordHash(String passwordHash)
|
|
{
|
|
base.PasswordHash = passwordHash;
|
|
}
|
|
[Obsolete("Avoid using the original C++ password encryption - switch to hashed password instead.")]
|
|
public void SetPasswordEncrypted(String passwordEncrypted)
|
|
{
|
|
base.PasswordEncrypted = passwordEncrypted;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|