public static IFastArmor Parse(KrbFastArmor armor)
 {
     switch ((KrbFastArmorType)armor.armor_type.Value)
     {
     case KrbFastArmorType.FX_FAST_ARMOR_AP_REQUEST:
         return(FastArmorApRequest.Parse(armor));
     }
     throw new NotImplementedException();
 }
        public static FastArmorApRequest Parse(KrbFastArmor armor)
        {
            if (armor.armor_type.Value != (long)KrbFastArmorType.FX_FAST_ARMOR_AP_REQUEST)
            {
                throw new Exception();
            }
            var apReq = new AP_REQ();

            apReq.BerDecode(new Asn1DecodingBuffer(armor.armor_value.ByteArrayValue));
            return(new FastArmorApRequest(apReq));
        }