Ejemplo n.º 1
0
        // Display to the console the properties of the specified
        // SignatureDescription.
        public static void ShowProperties(SignatureDescription signatureDescription)
        {
            // Retrieve the class path for the specified SignatureDescription.
            string classDescription = signatureDescription.ToString();

            string deformatterAlgorithm = signatureDescription.DeformatterAlgorithm;
            string formatterAlgorithm   = signatureDescription.FormatterAlgorithm;
            string digestAlgorithm      = signatureDescription.DigestAlgorithm;
            string keyAlgorithm         = signatureDescription.KeyAlgorithm;

            Console.WriteLine("\n** " + classDescription + " **");
            Console.WriteLine("DeformatterAlgorithm : " + deformatterAlgorithm);
            Console.WriteLine("FormatterAlgorithm : " + formatterAlgorithm);
            Console.WriteLine("DigestAlgorithm : " + digestAlgorithm);
            Console.WriteLine("KeyAlgorithm : " + keyAlgorithm);
        }