Class RequestMessagePublicKey
- Namespace
- Renci.SshNet.Messages.Authentication
- Assembly
- Renci.SshNet.dll
Represents "publickey" SSH_MSG_USERAUTH_REQUEST message.
public class RequestMessagePublicKey : RequestMessageInheritance
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
serviceNameServiceName-
Name of the service.
usernamestring-
Authentication username.
keyAlgorithmNamestring-
Name of private key algorithm.
keyDatabyte[]-
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
serviceNameServiceName-
Name of the service.
usernamestring-
Authentication username.
keyAlgorithmNamestring-
Name of private key algorithm.
keyDatabyte[]-
Private key data.
signaturebyte[]-
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.