コード例 #1
0
        public static void Generate(XmlElement xmlElement, AsymmetricAlgorithm signingKey, X509Certificate2 x509Certificate, string inclusiveNamespacesPrefixList, string digestMethod, string signatureMethod)
        {
            if (inclusiveNamespacesPrefixList == null)
            {
                inclusiveNamespacesPrefixList = "#default md saml ds xs xsi";
            }
            XmlElement xmlSignature = XmlSignature.Generate(xmlElement, SAMLMetadataSignature.GetID(xmlElement), signingKey, x509Certificate, (SignedXml) new SignedMetadata(xmlElement), inclusiveNamespacesPrefixList, digestMethod, signatureMethod);

            SAMLMetadataSignature.AddSignature(xmlElement, xmlSignature);
        }
コード例 #2
0
 public static void Generate(XmlElement xmlElement, AsymmetricAlgorithm signingKey, X509Certificate2Collection x509Certificates)
 {
     SAMLMetadataSignature.Generate(xmlElement, signingKey, x509Certificates, "#default md saml ds xs xsi", (string)null, (string)null);
 }
コード例 #3
0
 public static void Generate(XmlElement xmlElement, AsymmetricAlgorithm signingKey, KeyInfoX509Data keyInfoX509Data)
 {
     SAMLMetadataSignature.Generate(xmlElement, signingKey, keyInfoX509Data, "#default md saml ds xs xsi", (string)null, (string)null);
 }