toEncryptionAlgorithmSpec method

EncryptionAlgorithmSpec toEncryptionAlgorithmSpec()

Implementation

EncryptionAlgorithmSpec toEncryptionAlgorithmSpec() {
  switch (this) {
    case 'SYMMETRIC_DEFAULT':
      return EncryptionAlgorithmSpec.symmetricDefault;
    case 'RSAES_OAEP_SHA_1':
      return EncryptionAlgorithmSpec.rsaesOaepSha_1;
    case 'RSAES_OAEP_SHA_256':
      return EncryptionAlgorithmSpec.rsaesOaepSha_256;
  }
  throw Exception('$this is not known in enum EncryptionAlgorithmSpec');
}