using System;
using System.Collections.Generic;
namespace Renci.SshNet.Messages.Authentication
{
///
/// Represents SSH_MSG_USERAUTH_INFO_RESPONSE message.
///
[Message("SSH_MSG_USERAUTH_INFO_RESPONSE", 61)]
internal sealed class InformationResponseMessage : Message
{
///
/// Gets authentication responses.
///
public IList Responses { get; private set; }
///
/// Gets the size of the message in bytes.
///
///
/// -1 to indicate that the size of the message cannot be determined,
/// or is too costly to calculate.
///
protected override int BufferCapacity
{
get { return -1; }
}
///
/// Initializes a new instance of the class.
///
public InformationResponseMessage()
{
Responses = new List();
}
///
/// Called when type specific data need to be loaded.
///
protected override void LoadData()
{
throw new NotImplementedException();
}
///
/// Called when type specific data need to be saved.
///
protected override void SaveData()
{
Write((uint) Responses.Count);
foreach (var response in Responses)
{
Write(response);
}
}
internal override void Process(Session session)
{
throw new NotImplementedException();
}
}
}