SshPublicKey Constructor
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)
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 |
---|---|---|
Certificate |
chain | X.509 certificate chain. |
SshPublicKey(PublicKeyInfo)
Creates an SSH public key based on the specified Public
Declaration
public SshPublicKey(PublicKeyInfo publicKeyInfo)
Parameters
Type | Name | Description |
---|---|---|
Public |
publicKeyInfo | An Public |
SshPublicKey(AsymmetricAlgorithm)
Creates an SSH public key based on the specified Asymmetric
Declaration
public SshPublicKey(AsymmetricAlgorithm algorithm)
Parameters
Type | Name | Description |
---|---|---|
Asymmetric |
algorithm | A suitable Asymmetric |
SshPublicKey(AsymmetricKeyAlgorithm)
Creates an SSH public key based on the specified asymmetric algorithm object.
Declaration
public SshPublicKey(AsymmetricKeyAlgorithm algorithm)
Parameters
Type | Name | Description |
---|---|---|
Asymmetric |
algorithm | An asymmetric algorithm object. |