www.pudn.com > WorkFlowserver.rar > accountsIdentity.cs
using System;
using System.Data;
using System.Text;
using System.Collections;
using System.Security.Cryptography;
using WalkWatch.EPos.DAL;
namespace WalkWatch.EPos.BLL
{
///
/// AccountsIdentity 此类只支持分供方系统,为临时挂接asp权限使用
///
public class AccountsIdentity: WalkWatch.EPos.BLL.BizObject, System.Security.Principal.IIdentity
{
private string fullName;
private string shortName;
private int userId;
//实现接口
//string AuthenticationType {get;}
//bool IsAuthenticated {get;}
//string Name {get;}
public string AuthenticationType
{
get
{
return "EPos平台检验";
}
set
{
// 设置检验类型
}
}
public bool IsAuthenticated
{
get
{
return true;
}
}
public string Name
{
get
{
return userId.ToString();
}
}
///
/// 此方法为临时处里,没有返回属性值
///
///
public AccountsIdentity( int currentUserID )
{
fullName = "EPos代理";
shortName = "EPos代理";
userId = currentUserID;
}
public int UserId
{
get
{
return userId;
}
}
}
}