private static void PrintUidData(PgpKey key)
        {
            if (key.Uid == null)
                throw new InvalidKeyException();

            Console.WriteLine("{0}'s key {1}\nhas the following Uids and signatures",
                key.Uid.Name,
                key.Fingerprint);
            foreach (UserId id in key.Uids)
            {
                Console.WriteLine("\tReal name: {0}\n\t"
                    + "Email: {1}\n\t"
                    + "Comment: {2}\n\t"
                    + "Invalid: {3}\n\t"
                    + "Revoked: {4}\n\t"
                    + "Validity: {5}\n\t",
                    id.Name,
                    id.Email,
                    id.Comment,
                    id.Invalid.ToString(),
                    id.Revoked.ToString(),
                    id.Validity.ToString());

                Console.WriteLine("\tSignatures:");
                if (id.Signatures != null)
                {
                    foreach (KeySignature keysig in id.Signatures)
                        Console.WriteLine("\t\tFrom: {0}\n\t\t"
                            + "Key id: {1}\n\t\t"
                            + "Date: {2}\n\t\t"
                            + "Revoked: {3}\n\t\t"
                            + "Expires: {4}\n\t\t"
                            + "Invalid: {5}\n",
                            keysig.Name,
                            keysig.KeyId,
                            keysig.Timestamp.ToString(),
                            keysig.Revoked.ToString(),
                            keysig.Expires.ToString(),
                            keysig.Invalid.ToString());
                }
                else
                    Console.WriteLine("\t\tNone");
            }
            Console.WriteLine();
        }
 internal Settings(PgpKey key)
 {
     this.key = key;
 }