Пример #1
0
 /// <summary>
 ///   Creates a new instance of the TKeyRecord class
 /// </summary>
 /// <param name="name"> Name of the record </param>
 /// <param name="algorithm"> Algorithm of the key </param>
 /// <param name="inception"> Date from which the key is valid </param>
 /// <param name="expiration"> Date to which the key is valid </param>
 /// <param name="mode"> Mode of transaction </param>
 /// <param name="error"> Error field </param>
 /// <param name="key"> Binary data of the key </param>
 /// <param name="otherData"> Binary other data </param>
 public TKeyRecord(DomainName name, TSigAlgorithm algorithm, DateTime inception, DateTime expiration, TKeyMode mode, ReturnCode error, byte[] key, byte[] otherData)
     : base(name, RecordType.TKey, RecordClass.Any, 0)
 {
     Algorithm  = algorithm;
     Inception  = inception;
     Expiration = expiration;
     Mode       = mode;
     Error      = error;
     Key        = key ?? new byte[] { };
     OtherData  = otherData ?? new byte[] { };
 }
Пример #2
0
		public TKeyRecord(string name, TSigAlgorithm algorithm, DateTime inception, DateTime expiration, TKeyMode mode, ReturnCode error, byte[] key, byte[] otherData)
			: base(name, RecordType.TKey, RecordClass.Any, 0)
		{
			Algorithm = algorithm;
			Inception = inception;
			Expiration = expiration;
			Mode = mode;
			Error = error;
			Key = key ?? new byte[] { };
			OtherData = otherData ?? new byte[] { };
		}