The SshPrivateKey type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkSshPrivateKey(AsymmetricAlgorithm)
Creates an SSH private key based on the specified RSA or DSA object.
Public methodSupported by the .NET Compact FrameworkSshPrivateKey(Certificate)
Creates a certificate-based SSH key for use with SSH/SFTP servers that support X.509 certificate authentication.
Public methodSupported by the .NET Compact FrameworkSshPrivateKey(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 FrameworkSshPrivateKey(array<Byte>[]()[][], String)
Loads a PKCS #8 or SSLeay-format RSA or DSA private key from the specified raw data.
Public methodSupported by the .NET Compact FrameworkSshPrivateKey(Stream, String)
Loads a PKCS #8 or SSLeay-format RSA or DSA private key from the specified stream.
Public methodSupported by the .NET Compact FrameworkSshPrivateKey(String, String)
Loads a PKCS #8 or SSLeay-format RSA or DSA private key from the specified path.

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.)

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkCertificate
Gets a certificate of a certificate-based SSH key.
Public propertySupported by the .NET Compact FrameworkComment
Gets or sets the key comment. The comment is used while saving in some formats.
(Inherited from SshPublicKey.)
Public propertySupported by the .NET Compact FrameworkFingerprint
Gets the public key fingerprint.
(Inherited from SshPublicKey.)
Public propertySupported by the .NET Compact FrameworkKeyAlgorithm
Gets the key algorithm.
(Inherited from SshPublicKey.)
Public propertySupported by the .NET Compact FrameworkKeyAlgorithmId
Gets the key algorithm ID
(Inherited from SshPublicKey.)
Public propertySupported by the .NET Compact FrameworkKeySize
Gets the key size, in bits.
(Inherited from SshPublicKey.)

See Also