You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.2 KiB

  1. using System;
  2. namespace Common.Models
  3. {
  4. public class TokenManageModel
  5. {
  6. public string UserName { get; set; }
  7. public string Password { get; set; }
  8. public string AppId { get; set; }
  9. public string ApiAccessKey { get; set; }
  10. public string TokenNo { get; set; }
  11. public string Issuer { get; set; }
  12. public string Audience { get; set; }
  13. public DateTime ExpiresTime { get; set; }
  14. public string SecrateKey { get; set; }
  15. public string tokenUser { get; set; }
  16. //public string tokenUser {
  17. // set {
  18. // _tokenUser = (!string.IsNullOrWhiteSpace(UserName) ? Regex.Replace(UserName, "\\s", "_") : UserName) +
  19. // (!string.IsNullOrWhiteSpace(Password) ? "|" + Password : "") + (!string.IsNullOrWhiteSpace(AppId) ? "|" + AppId : "")
  20. // + (!string.IsNullOrWhiteSpace(ApiAccessKey) ? "|" + ApiAccessKey : "") + (!string.IsNullOrWhiteSpace(SecrateKey) ? "|" + SecrateKey : "")
  21. // + (!string.IsNullOrWhiteSpace(Issuer) ? "|" + Issuer : "") + (!string.IsNullOrWhiteSpace(Audience) ? "|" + Audience : "");
  22. // }
  23. // get { return _tokenUser; }
  24. //}
  25. }
  26. }