QCloudCredentials.cs 875 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace COSXML.Auth
  5. {
  6. public class QCloudCredentials
  7. {
  8. public QCloudCredentials(string secretId, string signKey, string keyTime)
  9. {
  10. this.SecretId = secretId;
  11. this.SignKey = signKey;
  12. this.KeyTime = keyTime;
  13. }
  14. public string SecretId
  15. { get; private set; }
  16. public string SignKey
  17. { get; private set; }
  18. public string KeyTime
  19. { get; private set; }
  20. }
  21. public class SessionQCloudCredentials : QCloudCredentials
  22. {
  23. public SessionQCloudCredentials(string secretId, string signKey, string token, string keyTime) :
  24. base(secretId, signKey, keyTime)
  25. {
  26. this.Token = token;
  27. }
  28. public string Token
  29. { get; private set; }
  30. }
  31. }