iTextSharp.text.pdf.security.MakeXmlSignature.GenerateKeyInfo C# (CSharp) Method

GenerateKeyInfo() private static method

private static GenerateKeyInfo ( AsymmetricAlgorithm publicKey ) : System.Security.Cryptography.Xml.KeyInfoClause
publicKey AsymmetricAlgorithm
return System.Security.Cryptography.Xml.KeyInfoClause
        private static KeyInfoClause GenerateKeyInfo(AsymmetricAlgorithm publicKey) {
            if (publicKey is DSA)
                return new DSAKeyValue((DSA)publicKey);
            else if(publicKey is RSA)
                return new RSAKeyValue((RSA)publicKey);
            else
                throw new UnsupportedPdfException(MessageLocalization.GetComposedMessage("support.only.rsa.and.dsa.algorithms"));
        }

Same methods

MakeXmlSignature::GenerateKeyInfo ( X509Certificate chain, XmlSignatureAppearance sap ) : System.Security.Cryptography.Xml.KeyInfoClause