Class RSAKeyExtensions
Helper class to manually add missing .NetStandard System.Security.Cryptography.RSA.FromXmlString(string) overload method.
public static class RSAKeyExtensions
- Inheritance
-
objectRSAKeyExtensions
Methods
FromXmlString(RSA, string)
Initializes an System.Security.Cryptography.RSA object from the key information from an XML string.
public static void FromXmlString(RSA rsa, string xmlString)
Parameters
rsaRSASystem.Security.Cryptography.RSA to be initialized.
xmlStringstringThe XML string containing System.Security.Cryptography.RSA key information.
Exceptions
- ArgumentNullException
Thrown when any of parameters are null.
- CryptographicException
Thrown when the format of the
xmlStringparameter is not valid.