<PackageReference Include="SSH.NET" Version="2024.0.0" />

BigInteger

Represents an arbitrarily large signed integer.
using Renci.SshNet.Common; using System; using Renci.SshNet.Common; using System; namespace Renci.SshNet.Messages.Authentication { public abstract class RequestMessage : Message { internal const int AuthenticationMessageCode = 50; private readonly byte[] _serviceName = serviceName.ToArray(); private readonly byte[] _userName = SshData.Utf8.GetBytes(username); private readonly byte[] _methodNameBytes = SshData.Ascii.GetBytes(methodName); private readonly string _methodName = methodName; public override string MessageName => "SSH_MSG_USERAUTH_REQUEST"; public override byte MessageNumber => 50; public byte[] Username => _userName; public byte[] ServiceName => _serviceName; public virtual string MethodName => _methodName; protected override int BufferCapacity => base.BufferCapacity + 4 + Username.Length + 4 + ServiceName.Length + 4 + _methodNameBytes.Length; protected RequestMessage(ServiceName serviceName, string username, string methodName) { } protected override void LoadData() { throw new InvalidOperationException("Load data is not supported."); } protected override void SaveData() { WriteBinaryString(_userName); WriteBinaryString(_serviceName); WriteBinaryString(_methodNameBytes); } internal override void Process(Session session) { throw new NotImplementedException(); } public override string ToString() { return "SSH_MSG_USERAUTH_REQUEST (" + MethodName + ")"; } } }