title: How Can I Set RSAParameters (of RSACryptoServiceProvider) to an RSA Public Key Directly
body: <p>To create the necessary validation parameters in order to call JwtSecurityTokenHandler ValidateToken()...</p>
  
  <p>I know I can do this:       </p>
  
  <pre><code>RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
  rsa.ImportParameters(new RSAParameters() 
      {                
          Modulus = "",
          Exponent = ""
      });
  
  var validationParameters = new TokenValidationParameters
      {
          IssuerSigningKey = new RsaSecurityKey(rsa)
      };
  </code></pre>
  
  <p>I would like to set the public key directly instead of setting the Modulus and Exponent individually. How can this be done?</p>