The SshPrivateKey type exposes the following members.

Methods

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkCreateFrom(DSAParameters)
Creates an SSH private key from the specified DSA parameters.
Public methodStatic memberSupported by the .NET Compact FrameworkCreateFrom(RSAParameters)
Creates an SSH private key from the specified RSA parameters.
Public methodSupported by the .NET Compact FrameworkCreateSignature Obsolete.
Public methodSupported by the .NET Compact FrameworkEquals(Object)
Determines whether the specified object is the same key as the specified key.
(Inherited from SshPublicKey.)
Public methodSupported by the .NET Compact FrameworkEquals(SshPublicKey)
Determines whether the specified key is the same key as the specified key.
(Inherited from SshPublicKey.)
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 methodStatic memberSupported by the .NET Compact FrameworkGenerate()()()()
Generates an SSH private key using the RSA algorithm with a key size of 1024.
Public methodStatic memberSupported by the .NET Compact FrameworkGenerate(SshHostKeyAlgorithm)
Generates an SSH private key using the specified algorithm and a default key size.
Public methodStatic memberSupported by the .NET Compact FrameworkGenerate(SshHostKeyAlgorithm, Int32)
Generates an SSH private key using the specified algorithm and key size.
Public methodSupported by the .NET Compact FrameworkGetCertificate
Returns the underlying X509 certificate.
(Inherited from SshPublicKey.)
Public methodSupported by the .NET Compact FrameworkGetCertificateChain
Returns the underlying X509 certificate and its chain (for certificate-based keys).
(Inherited from SshPublicKey.)
Public methodSupported by the .NET Compact FrameworkGetDSAParameters
Gets the DSA parameters for a DSA key. May only be used for DSA private keys.
Public methodSupported by the .NET Compact FrameworkGetHashCode
A hash function for this type.
(Inherited from SshPublicKey.)
Public methodSupported by the .NET Compact FrameworkGetPrivateKey
Gets the raw form of the private key.
Public methodSupported by the .NET Compact FrameworkGetPrivateKeyInfo
Returns the private key info for this key.
Public methodSupported by the .NET Compact FrameworkGetPublicKey
Gets the public key in SSH format (or raw X.509 data of the leaf certificate).
(Inherited from SshPublicKey.)
Public methodSupported by the .NET Compact FrameworkGetPublicKeyInfo
Returns the public key info for this key.
(Inherited from SshPublicKey.)
Public methodSupported by the .NET Compact FrameworkGetRSAParameters
Gets the RSA parameters for a RSA key. May only be used for RSA private keys.
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSave(Stream, String, SshPrivateKeyFormat)
Saves the private key into the supplied stream in the specified format.
Public methodSupported by the .NET Compact FrameworkSave(Stream, String, Object) Obsolete.
Public methodSupported by the .NET Compact FrameworkSave(String, String, SshPrivateKeyFormat)
Saves the private key into the supplied stream in the specified format.
Public methodSupported by the .NET Compact FrameworkSave(String, String, Object) Obsolete.
Public methodSupported by the .NET Compact FrameworkSavePublicKey(Stream)
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format.
(Inherited from SshPublicKey.)
Public methodSupported by the .NET Compact FrameworkSavePublicKey(String)
Saves the public key into the supplied stream in Base64-encoded SSH2 public key format.
(Inherited from SshPublicKey.)
Public methodSupported by the .NET Compact FrameworkSavePublicKey(Stream, SshPublicKeyFormat)
Saves the public key into the supplied stream in the specified format.
(Inherited from SshPublicKey.)
Public methodSupported by the .NET Compact FrameworkSavePublicKey(String, SshPublicKeyFormat)
Saves the public key into the supplied stream in the specified format.
(Inherited from SshPublicKey.)
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. (Inherited from SshPublicKey.)

See Also