//
-// 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."))
{
{
}
- internal AuthenticationException (SerializationInfo serializationInfo, StreamingContext streamingContext)
- : base(serializationInfo, streamingContext)
+ protected AuthenticationException (SerializationInfo serializationInfo, StreamingContext streamingContext)
+ : base (serializationInfo, streamingContext)
{
}
}
}
+
#endif
+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 :
//
-// 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."))
{
}
{
}
- internal InvalidCredentialException (SerializationInfo serializationInfo, StreamingContext streamingContext)
- : base(serializationInfo, streamingContext)
+ protected InvalidCredentialException (SerializationInfo serializationInfo, StreamingContext streamingContext)
+ : base (serializationInfo, streamingContext)
{
}
}
//
// 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
}
}