Beispiel #1
0
 public X509AsymmetricSignatureProvider(System.IdentityModel.Tokens.X509AsymmetricSecurityKey x509Key)
 {
     Utility.VerifyNonNullArgument("x509Key", x509Key);
     System.Security.Cryptography.RSACryptoServiceProvider rSACryptoServiceProvider = x509Key.GetAsymmetricAlgorithm("http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", true) as System.Security.Cryptography.RSACryptoServiceProvider;
     if (rSACryptoServiceProvider == null)
     {
         throw new System.InvalidOperationException("Could not get algorithm from X509AsymmetricSecurityKey");
     }
     this.Initialize(rSACryptoServiceProvider);
 }