SshPrivateKey.CreateFrom Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9119)
CreateFrom(PrivateKeyInfo)
Creates an SSH private key from the specified private key info object.
Declaration
public static SshPrivateKey CreateFrom(PrivateKeyInfo privateKey)
Parameters
Type | Name | Description |
---|---|---|
PrivateKeyInfo | privateKey |
Returns
Type | Description |
---|---|
SshPrivateKey | SSH private key object. |
CreateFrom(RSAParameters)
Creates an SSH private key from the specified RSA parameters.
Declaration
public static SshPrivateKey CreateFrom(RSAParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
RSAParameters | parameters |
Returns
Type | Description |
---|---|
SshPrivateKey | SSH private key object. |
CreateFrom(DSAParameters)
Creates an SSH private key from the specified DSA parameters.
Declaration
public static SshPrivateKey CreateFrom(DSAParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
DSAParameters | parameters |
Returns
Type | Description |
---|---|
SshPrivateKey | SSH private key object. |