RecipientInfo.cs 919 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // RecipientInfo.cs - System.Security.Cryptography.Pkcs.RecipientInfo
  3. //
  4. // Author:
  5. // Sebastien Pouliot ([email protected])
  6. //
  7. // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
  8. //
  9. #if NET_1_2
  10. using System;
  11. namespace System.Security.Cryptography.Pkcs {
  12. public abstract class RecipientInfo {
  13. private RecipientInfoType _type;
  14. // constructors
  15. protected RecipientInfo () {}
  16. // documented as protected at http://longhorn.msdn.microsoft.com
  17. // but not present in the 1.2 beta SDK
  18. internal RecipientInfo (RecipientInfoType recipInfoType)
  19. {
  20. _type = recipInfoType;
  21. }
  22. // properties
  23. public abstract byte[] EncryptedKey { get; }
  24. public abstract AlgorithmIdentifier KeyEncryptionAlgorithm { get; }
  25. public abstract SubjectIdentifier RecipientIdentifier { get; }
  26. public RecipientInfoType Type {
  27. get { return _type; }
  28. }
  29. public abstract int Version { get; }
  30. }
  31. }
  32. #endif