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 : Message
- Inheritance
-
RequestMessage
- Derived
- Inherited Members
Constructors
RequestMessage(ServiceName, string, string)
Initializes a new instance of the RequestMessage class.
protected RequestMessage(ServiceName serviceName, string username, string methodName)
Parameters
serviceName
ServiceNameName of the service.
username
stringAuthentication username.
methodName
stringThe name of the authentication method.
Properties
BufferCapacity
Gets the size of the message in bytes.
protected override int BufferCapacity { get; }
Property Value
- int
The size of the messages in bytes.
MessageName
public override string MessageName { get; }
Property Value
MessageNumber
public override byte MessageNumber { get; }
Property Value
MethodName
Gets the name of the authentication method.
public virtual string MethodName { get; }
Property Value
- string
The name of the method.
ServiceName
Gets the name of the service as ASCII encoded byte array.
public byte[] ServiceName { get; }
Property Value
- byte[]
The name of the service.
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()
public override string ToString()