SecurityTokenDescriptor.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Threading.Tasks;
  5. using System.IdentityModel.Protocols.WSTrust;
  6. using System.Security.Claims;
  7. namespace System.IdentityModel.Tokens
  8. {
  9. public class SecurityTokenDescriptor
  10. {
  11. private Dictionary<string, Object> properties = new Dictionary<string, object> ();
  12. public string AppliesToAddress { get; set; }
  13. public SecurityKeyIdentifierClause AttachedReference { get; set; }
  14. public AuthenticationInformation AuthenticationInfo { get; set; }
  15. public EncryptingCredentials EncryptingCredentials { get; set; }
  16. public Lifetime Lifetime { get; set; }
  17. public ProofDescriptor Proof { get; set; }
  18. public Dictionary<string, Object> Properties { get { return properties; } }
  19. public string ReplyToAddress { get; set; }
  20. public SigningCredentials SigningCredentials { get; set; }
  21. public ClaimsIdentity Subject { get; set; }
  22. public SecurityToken Token { get; set; }
  23. public string TokenIssuerName { get; set; }
  24. public string TokenType { get; set; }
  25. public SecurityKeyIdentifierClause UnattachedReference { get; set; }
  26. [MonoTODO]
  27. public void AddAuthenticationClaims (string authType) {
  28. throw new NotImplementedException ();
  29. }
  30. [MonoTODO]
  31. public void AddAuthenticationClaims (string authType, DateTime time) {
  32. throw new NotImplementedException ();
  33. }
  34. [MonoTODO]
  35. public virtual void ApplyTo (RequestSecurityTokenResponse response) {
  36. throw new NotImplementedException ();
  37. }
  38. }
  39. }