(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System / System.Net.Security / NegotiateStream.cs
blob4a80bcc1793316c8ad3d039cdede8fd6075955e4
1 //
2 // System.Net.Security.NegotiateStream.cs
3 //
4 // Authors:
5 // Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2004
8 // (c) 2004 Novell, Inc. (http://www.novell.com)
9 //
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
19 //
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
22 //
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 #if NET_2_0
34 using System;
35 using System.IO;
36 using System.Net;
37 using System.Security.Principal;
39 namespace System.Net.Security
41 public class NegotiateStream : AuthenticatedStream
43 #region Fields
45 int readTimeout;
46 int writeTimeout;
48 #endregion // Fields
50 #region Constructors
52 [MonoTODO]
53 public NegotiateStream (Stream innerStream)
54 : base (innerStream, false)
58 [MonoTODO]
59 public NegotiateStream (Stream innerStream, bool leaveStreamOpen)
60 : base (innerStream, leaveStreamOpen)
64 #endregion // Constructors
66 #region Properties
68 public override bool CanRead {
69 get { return InnerStream.CanRead; }
72 public override bool CanSeek {
73 get { return InnerStream.CanSeek; }
76 [MonoTODO]
77 public virtual bool CanTimeout {
78 get { throw new NotImplementedException (); }
81 public override bool CanWrite {
82 get { return InnerStream.CanWrite; }
85 [MonoTODO]
86 public virtual TokenImpersonationLevel ImpersonationLevel {
87 get { throw new NotImplementedException (); }
90 [MonoTODO]
91 public override bool IsAuthenticated {
92 get { throw new NotImplementedException (); }
95 [MonoTODO]
96 public override bool IsEncrypted {
97 get { throw new NotImplementedException (); }
100 [MonoTODO]
101 public override bool IsMutuallyAuthenticated {
102 get { throw new NotImplementedException (); }
105 [MonoTODO]
106 public override bool IsServer {
107 get { throw new NotImplementedException (); }
110 [MonoTODO]
111 public override bool IsSigned {
112 get { throw new NotImplementedException (); }
115 public override long Length {
116 get { return InnerStream.Length; }
119 public override long Position {
120 get { return InnerStream.Position; }
121 set { InnerStream.Position = value; }
124 public virtual int ReadTimeout {
125 get { return readTimeout; }
126 set { readTimeout = value; }
129 [MonoTODO]
130 public virtual IIdentity RemoteIdentity {
131 get { throw new NotImplementedException (); }
134 public virtual int WriteTimeout {
135 get { return writeTimeout; }
136 set { writeTimeout = value; }
139 #endregion // Properties
141 #region Methods
143 [MonoTODO]
144 public virtual IAsyncResult BeginClientAuthenticate (AsyncCallback callback, object asyncState)
146 throw new NotImplementedException ();
149 [MonoTODO]
150 public virtual IAsyncResult BeginClientAuthenticate (NetworkCredential credential, string targetName, AsyncCallback asyncCallback, object asyncState)
152 throw new NotImplementedException ();
155 [MonoTODO]
156 public virtual IAsyncResult BeginClientAuthenticate (NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel, AsyncCallback asyncCallback, object asyncState)
158 throw new NotImplementedException ();
161 [MonoTODO]
162 public override IAsyncResult BeginRead (byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
164 throw new NotImplementedException ();
167 [MonoTODO]
168 public virtual IAsyncResult BeginServerAuthenticate (AsyncCallback callback, object asyncState)
170 throw new NotImplementedException ();
173 [MonoTODO]
174 public virtual IAsyncResult BeginServerAuthenticate (NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel, AsyncCallback asyncCallback, object asyncState)
176 throw new NotImplementedException ();
179 [MonoTODO]
180 public override IAsyncResult BeginWrite (byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
182 throw new NotImplementedException ();
185 [MonoTODO]
186 public virtual void ClientAuthenticate ()
188 throw new NotImplementedException ();
191 [MonoTODO]
192 public virtual void ClientAuthenticate (NetworkCredential credential, string targetName)
194 throw new NotImplementedException ();
197 [MonoTODO]
198 public virtual void ClientAuthenticate (NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)
200 throw new NotImplementedException ();
203 [MonoTODO]
204 public override void Close ()
206 InnerStream.Close ();
209 [MonoTODO]
210 public virtual void EndClientAuthenticate (IAsyncResult asyncResult)
212 throw new NotImplementedException ();
215 [MonoTODO]
216 public override int EndRead (IAsyncResult asyncResult)
218 throw new NotImplementedException ();
221 [MonoTODO]
222 public virtual void EndServerAuthenticate (IAsyncResult asyncResult)
224 throw new NotImplementedException ();
227 [MonoTODO]
228 public override void EndWrite (IAsyncResult asyncResult)
230 throw new NotImplementedException ();
233 [MonoTODO]
234 public override void Flush ()
236 InnerStream.Flush ();
239 [MonoTODO]
240 public override int Read (byte[] buffer, int offset, int count)
242 throw new NotImplementedException ();
245 [MonoTODO]
246 public override long Seek (long offset, SeekOrigin origin)
248 throw new NotImplementedException ();
251 [MonoTODO]
252 public virtual void ServerAuthenticate ()
254 throw new NotImplementedException ();
257 [MonoTODO]
258 public virtual void ServerAuthenticate (NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)
260 throw new NotImplementedException ();
263 [MonoTODO]
264 public override void SetLength (long value)
266 throw new NotImplementedException ();
269 [MonoTODO]
270 public override void Write (byte[] buffer, int offset, int count)
272 throw new NotImplementedException ();
275 #endregion // Methods
279 #endif