AuthenticationException.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Net / System / Net / SecureProtocols / AuthenticationException.cs / 1 / AuthenticationException.cs

                            /*++ 
Copyright (c) Microsoft Corporation

Module Name:
 
    AuthenticationException.cs
 
Abstract: 
        The classes reperesent an exceptions resulted from
        authentication process. 
        It is used by SSL and Negotiate protocol implementaions.

        FatalAuthentictionException usually means that the auth
        procees cannot (shoudl not) be retried over the same transport 
        stream.
 
 
Author:
    Alexei Vopilov    12-Aug-2003 

Revision History:
    12-Aug-2003 New design that has obsoleted Authenticator class
    12-Dec-2003 FxCop: added default and serialization constructors 
--*/
 
namespace System.Security.Authentication { 
    using System;
    using System.Runtime.Serialization; 

    /// 
    /// 
    /// This exception can be thrown from Authenticate() method of Ssl and Negotiate classes. 
    /// The authentication process can be retried with different parameters subject to
    /// remote party willingess of accepting that. 
    ///  
    /// 
    [Serializable] 
    public class AuthenticationException: SystemException
    {
        public AuthenticationException() {}
        protected AuthenticationException(SerializationInfo serializationInfo, StreamingContext streamingContext) : 
            base(serializationInfo, streamingContext) {}
        public AuthenticationException(string message): base(message) {} 
        public AuthenticationException(string message, Exception innerException): base(message, innerException) {} 
    }
 
    /// 
    /// 
    /// This exception can be thrown from Authenticate() method of Ssl and Negotiate classes.
    /// The authentication is expected to fail prematurely if called using the same 
    /// underlined stream.
    ///  
    ///  
    [Serializable]
    public class InvalidCredentialException: AuthenticationException 
    {
        public InvalidCredentialException() {}
        protected InvalidCredentialException(SerializationInfo serializationInfo, StreamingContext streamingContext) :
            base(serializationInfo, streamingContext) {} 
        public InvalidCredentialException(string message): base(message) {}
        public InvalidCredentialException(string message, Exception innerException):base(message, innerException) {} 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
/*++ 
Copyright (c) Microsoft Corporation

Module Name:
 
    AuthenticationException.cs
 
Abstract: 
        The classes reperesent an exceptions resulted from
        authentication process. 
        It is used by SSL and Negotiate protocol implementaions.

        FatalAuthentictionException usually means that the auth
        procees cannot (shoudl not) be retried over the same transport 
        stream.
 
 
Author:
    Alexei Vopilov    12-Aug-2003 

Revision History:
    12-Aug-2003 New design that has obsoleted Authenticator class
    12-Dec-2003 FxCop: added default and serialization constructors 
--*/
 
namespace System.Security.Authentication { 
    using System;
    using System.Runtime.Serialization; 

    /// 
    /// 
    /// This exception can be thrown from Authenticate() method of Ssl and Negotiate classes. 
    /// The authentication process can be retried with different parameters subject to
    /// remote party willingess of accepting that. 
    ///  
    /// 
    [Serializable] 
    public class AuthenticationException: SystemException
    {
        public AuthenticationException() {}
        protected AuthenticationException(SerializationInfo serializationInfo, StreamingContext streamingContext) : 
            base(serializationInfo, streamingContext) {}
        public AuthenticationException(string message): base(message) {} 
        public AuthenticationException(string message, Exception innerException): base(message, innerException) {} 
    }
 
    /// 
    /// 
    /// This exception can be thrown from Authenticate() method of Ssl and Negotiate classes.
    /// The authentication is expected to fail prematurely if called using the same 
    /// underlined stream.
    ///  
    ///  
    [Serializable]
    public class InvalidCredentialException: AuthenticationException 
    {
        public InvalidCredentialException() {}
        protected InvalidCredentialException(SerializationInfo serializationInfo, StreamingContext streamingContext) :
            base(serializationInfo, streamingContext) {} 
        public InvalidCredentialException(string message): base(message) {}
        public InvalidCredentialException(string message, Exception innerException):base(message, innerException) {} 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK