public ExtendedSerialNumber() { serialNumber = 0; monthYear = ""; type = 0; manufacturerCode = new ManufacturerCode(); }
public ExtendedSerialNumber(byte[] value) { serialNumber = ConvertionClass.convertIntoUnsigned4ByteInt(ConvertionClass.arrayCopy(value, 0, 4)); monthYear = ConvertionClass.convertBCDStringIntoString(ConvertionClass.arrayCopy(value, 4, 2)); type = value[6]; manufacturerCode = new ManufacturerCode(value[7]); }
public CertificateRequestID() { requestSerialNumber = 0; requestMonthYear = new byte[2]; crIdentifier = 0; manufacturerCode = new ManufacturerCode(); }
public CertificateRequestID(byte[] value) { requestSerialNumber = ConvertionClass.convertIntoUnsigned4ByteInt(ConvertionClass.arrayCopy(value, 0, 4)); requestMonthYear = ConvertionClass.arrayCopy(value, 4, 2); crIdentifier = value[6]; manufacturerCode = new ManufacturerCode(value[7]); }
public ExtendedSerialNumber(string value) { System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding(); byte[] _bytes; _bytes = enc.GetBytes(value); serialNumber = ConvertionClass.convertIntoUnsigned4ByteInt(ConvertionClass.arrayCopy(_bytes, 0, 4)); monthYear = ConvertionClass.convertBCDStringIntoString(ConvertionClass.arrayCopy(_bytes, 4, 2)); type = _bytes[6]; manufacturerCode = new ManufacturerCode(_bytes[7]); }