2006-10-31 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Tue, 31 Oct 2006 13:00:02 +0000 (13:00 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Tue, 31 Oct 2006 13:00:02 +0000 (13:00 -0000)
* AuthenticationException.cs: Unseal class and fix visibility on
.ctor(SerializationInfo,StreamingContext).
* InvalidCredentialException.cs: Unseal class, fix base class, fix
default message and fix visibility on .ctor(SerializationInfo,
StreamingContext).
* SslProtocols.cs: Fix enum values.

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

mcs/class/System/System.Security.Authentication/AuthenticationException.cs
mcs/class/System/System.Security.Authentication/ChangeLog
mcs/class/System/System.Security.Authentication/InvalidCredentialException.cs
mcs/class/System/System.Security.Authentication/SslProtocols.cs

index b111b20f9103f590c427e86d8d3ce599912ec1f2..0ab57d38dad18bc8c19a6d3aad5a7925a055464d 100644 (file)
@@ -1,15 +1,12 @@
 //
-// System.AuthenticationException.cs
+// System.Security.Authentication.AuthenticationException
 //
 // Author:
 //   Joe Shaw (joe@ximian.com)
 //   Miguel de Icaza (miguel@novell.com)
+//   Sebastien Pouliot  <sebastien@ximian.com>
 //
-// (C) 2006 Novell, Inc.  http://www.novell.com
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 //
 
 #if NET_2_0
+
 using System.Runtime.Serialization;
 
-namespace System.Security.Authentication
-{
+namespace System.Security.Authentication {
+
        [Serializable]
-       public sealed class AuthenticationException : SystemException
-       {
-               // Constructors
+       public class AuthenticationException : SystemException {
+
                public AuthenticationException ()
                        : base (Locale.GetText ("Authentication exception.")) 
                {
@@ -55,10 +52,11 @@ namespace System.Security.Authentication
                {
                }
 
-               internal AuthenticationException (SerializationInfo serializationInfo, StreamingContext streamingContext)
-                       : base(serializationInfo, streamingContext)
+               protected AuthenticationException (SerializationInfo serializationInfo, StreamingContext streamingContext)
+                       : base (serializationInfo, streamingContext)
                {
                }
        }
 }
+
 #endif
index cc502dc3b1cc0bbf904bc4eb36668dddc11c42cf..2068336f98b3dc12355b428b505dde175e8ce8ad 100644 (file)
@@ -1,3 +1,12 @@
+2006-10-31  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * AuthenticationException.cs: Unseal class and fix visibility on 
+       .ctor(SerializationInfo,StreamingContext).
+       * InvalidCredentialException.cs: Unseal class, fix base class, fix 
+       default message and fix visibility on .ctor(SerializationInfo,
+       StreamingContext).
+       * SslProtocols.cs: Fix enum values.
+
 2006-04-04  Atsushi Enomoto  <atsushi@ximian.com>
 
        * AuthenticationException.cs InvalidCredentialException.cs :
index 0589c0afc70d7a03d1c8f2af1d1c76cfd497ccaa..d93d415b59567514c9bfdc9894e8c3d7938db76a 100644 (file)
@@ -1,15 +1,12 @@
 //
-// System.AuthenticationException.cs
+// System.Security.Authentication.InvalidCredentialException
 //
 // Author:
 //   Joe Shaw (joe@ximian.com)
 //   Miguel de Icaza (miguel@novell.com)
+//   Sebastien Pouliot  <sebastien@ximian.com>
 //
-// (C) 2006 Novell, Inc.  http://www.novell.com
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 //
 
 #if NET_2_0
+
 using System.Runtime.Serialization;
 
-namespace System.Security.Authentication
-{
+namespace System.Security.Authentication {
+
        [Serializable]
-       public sealed class InvalidCredentialException : SystemException
-       {
-               // Constructors
+       public class InvalidCredentialException : AuthenticationException {
+
                public InvalidCredentialException ()
-                       : base (Locale.GetText ("Authentication exception.")) 
+                       : base (Locale.GetText ("Invalid credentials exception.")) 
                {
                }
 
@@ -55,8 +52,8 @@ namespace System.Security.Authentication
                {
                }
 
-               internal InvalidCredentialException (SerializationInfo serializationInfo, StreamingContext streamingContext)
-                       : base(serializationInfo, streamingContext)
+               protected InvalidCredentialException (SerializationInfo serializationInfo, StreamingContext streamingContext)
+                       : base (serializationInfo, streamingContext)
                {
                }
        }
index cff102a5fca4e139bf34de7078d06c8a53c23cd8..bf76ece18f0de165f2629fe2ad7ce94db9a1784d 100644 (file)
@@ -3,11 +3,10 @@
 //
 // Authors:
 //     Tim Coleman (tim@timcoleman.com)
+//     Sebastien Pouliot  <sebastien@ximian.com>
 //
 // Copyright (C) Tim Coleman, 2004
-// (c) 2004 Novell, Inc. (http://www.novell.com)
-//
-
+// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 
 #if NET_2_0 
 
-using System;
+namespace System.Security.Authentication {
 
-namespace System.Security.Authentication
-{
        [Flags]
-       public enum SslProtocols
-       {
-               Default,
+       public enum SslProtocols {
                None,
-               Ssl2,
-               Ssl3,
-               Tls
+               Ssl2 = 12,
+               Ssl3 = 48,
+               Tls = 192,
+               Default = Ssl3 | Tls
        }
 }