Table of Contents

Class PublicKey

Namespace
Tmds.Ssh
Assembly
Tmds.Ssh.dll

Represents an SSH public key.

public sealed class PublicKey : IEquatable<PublicKey>
Inheritance
PublicKey
Implements
Inherited Members

Properties

SHA256FingerPrint

Gets the SHA256 fingerprint of the key.

public string SHA256FingerPrint { get; }

Property Value

string

Type

Gets the key type.

public string Type { get; }

Property Value

string

Methods

Equals(PublicKey?)

Determines whether this key equals another.

public bool Equals(PublicKey? other)

Parameters

other PublicKey

The key to compare.

Returns

bool

true if keys are equal.

GetHashCode()

Returns the hash code for this key.

public override int GetHashCode()

Returns

int

Hash code.

ToString()

Returns the key in OpenSSH string key format.

public override string ToString()

Returns

string

String representation of the key.