/// <summary> /// Create an instance. /// </summary> /// <param name="kileContext">The context of the client or server.</param> public KerberosApResponse() { Response = new AP_REP(); }
/// <summary> /// Decode AP Response from bytes /// </summary> /// <param name="buffer">the byte array to be decoded</param> /// <exception cref="System.ArgumentNullException">thrown when input buffer is null</exception> /// <exception cref="System.FormatException">thrown when encounters decoding error</exception> public override void FromBytes(byte[] buffer) { if (null == buffer) { throw new ArgumentNullException("buffer"); } KerberosUtility.OnDumpMessage("KRB5:KrbMessage", "Kerberos Message", KerberosUtility.DumpLevel.WholeMessage, buffer); this.Response = new AP_REP(); Asn1DecodingBuffer decodeBuffer = new Asn1DecodingBuffer(buffer); this.Response.BerDecode(decodeBuffer); }