PuttyPrivateKey constructor

PuttyPrivateKey(
  1. String keyType,
  2. String encryption,
  3. Uint8List publicKeyBytes,
  4. Uint8List privateKeyBytes, [
  5. String? comment,
])

Default constructor

Create a PuTTY Private Key object. This is usually used when the program has a public-key pair and wants to export it in the PPK format. Use this constructor to create the object and then invoke encode on it.

An optional comment can be provided.

Implementation

PuttyPrivateKey(
    this.keyType, this.encryption, this.publicKeyBytes, this.privateKeyBytes,
    [this.comment])
    : source = null;