Class RequestMessagePublicKey
- Namespace
- Renci.SshNet.Messages.Authentication
- Assembly
- Renci.SshNet.dll
Represents "publickey" SSH_MSG_USERAUTH_REQUEST message.
public class RequestMessagePublicKey : RequestMessage
Inheritance
Inherited Members
Constructors
RequestMessagePublicKey(ServiceName, string, string, byte[])
Initializes a new instance of the Renci.SshNet.Messages.Authentication.RequestMessagePublicKey class.
public RequestMessagePublicKey(ServiceName serviceName, string username, string keyAlgorithmName, byte[] keyData)
Parameters
serviceName
ServiceName-
Name of the service.
username
string-
Authentication username.
keyAlgorithmName
string-
Name of private key algorithm.
keyData
byte[]-
Private key data.
RequestMessagePublicKey(ServiceName, string, string, byte[], byte[])
Initializes a new instance of the Renci.SshNet.Messages.Authentication.RequestMessagePublicKey class.
public RequestMessagePublicKey(ServiceName serviceName, string username, string keyAlgorithmName, byte[] keyData, byte[] signature)
Parameters
serviceName
ServiceName-
Name of the service.
username
string-
Authentication username.
keyAlgorithmName
string-
Name of private key algorithm.
keyData
byte[]-
Private key data.
signature
byte[]-
Private key signature.
Properties
BufferCapacity
Gets the size of the message in bytes.
protected override int BufferCapacity { get; }
Property Value
PublicKeyAlgorithmName
Gets the name of the public key algorithm as ASCII encoded byte array.
public byte[] PublicKeyAlgorithmName { get; }
Property Value
- byte[]
PublicKeyData
Gets the public key data.
public byte[] PublicKeyData { get; }
Property Value
- byte[]
Signature
Gets or sets public key signature.
public byte[] Signature { get; set; }
Property Value
- byte[]
Methods
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.