Class RequestMessagePublicKey
- Namespace
- Renci.SshNet.Messages.Authentication
- Assembly
- Renci.SshNet.dll
Represents "publickey" SSH_MSG_USERAUTH_REQUEST message.
public class RequestMessagePublicKey : RequestMessage
- Inheritance
-
RequestMessagePublicKey
- Inherited Members
Constructors
RequestMessagePublicKey(ServiceName, string, string, byte[])
Initializes a new instance of the RequestMessagePublicKey class.
public RequestMessagePublicKey(ServiceName serviceName, string username, string keyAlgorithmName, byte[] keyData)
Parameters
serviceName
ServiceNameName of the service.
username
stringAuthentication username.
keyAlgorithmName
stringName of private key algorithm.
keyData
byte[]Private key data.
RequestMessagePublicKey(ServiceName, string, string, byte[], byte[])
Initializes a new instance of the RequestMessagePublicKey class.
public RequestMessagePublicKey(ServiceName serviceName, string username, string keyAlgorithmName, byte[] keyData, byte[] signature)
Parameters
serviceName
ServiceNameName of the service.
username
stringAuthentication username.
keyAlgorithmName
stringName 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
- int
The size of the messages in bytes.
PublicKeyAlgorithmName
Gets the name of the public key algorithm as ASCII encoded byte array.
public byte[] PublicKeyAlgorithmName { get; }
Property Value
- byte[]
The name of the public key algorithm.
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[]
The signature.
Methods
SaveData()
Called when type specific data need to be saved.
protected override void SaveData()
ToString()
public override string ToString()