Class RequestMessage
- Namespace
- Renci.SshNet.Messages.Authentication
- Assembly
- Renci.SshNet.dll
Represents SSH_MSG_USERAUTH_REQUEST message. Server as a base message for other user authentication requests.
public abstract class RequestMessage : MessageInheritance
Derived
Inherited Members
Constructors
RequestMessage(ServiceName, string, string)
Initializes a new instance of the Renci.SshNet.Messages.Authentication.RequestMessage class.
protected RequestMessage(ServiceName serviceName, string username, string methodName)Parameters
- serviceNameServiceName
- 
Name of the service. 
- usernamestring
- 
Authentication username. 
- methodNamestring
- 
The name of the authentication method. 
Properties
BufferCapacity
Gets the size of the message in bytes.
protected override int BufferCapacity { get; }Property Value
MessageName
Gets the message name as defined in RFC 4250.
public override string MessageName { get; }Property Value
MessageNumber
Gets the message number as defined in RFC 4250.
public override byte MessageNumber { get; }Property Value
MethodName
Gets the name of the authentication method.
public virtual string MethodName { get; }Property Value
ServiceName
Gets the name of the service as ASCII encoded byte array.
public byte[] ServiceName { get; }Property Value
- byte[]
Username
Gets authentication username as UTF-8 encoded byte array.
public byte[] Username { get; }Property Value
- byte[]
Methods
LoadData()
Called when type specific data need to be loaded.
protected override void LoadData()SaveData()
Called when type specific data need to be saved.
protected override void SaveData()ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
- 
A string that represents the current object.