ProtectedKey.cs 522 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.IdentityModel.Tokens;
  3. namespace System.IdentityModel.Protocols.WSTrust
  4. {
  5. public class ProtectedKey
  6. {
  7. private byte[] secret;
  8. public EncryptingCredentials WrappingCredentials { get; private set; }
  9. public ProtectedKey (byte[] secret) {
  10. this.secret = secret;
  11. }
  12. public ProtectedKey (byte[] secret, EncryptingCredentials wrappingCredentials) {
  13. this.secret = secret;
  14. WrappingCredentials = wrappingCredentials;
  15. }
  16. public byte[] GetKeyBytes () {
  17. return secret;
  18. }
  19. }
  20. }