Xceed .NET Libraries Documentation
Xceed.SSH.Client Assembly / Xceed.SSH.Client Namespace / HostKeyReceivedEventArgs Class


In This Topic
    HostKeyReceivedEventArgs Class
    In This Topic
    Provides information on a server's public key when it is received and allows to accept or reject the key.
    Object Model
    HostKeyReceivedEventArgs ClassISSHPublicKeyAlgorithm Interface
    Syntax
    'Declaration
     
    
    Public Class HostKeyReceivedEventArgs 
       Inherits SSHEventArgs
    'Usage
     
    
    Dim instance As HostKeyReceivedEventArgs
    public class HostKeyReceivedEventArgs : SSHEventArgs 
    Example
    Inheritance Hierarchy

    System.Object
       System.EventArgs
          Xceed.SSH.Client.SSHEventArgs
             Xceed.SSH.Client.HostKeyReceivedEventArgs

    Public Constructors
     NameDescription
    Public ConstructorInitializes a new instance of the HostKeyReceivedEventArgs argument class.  
    Top
    Public Properties
     NameDescription
    Public PropertyGets or sets a System.Boolean value that indicates whether the server's public key should be accepted or rejected by the client. Default is true.  
    Public PropertyGets a System.Byte array that represents the server's raw public key.  
    Public PropertyGets a System.Int32 that represents the length, in bits, of the public key that the raw host key data represents.  
    Public PropertyGets a System.Byte array that represents the server's public key, computed into a MD5 hash value.  
    Public PropertyGets a System.String that represents the server's public key, computed into a MD5 hash value.  
    Public Property  
    Public Property  
    Public PropertyGets a System.String that represents the algorithm used to compute the server's public key.  
    Public PropertyGets a ISSHPublicKeyAlgorithm object that represents the algorithm used to compute the server's public key.  
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Standard: netstandard2.0, netstandard2.1

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also