/// <summary> /// Creates a new instace of the HipRecord class /// </summary> /// <param name="name"> Name of the record </param> /// <param name="timeToLive"> Seconds the record should be cached at most </param> /// <param name="algorithm"> Algorithm of the key </param> /// <param name="hit"> Host identity tag </param> /// <param name="publicKey"> Binary data of the public key </param> /// <param name="rendezvousServers"> Possible rendezvous servers </param> public HipRecord(string name, int timeToLive, IpSecKeyRecord.IpSecAlgorithm algorithm, byte[] hit, byte[] publicKey, List <string> rendezvousServers) : base(name, RecordType.Hip, RecordClass.INet, timeToLive) { Algorithm = algorithm; Hit = hit ?? new byte[] { }; PublicKey = publicKey ?? new byte[] { }; RendezvousServers = rendezvousServers ?? new List <string>(); }
/// <summary> /// Creates a new instace of the HipRecord class /// </summary> /// <param name="name"> Name of the record </param> /// <param name="timeToLive"> Seconds the record should be cached at most </param> /// <param name="algorithm"> Algorithm of the key </param> /// <param name="hit"> Host identity tag </param> /// <param name="publicKey"> Binary data of the public key </param> /// <param name="rendezvousServers"> Possible rendezvous servers </param> public HipRecord(DomainName name, int timeToLive, IpSecKeyRecord.IpSecAlgorithm algorithm, byte[] hit, byte[] publicKey, List <DomainName> rendezvousServers) : base(name, RecordType.Hip, RecordClass.INet, timeToLive) { Algorithm = algorithm; Hit = hit ?? Array.Empty <byte>(); PublicKey = publicKey ?? Array.Empty <byte>(); RendezvousServers = rendezvousServers ?? new List <DomainName>(); }