title: Signing a SamlAssertion in .NET 4.0
body: <p>I have a SamlAssertion in .Net 4.0.<br>
  <a href="http://msdn.microsoft.com/en-us/library/system.identitymodel.tokens.samlassertion.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.identitymodel.tokens.samlassertion.aspx</a></p>
  
  <p>I need to sign it, then encrypt it, and POST it to a business partner. We are the Identity Provider and initiating the communication.</p>
  
  <p>The sign method I've found on the web is expecting an XmlDocument to be sent as the parameter.  How to cast/convert the SamlAssertion to a signable xml document? Or is there a way to sign the assertion without having to cast/convert? </p>