AtKeys.legacy constructor

AtKeys.legacy({
  1. String? apkamPublicKey,
  2. String? apkamPrivateKey,
  3. String? apkamSymmetricKey,
  4. String? encryptionPublicKey,
  5. String? encryptionPrivateKey,
  6. String? selfEncryptionKey,
  7. String? enrollmentId,
})

A legacy-shaped document holding what fileLegacyMaterial files and nothing typed: the shape of every keyfile written before the typed section existed, and of a demo atSign's credentials.

Implementation

factory AtKeys.legacy({
  String? apkamPublicKey,
  String? apkamPrivateKey,
  String? apkamSymmetricKey,
  String? encryptionPublicKey,
  String? encryptionPrivateKey,
  String? selfEncryptionKey,
  String? enrollmentId,
}) =>
    AtKeys()
      ..fileLegacyMaterial(
        apkamPublicKey: apkamPublicKey,
        apkamPrivateKey: apkamPrivateKey,
        apkamSymmetricKey: apkamSymmetricKey,
        encryptionPublicKey: encryptionPublicKey,
        encryptionPrivateKey: encryptionPrivateKey,
        selfEncryptionKey: selfEncryptionKey,
        enrollmentId: enrollmentId,
      );