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
rsa
RSASystem.Security.Cryptography.RSA to be initialized.
xmlString
stringThe 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
xmlString
parameter is not valid.