private string GetAlgorithmName()
{
switch(this.SigningAlgorithm)
{
case DKIM.SigningAlgorithm.RSASha1:
{
return "rsa-sha1";
}
case DKIM.SigningAlgorithm.RSASha256:
{
return "rsa-sha256";
}
default:
{
throw new InvalidOperationException("Invalid SigningAlgorithm");
}
}
}