UseKey.cs 568 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.IdentityModel.Tokens;
  3. namespace System.IdentityModel.Protocols.WSTrust
  4. {
  5. public class UseKey
  6. {
  7. public SecurityKeyIdentifier SecurityKeyIdentifier { get; private set; }
  8. public SecurityToken Token { get; private set; }
  9. public UseKey () : this (null, null)
  10. { }
  11. public UseKey (SecurityKeyIdentifier ski)
  12. : this (ski, null)
  13. { }
  14. public UseKey (SecurityToken token)
  15. : this (null, token)
  16. { }
  17. public UseKey (SecurityKeyIdentifier ski, SecurityToken token) {
  18. SecurityKeyIdentifier = ski;
  19. Token = token;
  20. }
  21. }
  22. }