示例#1
0
 public ExtendedSerialNumber()
 {
     serialNumber     = 0;
     monthYear        = "";
     type             = 0;
     manufacturerCode = new ManufacturerCode();
 }
示例#2
0
 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]);
 }
示例#3
0
 public CertificateRequestID()
 {
     requestSerialNumber = 0;
     requestMonthYear = new byte[2];
     crIdentifier = 0;
     manufacturerCode = new ManufacturerCode();
 }
示例#4
0
 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]);
 }
示例#5
0
 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]);
 }
示例#6
0
 public ExtendedSerialNumber()
 {
     serialNumber = 0;
     monthYear = "";
     type = 0;
     manufacturerCode = new ManufacturerCode();
 }
示例#7
0
 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]);
 }
示例#8
0
 public CertificateRequestID()
 {
     requestSerialNumber = 0;
     requestMonthYear    = new byte[2];
     crIdentifier        = 0;
     manufacturerCode    = new ManufacturerCode();
 }
示例#9
0
        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]);
        }
示例#10
0
        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]);
        }