Browse Source

2005-09-27 Sebastien Pouliot <[email protected]>

* X509Certificate2UI.cs: Hide constructor (it should have been a
static class). Fixed Display/DisplayCertificate method name.


svn path=/trunk/mcs/; revision=50862

Sebastien Pouliot 20 years ago
parent
commit
9d0db2f26d

+ 5 - 0
mcs/class/System.Security/System.Security.Cryptography.X509Certificates/ChangeLog

@@ -1,3 +1,8 @@
+2005-09-27  Sebastien Pouliot  <[email protected]> 
+ 
+	* X509Certificate2UI.cs: Hide constructor (it should have been a 
+	static class). Fixed Display/DisplayCertificate method name.
+
 2005-09-27  Sebastien Pouliot  <[email protected]>
 
 	* X509Certificate2UI.cs: New. Class to handle UI (yuck) for 

+ 6 - 1
mcs/class/System.Security/System.Security.Cryptography.X509Certificates/X509Certificate2UI.cs

@@ -34,6 +34,11 @@ namespace System.Security.Cryptography.X509Certificates {
 
 	public sealed class X509Certificate2UI {
 
+		// sadly this isn't a static class
+		private X509Certificate2UI ()
+		{
+		}
+
 		[MonoTODO]
 		public static void DisplayCertificate (X509Certificate2 certificate)
 		{
@@ -48,7 +53,7 @@ namespace System.Security.Cryptography.X509Certificates {
 
 		[MonoTODO]
 		[SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode = true)]
-		public static void Display (X509Certificate2 certificate, IntPtr hwndParent) 
+		public static void DisplayCertificate (X509Certificate2 certificate, IntPtr hwndParent) 
 		{
 			if (certificate == null)
 				throw new ArgumentNullException ("certificate");