RequestedProofToken.cs 729 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.IdentityModel.Tokens;
  3. namespace System.IdentityModel.Protocols.WSTrust
  4. {
  5. public class RequestedProofToken
  6. {
  7. public string ComputedKeyAlgorithm { get; private set; }
  8. public ProtectedKey ProtectedKey { get; private set; }
  9. public RequestedProofToken (ProtectedKey protectedKey) {
  10. ProtectedKey = protectedKey;
  11. }
  12. public RequestedProofToken (Byte[] secret) {
  13. ProtectedKey = new ProtectedKey (secret);
  14. }
  15. public RequestedProofToken (string computedKeyAlgorithm) {
  16. ComputedKeyAlgorithm = computedKeyAlgorithm;
  17. }
  18. public RequestedProofToken (Byte[] secret, EncryptingCredentials wrappingCredentials) {
  19. ProtectedKey = new ProtectedKey (secret, wrappingCredentials);
  20. }
  21. }
  22. }