public static DecryptValue ( this encryptionService, |
||
encryptionService | this | |
wireEncryptedString | ||
context | IIncomingLogicalMessageContext | |
return | void |
public static void DecryptValue(this IEncryptionService encryptionService, WireEncryptedString wireEncryptedString, IIncomingLogicalMessageContext context)
{
if (wireEncryptedString.EncryptedValue == null)
{
throw new Exception("Encrypted property is missing encryption data");
}
wireEncryptedString.Value = encryptionService.Decrypt(wireEncryptedString.EncryptedValue, context);
}
}