Пример #1
0
        public IEnumerable<KrbETypeInfo2Entry> DecodeETypeInfo2()
        {
            if (Type != PaDataType.PA_ETYPE_INFO2)
            {
                throw new InvalidOperationException($"Cannot parse EType Info because type is {Type}");
            }

            var info = KrbETypeInfo2.Decode(Value, AsnEncodingRules.DER);

            return info.ETypeInfo;
        }
Пример #2
0
        public IEnumerable <KrbETypeInfo2Entry> DecodeETypeInfo2()
        {
            if (this.Type != PaDataType.PA_ETYPE_INFO2)
            {
                throw new InvalidOperationException($"Cannot parse EType Info because type is {this.Type}");
            }

            var info = KrbETypeInfo2.Decode(this.Value);

            return(info.ETypeInfo);
        }