2 // EncryptedType.cs - EncryptedType implementation for XML Encryption
3 // http://www.w3.org/2001/04/xmlenc#sec-EncryptedType
6 // Tim Coleman (tim@timcoleman.com)
8 // Copyright (C) Tim Coleman, 2004
14 namespace System.Security.Cryptography.Xml {
15 public abstract class EncryptedType {
19 CipherData cipherData;
21 EncryptionMethod encryptionMethod;
22 EncryptionProperties encryptionProperties;
32 protected EncryptedType ()
36 encryptionMethod = null;
37 encryptionProperties = new EncryptionProperties ();
44 #endregion // Constructors
48 public virtual CipherData CipherData {
49 get { return cipherData; }
50 set { cipherData = value; }
53 public virtual string Encoding {
54 get { return encoding; }
55 set { encoding = value; }
58 public virtual EncryptionMethod EncryptionMethod {
59 get { return encryptionMethod; }
60 set { encryptionMethod = value; }
63 public virtual EncryptionProperties EncryptionProperties {
64 get { return encryptionProperties; }
65 set { encryptionProperties = value; }
68 public virtual string Id {
73 public KeyInfo KeyInfo {
74 get { return keyInfo; }
75 set { keyInfo = value; }
78 public virtual string MimeType {
79 get { return mimeType; }
80 set { mimeType = value; }
83 public virtual string Type {
88 #endregion // Properties
92 public void AddProperty (EncryptionProperty ep)
94 EncryptionProperties.Add (ep);
97 public abstract XmlElement GetXml ();
98 public abstract void LoadXml (XmlElement value);
100 #endregion // Methods