SshPublicKey Constructor
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
SshPublicKey(Byte[])
Loads a SSH2 public key from the specified raw data.
Declaration
public SshPublicKey(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | data | Raw private key data. |
SshPublicKey(String)
Loads an SSH2 public key from the specified file.
Declaration
public SshPublicKey(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | A path to file with the public key. |
SshPublicKey(Stream)
Loads an SSH2 public key from the specified stream.
Declaration
public SshPublicKey(Stream input)
Parameters
Type | Name | Description |
---|---|---|
Stream | input | A stream with the public key. |
SshPublicKey(Certificate)
Creates a certificate-based SSH key for use with SSH/SFTP client that support X.509 certificate authentication.
Declaration
public SshPublicKey(Certificate certificate)
Parameters
Type | Name | Description |
---|---|---|
Certificate | certificate | X.509 certificate. |
SshPublicKey(CertificateChain)
Creates a certificate-based SSH key for use with SSH/SFTP client that support X.509 certificate authentication.
Declaration
public SshPublicKey(CertificateChain chain)
Parameters
Type | Name | Description |
---|---|---|
CertificateChain | chain | X.509 certificate chain. |
SshPublicKey(PublicKeyInfo)
Creates an SSH public key based on the specified PublicKeyInfo object.
Declaration
public SshPublicKey(PublicKeyInfo publicKeyInfo)
Parameters
Type | Name | Description |
---|---|---|
PublicKeyInfo | publicKeyInfo | An PublicKeyInfo object. |
SshPublicKey(AsymmetricAlgorithm)
Creates an SSH public key based on the specified AsymmetricAlgorithm object, such as RSA (all platforms), DSA (all platforms) or ECDsa (.NET 5 or higher).
Declaration
public SshPublicKey(AsymmetricAlgorithm algorithm)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricAlgorithm | algorithm | A suitable AsymmetricAlgorithm object. |
SshPublicKey(AsymmetricKeyAlgorithm)
Creates an SSH public key based on the specified asymmetric algorithm object.
Declaration
public SshPublicKey(AsymmetricKeyAlgorithm algorithm)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricKeyAlgorithm | algorithm | An asymmetric algorithm object. |