Excluded test DefaultType in ToolboxItemAttributeTests.cs under 'TARGET_JVM'
[mono.git] / mcs / class / System / System.Security.Authentication / 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)
                {
                }
        }