31 if (vendorCode ==
null)
32 throw new ArgumentNullException(nameof(vendorCode));
33 if (vendorCode.Length != 3)
34 throw new ArgumentException(
"Vendor code must be exactly 3 bytes", nameof(vendorCode));
47 var result =
new byte[8];
68 return $
"VendorCode: {BitConverter.ToString(VendorCode)}, SerialNumber: {SerialNumber}";
uint SerialNumber
Device serial number.
byte[] ToBytes()
Converts the client identification to an 8-byte array for use in the secure channel protocol.
ClientIdentification(byte[] vendorCode, uint serialNumber)
Creates a new ClientIdentification instance.
byte[] VendorCode
Vendor code assigned by the Security Industry Association (SIA).
override string ToString()
Returns a string representation of the client identification.