public static void ValidateAuthenticationCode(string authCode)
{
if (authCode == null)
{
throw new ArgumentNullException("authCode", "Authentication code cannot be null!");
}
if (authCode.Length != Sha1CodeLength)
{
throw new ArgumentOutOfRangeException("authCode", "Invalid user authentication!");
}
}