Beispiel #1
0
 static Security()
 {
     Security instance = new Random();
     map.Add("RANDOM", instance);
     map.Add("0", instance);
     instance = new NullSecurity();
     map.Add("NULLSECURITY", instance);
     map.Add("1", instance);
     instance = new ARCFourSecurity();
     map.Add("ARCFOURSECURITY", instance);
     map.Add("2", instance);
     instance = new MD5Hash();
     map.Add("MD5HASH", instance);
     map.Add("3", instance);
     instance = new HMAC_MD5Hash();
     map.Add("HMAC_MD5HASH", instance);
     map.Add("4", instance);
     instance = new CompressARCFourSecurity();
     map.Add("COMPRESSARCFOURSECURITY", instance);
     map.Add("5", instance);
     instance = new DecompressARCFourSecurity();
     map.Add("DECOMPRESSARCFOURSECURITY", instance);
     map.Add("6", instance);
     instance = new DecompressSecurity();
     map.Add("DECOMPRESSSECURITY", instance);
     map.Add("7", instance);
 }
 public override Object Clone()
 {
     DecompressARCFourSecurity o = new DecompressARCFourSecurity();
     o.arc4 = (ARCFourSecurity)arc4.Clone();
     o.decompress = (Decompress)decompress.Clone();
     return o;
 }