The SshPublicKey type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() ![]() | SshPublicKey(array<Byte>[]()[][]) |
Loads a SSH2 public key from the specified raw data.
|
![]() ![]() | SshPublicKey(Stream) |
Loads a SSH2 public key from the specified stream.
|
![]() ![]() | SshPublicKey(AsymmetricAlgorithm) |
Creates an SSH public key based on the specified RSA or DSA object.
|
![]() ![]() | SshPublicKey(String) |
Loads a SSH2 public key from the specified file.
|
![]() ![]() | SshPublicKey(Certificate) |
Creates a certificate-based SSH key for use with SSH/SFTP client that support X.509 certificate authentication.
|
![]() ![]() | SshPublicKey(CertificateChain) |
Creates a certificate-based SSH key for use with SSH/SFTP client that support X.509 certificate authentication.
|
![]() ![]() | SshPublicKey(PublicKeyInfo) |
Creates an SSH public key based on the specified PublicKeyInfo object.
|
Methods
Name | Description | |
---|---|---|
![]() ![]() | Equals(Object) |
Determines whether the specified object is the same key as the specified key.
(Overrides Object..::..Equals(Object).) |
![]() ![]() | Equals(SshPublicKey) |
Determines whether the specified key is the same key as the specified key.
|
![]() ![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | GetCertificate |
Returns the underlying X509 certificate.
|
![]() ![]() | GetCertificateChain |
Returns the underlying X509 certificate and its chain (for certificate-based keys).
|
![]() ![]() | GetDSAParameters |
Gets the DSA parameters for a DSA key. May only be used for DSA public keys.
|
![]() ![]() | GetHashCode |
A hash function for this type.
(Overrides Object..::..GetHashCode()()()().) |
![]() ![]() | GetPublicKey |
Gets the public key in SSH format (or raw X.509 data of the leaf certificate).
|
![]() ![]() | GetPublicKeyInfo |
Returns the public key info for this key.
|
![]() ![]() | GetRSAParameters |
Gets the RSA parameters for a RSA key. May only be used for RSA public keys.
|
![]() ![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() ![]() | LoadPublicKeys |
Loads public keys in ~/.ssh/authorized_keys file format.
|
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | SavePublicKey(Stream) |
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format.
|
![]() ![]() | SavePublicKey(String) |
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format.
|
![]() ![]() | SavePublicKey(Stream, SshPublicKeyFormat) |
Saves the public key into the supplied stream in the specified format.
|
![]() ![]() | SavePublicKey(String, SshPublicKeyFormat) |
Saves the public key into the supplied stream in the specified format.
|
![]() ![]() | ToString | Returns a String that represents the current Object. (Inherited from Object.) |
![]() ![]() | VerifySignature | Obsolete. |
Properties
Name | Description | |
---|---|---|
![]() ![]() | Comment |
Gets or sets the key comment. The comment is used while saving in some formats.
|
![]() ![]() | Fingerprint |
Gets the public key fingerprint.
|
![]() ![]() | KeyAlgorithm |
Gets the key algorithm.
|
![]() ![]() | KeyAlgorithmId |
Gets the key algorithm ID
|
![]() ![]() | KeySize |
Gets the key size, in bits.
|