Table of Contents

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

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

serviceName ServiceName

Name of the service.

username string

Authentication username.

methodName string

The name of the authentication method.

Properties

BufferCapacity

Gets the size of the message in bytes.

protected override int BufferCapacity { get; }

Property Value

int

MessageName

Gets the message name as defined in RFC 4250.

public override string MessageName { get; }

Property Value

string

MessageNumber

Gets the message number as defined in RFC 4250.

public override byte MessageNumber { get; }

Property Value

byte

MethodName

Gets the name of the authentication method.

public virtual string MethodName { get; }

Property Value

string

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.