The SshPublicKey type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkSshPublicKey(array<Byte>[]()[][])
Loads a SSH2 public key from the specified raw data.
Public methodSupported by the .NET Compact FrameworkSshPublicKey(Stream)
Loads a SSH2 public key from the specified stream.
Public methodSupported by the .NET Compact FrameworkSshPublicKey(AsymmetricAlgorithm)
Creates an SSH public key based on the specified RSA or DSA object.
Public methodSupported by the .NET Compact FrameworkSshPublicKey(String)
Loads a SSH2 public key from the specified file.
Public methodSupported by the .NET Compact FrameworkSshPublicKey(Certificate)
Creates a certificate-based SSH key for use with SSH/SFTP client that support X.509 certificate authentication.
Public methodSupported by the .NET Compact FrameworkSshPublicKey(CertificateChain)
Creates a certificate-based SSH key for use with SSH/SFTP client that support X.509 certificate authentication.
Public methodSupported by the .NET Compact FrameworkSshPublicKey(PublicKeyInfo)
Creates an SSH public key based on the specified PublicKeyInfo object.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkEquals(Object)
Determines whether the specified object is the same key as the specified key.
(Overrides Object..::..Equals(Object).)
Public methodSupported by the .NET Compact FrameworkEquals(SshPublicKey)
Determines whether the specified key is the same key as the specified key.
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetCertificate
Returns the underlying X509 certificate.
Public methodSupported by the .NET Compact FrameworkGetCertificateChain
Returns the underlying X509 certificate and its chain (for certificate-based keys).
Public methodSupported by the .NET Compact FrameworkGetDSAParameters
Gets the DSA parameters for a DSA key. May only be used for DSA public keys.
Public methodSupported by the .NET Compact FrameworkGetHashCode
A hash function for this type.
(Overrides Object..::..GetHashCode()()()().)
Public methodSupported by the .NET Compact FrameworkGetPublicKey
Gets the public key in SSH format (or raw X.509 data of the leaf certificate).
Public methodSupported by the .NET Compact FrameworkGetPublicKeyInfo
Returns the public key info for this key.
Public methodSupported by the .NET Compact FrameworkGetRSAParameters
Gets the RSA parameters for a RSA key. May only be used for RSA public keys.
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkLoadPublicKeys
Loads public keys in ~/.ssh/authorized_keys file format.
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSavePublicKey(Stream)
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format.
Public methodSupported by the .NET Compact FrameworkSavePublicKey(String)
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format.
Public methodSupported by the .NET Compact FrameworkSavePublicKey(Stream, SshPublicKeyFormat)
Saves the public key into the supplied stream in the specified format.
Public methodSupported by the .NET Compact FrameworkSavePublicKey(String, SshPublicKeyFormat)
Saves the public key into the supplied stream in the specified format.
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkVerifySignature Obsolete.

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkComment
Gets or sets the key comment. The comment is used while saving in some formats.
Public propertySupported by the .NET Compact FrameworkFingerprint
Gets the public key fingerprint.
Public propertySupported by the .NET Compact FrameworkKeyAlgorithm
Gets the key algorithm.
Public propertySupported by the .NET Compact FrameworkKeyAlgorithmId
Gets the key algorithm ID
Public propertySupported by the .NET Compact FrameworkKeySize
Gets the key size, in bits.

See Also