600 lines
43 KiB
C#
600 lines
43 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Security.Principal;
|
|
|
|
namespace System.Net.Security
|
|
{
|
|
/// <summary>Provides a stream that uses the Negotiate security protocol to authenticate the client, and optionally the server, in client-server communication.</summary>
|
|
// Token: 0x020001D4 RID: 468
|
|
public class NegotiateStream : AuthenticatedStream
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Security.NegotiateStream" /> class using the specified <see cref="T:System.IO.Stream" />.</summary>
|
|
/// <param name="innerStream">A <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.NegotiateStream" /> for sending and receiving data.</param>
|
|
// Token: 0x06000EF3 RID: 3827 RVA: 0x0002987C File Offset: 0x00027A7C
|
|
[global::System.MonoTODO]
|
|
public NegotiateStream(Stream innerStream)
|
|
: base(innerStream, false)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Security.NegotiateStream" /> class using the specified <see cref="T:System.IO.Stream" /> and stream closure behavior.</summary>
|
|
/// <param name="innerStream">A <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.NegotiateStream" /> for sending and receiving data.</param>
|
|
/// <param name="leaveInnerStreamOpen">true to indicate that closing this <see cref="T:System.Net.Security.NegotiateStream" /> has no effect on <paramref name="innerstream" />; false to indicate that closing this <see cref="T:System.Net.Security.NegotiateStream" /> also closes <paramref name="innerStream" />. See the Remarks section for more information.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="innerStream" /> is null.- or -<paramref name="innerStream" /> is equal to <see cref="F:System.IO.Stream.Null" />.</exception>
|
|
// Token: 0x06000EF4 RID: 3828 RVA: 0x00029888 File Offset: 0x00027A88
|
|
[global::System.MonoTODO]
|
|
public NegotiateStream(Stream innerStream, bool leaveStreamOpen)
|
|
: base(innerStream, leaveStreamOpen)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether the underlying stream is readable.</summary>
|
|
/// <returns>true if authentication has occurred and the underlying stream is readable; otherwise, false.</returns>
|
|
// Token: 0x17000518 RID: 1304
|
|
// (get) Token: 0x06000EF5 RID: 3829 RVA: 0x00029894 File Offset: 0x00027A94
|
|
public override bool CanRead
|
|
{
|
|
get
|
|
{
|
|
return base.InnerStream.CanRead;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether the underlying stream is seekable.</summary>
|
|
/// <returns>This property always returns false.</returns>
|
|
// Token: 0x17000519 RID: 1305
|
|
// (get) Token: 0x06000EF6 RID: 3830 RVA: 0x000298A4 File Offset: 0x00027AA4
|
|
public override bool CanSeek
|
|
{
|
|
get
|
|
{
|
|
return base.InnerStream.CanSeek;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether the underlying stream supports time-outs.</summary>
|
|
/// <returns>true if the underlying stream supports time-outs; otherwise, false.</returns>
|
|
// Token: 0x1700051A RID: 1306
|
|
// (get) Token: 0x06000EF7 RID: 3831 RVA: 0x000298B4 File Offset: 0x00027AB4
|
|
[global::System.MonoTODO]
|
|
public override bool CanTimeout
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether the underlying stream is writable.</summary>
|
|
/// <returns>true if authentication has occurred and the underlying stream is writable; otherwise, false.</returns>
|
|
// Token: 0x1700051B RID: 1307
|
|
// (get) Token: 0x06000EF8 RID: 3832 RVA: 0x000298BC File Offset: 0x00027ABC
|
|
public override bool CanWrite
|
|
{
|
|
get
|
|
{
|
|
return base.InnerStream.CanWrite;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value that indicates how the server can use the client's credentials.</summary>
|
|
/// <returns>One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel" /> values.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication failed or has not occurred.</exception>
|
|
// Token: 0x1700051C RID: 1308
|
|
// (get) Token: 0x06000EF9 RID: 3833 RVA: 0x000298CC File Offset: 0x00027ACC
|
|
[global::System.MonoTODO]
|
|
public virtual TokenImpersonationLevel ImpersonationLevel
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether authentication was successful.</summary>
|
|
/// <returns>true if successful authentication occurred; otherwise, false. </returns>
|
|
// Token: 0x1700051D RID: 1309
|
|
// (get) Token: 0x06000EFA RID: 3834 RVA: 0x000298D4 File Offset: 0x00027AD4
|
|
[global::System.MonoTODO]
|
|
public override bool IsAuthenticated
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether this <see cref="T:System.Net.Security.NegotiateStream" /> uses data encryption.</summary>
|
|
/// <returns>true if data is encrypted before being transmitted over the network and decrypted when it reaches the remote endpoint; otherwise, false.</returns>
|
|
// Token: 0x1700051E RID: 1310
|
|
// (get) Token: 0x06000EFB RID: 3835 RVA: 0x000298DC File Offset: 0x00027ADC
|
|
[global::System.MonoTODO]
|
|
public override bool IsEncrypted
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether both the server and the client have been authenticated.</summary>
|
|
/// <returns>true if the server has been authenticated; otherwise, false.</returns>
|
|
// Token: 0x1700051F RID: 1311
|
|
// (get) Token: 0x06000EFC RID: 3836 RVA: 0x000298E4 File Offset: 0x00027AE4
|
|
[global::System.MonoTODO]
|
|
public override bool IsMutuallyAuthenticated
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether the local side of the connection used by this <see cref="T:System.Net.Security.NegotiateStream" /> was authenticated as the server.</summary>
|
|
/// <returns>true if the local endpoint was successfully authenticated as the server side of the authenticated connection; otherwise, false.</returns>
|
|
// Token: 0x17000520 RID: 1312
|
|
// (get) Token: 0x06000EFD RID: 3837 RVA: 0x000298EC File Offset: 0x00027AEC
|
|
[global::System.MonoTODO]
|
|
public override bool IsServer
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether the data sent using this stream is signed.</summary>
|
|
/// <returns>true if the data is signed before being transmitted; otherwise, false.</returns>
|
|
// Token: 0x17000521 RID: 1313
|
|
// (get) Token: 0x06000EFE RID: 3838 RVA: 0x000298F4 File Offset: 0x00027AF4
|
|
[global::System.MonoTODO]
|
|
public override bool IsSigned
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the length of the underlying stream.</summary>
|
|
/// <returns>A <see cref="T:System.Int64" /> that specifies the length of the underlying stream.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">Getting the value of this property is not supported when the underlying stream is a <see cref="T:System.Net.Sockets.NetworkStream" />.</exception>
|
|
// Token: 0x17000522 RID: 1314
|
|
// (get) Token: 0x06000EFF RID: 3839 RVA: 0x000298FC File Offset: 0x00027AFC
|
|
public override long Length
|
|
{
|
|
get
|
|
{
|
|
return base.InnerStream.Length;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the current position in the underlying stream.</summary>
|
|
/// <returns>A <see cref="T:System.Int64" /> that specifies the current position in the underlying stream.</returns>
|
|
/// <exception cref="T:System.NotSupportedException">Setting this property is not supported.- or -Getting the value of this property is not supported when the underlying stream is a <see cref="T:System.Net.Sockets.NetworkStream" />.</exception>
|
|
// Token: 0x17000523 RID: 1315
|
|
// (get) Token: 0x06000F00 RID: 3840 RVA: 0x0002990C File Offset: 0x00027B0C
|
|
// (set) Token: 0x06000F01 RID: 3841 RVA: 0x0002991C File Offset: 0x00027B1C
|
|
public override long Position
|
|
{
|
|
get
|
|
{
|
|
return base.InnerStream.Position;
|
|
}
|
|
set
|
|
{
|
|
base.InnerStream.Position = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the amount of time a read operation blocks waiting for data.</summary>
|
|
/// <returns>A <see cref="T:System.Int32" /> that specifies the amount of time that will elapse before a read operation fails. </returns>
|
|
// Token: 0x17000524 RID: 1316
|
|
// (get) Token: 0x06000F02 RID: 3842 RVA: 0x0002992C File Offset: 0x00027B2C
|
|
// (set) Token: 0x06000F03 RID: 3843 RVA: 0x00029934 File Offset: 0x00027B34
|
|
public override int ReadTimeout
|
|
{
|
|
get
|
|
{
|
|
return this.readTimeout;
|
|
}
|
|
set
|
|
{
|
|
this.readTimeout = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets information about the identity of the remote party sharing this authenticated stream.</summary>
|
|
/// <returns>An <see cref="T:System.Security.Principal.IIdentity" /> object that describes the identity of the remote endpoint.</returns>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication failed or has not occurred.</exception>
|
|
// Token: 0x17000525 RID: 1317
|
|
// (get) Token: 0x06000F04 RID: 3844 RVA: 0x00029940 File Offset: 0x00027B40
|
|
[global::System.MonoTODO]
|
|
public virtual IIdentity RemoteIdentity
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the amount of time a write operation blocks waiting for data.</summary>
|
|
/// <returns>A <see cref="T:System.Int32" /> that specifies the amount of time that will elapse before a write operation fails. </returns>
|
|
// Token: 0x17000526 RID: 1318
|
|
// (get) Token: 0x06000F05 RID: 3845 RVA: 0x00029948 File Offset: 0x00027B48
|
|
// (set) Token: 0x06000F06 RID: 3846 RVA: 0x00029950 File Offset: 0x00027B50
|
|
public override int WriteTimeout
|
|
{
|
|
get
|
|
{
|
|
return this.writeTimeout;
|
|
}
|
|
set
|
|
{
|
|
this.writeTimeout = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. This method does not block.</summary>
|
|
/// <returns>An <see cref="T:System.IAsyncResult" /> object indicating the status of the asynchronous operation. </returns>
|
|
/// <param name="asyncCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the authentication is complete.</param>
|
|
/// <param name="asyncState">A user-defined object containing information about the operation. This object is passed to the <paramref name="asyncCallback" /> delegate when the operation completes.</param>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
|
|
// Token: 0x06000F07 RID: 3847 RVA: 0x0002995C File Offset: 0x00027B5C
|
|
[global::System.MonoTODO]
|
|
public virtual IAsyncResult BeginAuthenticateAsClient(AsyncCallback callback, object asyncState)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials. This method does not block.</summary>
|
|
/// <returns>An <see cref="T:System.IAsyncResult" /> object indicating the status of the asynchronous operation. </returns>
|
|
/// <param name="credential">The <see cref="T:System.Net.NetworkCredential" /> that is used to establish the identity of the client.</param>
|
|
/// <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
|
|
/// <param name="asyncCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the authentication is complete.</param>
|
|
/// <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the <paramref name="asyncCallback" /> delegate when the operation completes.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="credential" /> is null.- or -<paramref name="targetName" /> is null.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
|
|
// Token: 0x06000F08 RID: 3848 RVA: 0x00029964 File Offset: 0x00027B64
|
|
[global::System.MonoTODO]
|
|
public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, string targetName, AsyncCallback asyncCallback, object asyncState)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Called by clients to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials and authentication options. This method does not block.</summary>
|
|
/// <returns>An <see cref="T:System.IAsyncResult" /> object indicating the status of the asynchronous operation. </returns>
|
|
/// <param name="credential">The <see cref="T:System.Net.NetworkCredential" /> that is used to establish the identity of the client.</param>
|
|
/// <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
|
|
/// <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel" /> values, indicating the security services for the stream.</param>
|
|
/// <param name="allowedImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel" /> values, indicating how the server can use the client's credentials to access resources.</param>
|
|
/// <param name="asyncCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the authentication is complete. </param>
|
|
/// <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the <paramref name="asyncCallback" /> delegate when the operation completes.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="credential" /> is null.- or -<paramref name="targetName" /> is null.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
|
|
// Token: 0x06000F09 RID: 3849 RVA: 0x0002996C File Offset: 0x00027B6C
|
|
[global::System.MonoTODO]
|
|
public virtual IAsyncResult BeginAuthenticateAsClient(NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel, AsyncCallback asyncCallback, object asyncState)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Begins an asynchronous read operation that reads data from the stream and stores it in the specified array. </summary>
|
|
/// <returns>An <see cref="T:System.IAsyncResult" /> object indicating the status of the asynchronous operation. </returns>
|
|
/// <param name="buffer">A <see cref="T:System.Byte" /> array that receives the bytes read from the stream.</param>
|
|
/// <param name="offset">The zero-based location in <paramref name="buffer" /> at which to begin storing the data read from this stream.</param>
|
|
/// <param name="count">The maximum number of bytes to read from the stream.</param>
|
|
/// <param name="asyncCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the read operation is complete. </param>
|
|
/// <param name="asyncState">A user-defined object containing information about the read operation. This object is passed to the <paramref name="asyncCallback" /> delegate when the operation completes.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="buffer" /> is null.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="offset" /> is less than 0.- or -<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.- or -<paramref name="offset" /> plus <paramref name="count" /> is greater than the length of <paramref name="buffer" />.</exception>
|
|
/// <exception cref="T:System.IO.IOException">The read operation failed.- or -Encryption is in use, but the data could not be decrypted.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">There is already a read operation in progress.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
|
|
// Token: 0x06000F0A RID: 3850 RVA: 0x00029974 File Offset: 0x00027B74
|
|
[global::System.MonoTODO]
|
|
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. This method does not block.</summary>
|
|
/// <returns>An <see cref="T:System.IAsyncResult" /> object indicating the status of the asynchronous operation. </returns>
|
|
/// <param name="asyncCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the authentication is complete.</param>
|
|
/// <param name="asyncState">A user-defined object containing information about the operation. This object is passed to the <paramref name="asyncCallback" /> delegate when the operation completes.</param>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
|
|
// Token: 0x06000F0B RID: 3851 RVA: 0x0002997C File Offset: 0x00027B7C
|
|
[global::System.MonoTODO]
|
|
public virtual IAsyncResult BeginAuthenticateAsServer(AsyncCallback callback, object asyncState)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Called by servers to begin an asynchronous operation to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified server credentials and authentication options. This method does not block.</summary>
|
|
/// <returns>An <see cref="T:System.IAsyncResult" /> object indicating the status of the asynchronous operation. </returns>
|
|
/// <param name="credential">The <see cref="T:System.Net.NetworkCredential" /> that is used to establish the identity of the client.</param>
|
|
/// <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel" /> values, indicating the security services for the stream.</param>
|
|
/// <param name="requiredImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel" /> values, indicating how the server can use the client's credentials to access resources.</param>
|
|
/// <param name="asyncCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the authentication is complete.</param>
|
|
/// <param name="asyncState">A user-defined object containing information about the operation. This object is passed to the <paramref name="asyncCallback" /> delegate when the operation completes.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="credential" /> is null.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="requiredImpersonationLevel" /> must be <see cref="F:System.Security.Principal.TokenImpersonationLevel.Identification" />, <see cref="F:System.Security.Principal.TokenImpersonationLevel.Impersonation" />, or <see cref="F:System.Security.Principal.TokenImpersonationLevel.Delegation" />,</exception>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
|
|
// Token: 0x06000F0C RID: 3852 RVA: 0x00029984 File Offset: 0x00027B84
|
|
[global::System.MonoTODO]
|
|
public virtual IAsyncResult BeginAuthenticateAsServer(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel, AsyncCallback asyncCallback, object asyncState)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Begins an asynchronous write operation that writes <see cref="T:System.Byte" />s from the specified buffer to the stream.</summary>
|
|
/// <returns>An <see cref="T:System.IAsyncResult" /> object indicating the status of the asynchronous operation. </returns>
|
|
/// <param name="buffer">A <see cref="T:System.Byte" /> array that supplies the bytes to be written to the stream.</param>
|
|
/// <param name="offset">The zero-based location in<paramref name=" buffer" /> at which to begin reading bytes to be written to the stream.</param>
|
|
/// <param name="count">An <see cref="T:System.Int32" /> value that specifies the number of bytes to read from <paramref name="buffer" />.</param>
|
|
/// <param name="asyncCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the write operation is complete. </param>
|
|
/// <param name="asyncState">A user-defined object containing information about the write operation. This object is passed to the <paramref name="asyncCallback" /> delegate when the operation completes.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="buffer" /> is null.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="offset is less than 0" />.- or -<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.- or -<paramref name="offset" /> plus count is greater than the length of <paramref name="buffer" />.</exception>
|
|
/// <exception cref="T:System.IO.IOException">The write operation failed.- or -Encryption is in use, but the data could not be encrypted.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">There is already a write operation in progress.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
|
|
// Token: 0x06000F0D RID: 3853 RVA: 0x0002998C File Offset: 0x00027B8C
|
|
[global::System.MonoTODO]
|
|
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection.</summary>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
|
|
// Token: 0x06000F0E RID: 3854 RVA: 0x00029994 File Offset: 0x00027B94
|
|
[global::System.MonoTODO]
|
|
public virtual void AuthenticateAsClient()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified client credential. </summary>
|
|
/// <param name="credential">The <see cref="T:System.Net.NetworkCredential" /> that is used to establish the identity of the client.</param>
|
|
/// <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="targetName" /> is null.</exception>
|
|
// Token: 0x06000F0F RID: 3855 RVA: 0x0002999C File Offset: 0x00027B9C
|
|
[global::System.MonoTODO]
|
|
public virtual void AuthenticateAsClient(NetworkCredential credential, string targetName)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Called by clients to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified credentials and authentication options.</summary>
|
|
/// <param name="credential">The <see cref="T:System.Net.NetworkCredential" /> that is used to establish the identity of the client.</param>
|
|
/// <param name="targetName">The Service Principal Name (SPN) that uniquely identifies the server to authenticate.</param>
|
|
/// <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel" /> values, indicating the security services for the stream.</param>
|
|
/// <param name="allowedImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel" /> values, indicating how the server can use the client's credentials to access resources.</param>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="allowedImpersonationLevel" /> is not a valid value.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="targetName" /> is null.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the server. You cannot use the stream to retry authentication as the client.</exception>
|
|
// Token: 0x06000F10 RID: 3856 RVA: 0x000299A4 File Offset: 0x00027BA4
|
|
[global::System.MonoTODO]
|
|
public virtual void AuthenticateAsClient(NetworkCredential credential, string targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection.</summary>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
|
|
// Token: 0x06000F11 RID: 3857 RVA: 0x000299AC File Offset: 0x00027BAC
|
|
[global::System.MonoTODO]
|
|
public virtual void AuthenticateAsServer()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Called by servers to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified server credentials and authentication options.</summary>
|
|
/// <param name="credential">The <see cref="T:System.Net.NetworkCredential" /> that is used to establish the identity of the server.</param>
|
|
/// <param name="requiredProtectionLevel">One of the <see cref="T:System.Net.Security.ProtectionLevel" /> values, indicating the security services for the stream.</param>
|
|
/// <param name="requiredImpersonationLevel">One of the <see cref="T:System.Security.Principal.TokenImpersonationLevel" /> values, indicating how the server can use the client's credentials to access resources.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="credential " />is null.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to try to r-authenticate.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has already occurred.- or -This stream was used previously to attempt authentication as the client. You cannot use the stream to retry authentication as the server.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">Windows 95 and Windows 98 are not supported.</exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="requiredImpersonationLevel" /> must be <see cref="F:System.Security.Principal.TokenImpersonationLevel.Identification" />, <see cref="F:System.Security.Principal.TokenImpersonationLevel.Impersonation" />, or <see cref="F:System.Security.Principal.TokenImpersonationLevel.Delegation" />,</exception>
|
|
// Token: 0x06000F12 RID: 3858 RVA: 0x000299B4 File Offset: 0x00027BB4
|
|
[global::System.MonoTODO]
|
|
public virtual void AuthenticateAsServer(NetworkCredential credential, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel requiredImpersonationLevel)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Security.NegotiateStream" /> and optionally releases the managed resources. </summary>
|
|
/// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources. </param>
|
|
// Token: 0x06000F13 RID: 3859 RVA: 0x000299BC File Offset: 0x00027BBC
|
|
[global::System.MonoTODO]
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing)
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Ends a pending asynchronous client authentication operation that was started with a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient" />.</summary>
|
|
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> instance returned by a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient" />. </param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="asyncResult" /> is null.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="asyncResult" /> was not created by a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsClient" />.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">There is no pending client authentication to complete.</exception>
|
|
// Token: 0x06000F14 RID: 3860 RVA: 0x000299C4 File Offset: 0x00027BC4
|
|
[global::System.MonoTODO]
|
|
public virtual void EndAuthenticateAsClient(IAsyncResult asyncResult)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Ends an asynchronous read operation that was started with a call to <see cref="M:System.Net.Security.NegotiateStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" />.</summary>
|
|
/// <returns>A <see cref="T:System.Int32" /> value that specifies the number of bytes read from the underlying stream.</returns>
|
|
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> instance returned by a call to <see cref="M:System.Net.Security.NegotiateStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /></param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="asyncResult" /> is null.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The asyncResult was not created by a call to <see cref="M:System.Net.Security.NegotiateStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" />.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">There is no pending read operation to complete.</exception>
|
|
/// <exception cref="T:System.IO.IOException">The read operation failed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
|
|
// Token: 0x06000F15 RID: 3861 RVA: 0x000299CC File Offset: 0x00027BCC
|
|
[global::System.MonoTODO]
|
|
public override int EndRead(IAsyncResult asyncResult)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Ends a pending asynchronous client authentication operation that was started with a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsServer" />.</summary>
|
|
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> instance returned by a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsServer" />.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="asyncResult" /> is null.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="asyncResult" /> was not created by a call to <see cref="Overload:System.Net.Security.NegotiateStream.BeginAuthenticateAsServer" />.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.AuthenticationException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.Security.Authentication.InvalidCredentialException">The authentication failed. You can use this object to retry the authentication.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">There is no pending authentication to complete.</exception>
|
|
// Token: 0x06000F16 RID: 3862 RVA: 0x000299D4 File Offset: 0x00027BD4
|
|
[global::System.MonoTODO]
|
|
public virtual void EndAuthenticateAsServer(IAsyncResult asyncResult)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Ends an asynchronous write operation that was started with a call to <see cref="M:System.Net.Security.NegotiateStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" />.</summary>
|
|
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> instance returned by a call to <see cref="M:System.Net.Security.NegotiateStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /></param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="asyncResult" /> is null.</exception>
|
|
/// <exception cref="T:System.ArgumentException">The asyncResult was not created by a call to <see cref="M:System.Net.Security.NegotiateStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" />.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">There is no pending write operation to complete.</exception>
|
|
/// <exception cref="T:System.IO.IOException">The write operation failed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
|
|
// Token: 0x06000F17 RID: 3863 RVA: 0x000299DC File Offset: 0x00027BDC
|
|
[global::System.MonoTODO]
|
|
public override void EndWrite(IAsyncResult asyncResult)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Causes any buffered data to be written to the underlying device.</summary>
|
|
// Token: 0x06000F18 RID: 3864 RVA: 0x000299E4 File Offset: 0x00027BE4
|
|
[global::System.MonoTODO]
|
|
public override void Flush()
|
|
{
|
|
base.InnerStream.Flush();
|
|
}
|
|
|
|
/// <summary>Reads data from this stream and stores it in the specified array.</summary>
|
|
/// <returns>A <see cref="T:System.Int32" /> value that specifies the number of bytes read from the underlying stream. When there is no more data to be read, returns 0.</returns>
|
|
/// <param name="buffer">A <see cref="T:System.Byte" /> array that receives the bytes read from the stream.</param>
|
|
/// <param name="offset">A <see cref="T:System.Int32" /> containing the zero-based location in <paramref name="buffer" /> at which to begin storing the data read from this stream.</param>
|
|
/// <param name="count">A <see cref="T:System.Int32" /> containing the maximum number of bytes to read from the stream.</param>
|
|
/// <exception cref="T:System.IO.IOException">The read operation failed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">A <see cref="M:System.Net.Security.NegotiateStream.Read(System.Byte[],System.Int32,System.Int32)" /> operation is already in progress.</exception>
|
|
// Token: 0x06000F19 RID: 3865 RVA: 0x000299F4 File Offset: 0x00027BF4
|
|
[global::System.MonoTODO]
|
|
public override int Read(byte[] buffer, int offset, int count)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Throws <see cref="T:System.NotSupportedException" />.</summary>
|
|
/// <returns>Always throws a <see cref="T:System.NotSupportedException" />.</returns>
|
|
/// <param name="offset">This value is ignored.</param>
|
|
/// <param name="origin">This value is ignored.</param>
|
|
/// <exception cref="T:System.NotSupportedException">Seeking is not supported on <see cref="T:System.Net.Security.NegotiateStream" />.</exception>
|
|
// Token: 0x06000F1A RID: 3866 RVA: 0x000299FC File Offset: 0x00027BFC
|
|
[global::System.MonoTODO]
|
|
public override long Seek(long offset, SeekOrigin origin)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Sets the length of the underlying stream.</summary>
|
|
/// <param name="value">An <see cref="T:System.Int64" /> value that specifies the length of the stream.</param>
|
|
// Token: 0x06000F1B RID: 3867 RVA: 0x00029A04 File Offset: 0x00027C04
|
|
[global::System.MonoTODO]
|
|
public override void SetLength(long value)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
/// <summary>Write the specified number of <see cref="T:System.Byte" />s to the underlying stream using the specified buffer and offset.</summary>
|
|
/// <param name="buffer">A <see cref="T:System.Byte" /> array that supplies the bytes written to the stream.</param>
|
|
/// <param name="offset">An <see cref="T:System.Int32" /> containing the zero-based location in<paramref name=" buffer" /> at which to begin reading bytes to be written to the stream.</param>
|
|
/// <param name="count">A <see cref="T:System.Int32" /> containing the number of bytes to read from <paramref name="buffer" />.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="buffer" /> is null.</exception>
|
|
/// <exception cref="T:System.ArgumentException">
|
|
/// <paramref name="offset is less than 0" />.- or -<paramref name="offset" /> is greater than the length of <paramref name="buffer" />.- or -<paramref name="offset" /> plus count is greater than the length of <paramref name="buffer" />.</exception>
|
|
/// <exception cref="T:System.IO.IOException">The write operation failed.- or -Encryption is in use, but the data could not be encrypted.</exception>
|
|
/// <exception cref="T:System.NotSupportedException">There is already a write operation in progress.</exception>
|
|
/// <exception cref="T:System.ObjectDisposedException">This object has been closed.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">Authentication has not occurred.</exception>
|
|
// Token: 0x06000F1C RID: 3868 RVA: 0x00029A0C File Offset: 0x00027C0C
|
|
[global::System.MonoTODO]
|
|
public override void Write(byte[] buffer, int offset, int count)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
// Token: 0x04000DA3 RID: 3491
|
|
private int readTimeout;
|
|
|
|
// Token: 0x04000DA4 RID: 3492
|
|
private int writeTimeout;
|
|
}
|
|
}
|