using System;
using System.IO;
using System.Security.Principal;
namespace System.Net.Security
{
/// Provides a stream that uses the Negotiate security protocol to authenticate the client, and optionally the server, in client-server communication.
// Token: 0x020001D4 RID: 468
public class NegotiateStream : AuthenticatedStream
{
/// Initializes a new instance of the class using the specified .
/// A object used by the for sending and receiving data.
// Token: 0x06000EF3 RID: 3827 RVA: 0x0002987C File Offset: 0x00027A7C
[global::System.MonoTODO]
public NegotiateStream(Stream innerStream)
: base(innerStream, false)
{
}
/// Initializes a new instance of the class using the specified and stream closure behavior.
/// A object used by the for sending and receiving data.
/// true to indicate that closing this has no effect on ; false to indicate that closing this also closes . See the Remarks section for more information.
///
/// is null.- or - is equal to .
// Token: 0x06000EF4 RID: 3828 RVA: 0x00029888 File Offset: 0x00027A88
[global::System.MonoTODO]
public NegotiateStream(Stream innerStream, bool leaveStreamOpen)
: base(innerStream, leaveStreamOpen)
{
}
/// Gets a value that indicates whether the underlying stream is readable.
/// true if authentication has occurred and the underlying stream is readable; otherwise, false.
// Token: 0x17000518 RID: 1304
// (get) Token: 0x06000EF5 RID: 3829 RVA: 0x00029894 File Offset: 0x00027A94
public override bool CanRead
{
get
{
return base.InnerStream.CanRead;
}
}
/// Gets a value that indicates whether the underlying stream is seekable.
/// This property always returns false.
// Token: 0x17000519 RID: 1305
// (get) Token: 0x06000EF6 RID: 3830 RVA: 0x000298A4 File Offset: 0x00027AA4
public override bool CanSeek
{
get
{
return base.InnerStream.CanSeek;
}
}
/// Gets a value that indicates whether the underlying stream supports time-outs.
/// true if the underlying stream supports time-outs; otherwise, false.
// 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();
}
}
/// Gets a value that indicates whether the underlying stream is writable.
/// true if authentication has occurred and the underlying stream is writable; otherwise, false.
// Token: 0x1700051B RID: 1307
// (get) Token: 0x06000EF8 RID: 3832 RVA: 0x000298BC File Offset: 0x00027ABC
public override bool CanWrite
{
get
{
return base.InnerStream.CanWrite;
}
}
/// Gets a value that indicates how the server can use the client's credentials.
/// One of the values.
/// Authentication failed or has not occurred.
// 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();
}
}
/// Gets a value that indicates whether authentication was successful.
/// true if successful authentication occurred; otherwise, false.
// 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();
}
}
/// Gets a value that indicates whether this uses data encryption.
/// true if data is encrypted before being transmitted over the network and decrypted when it reaches the remote endpoint; otherwise, false.
// 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();
}
}
/// Gets a value that indicates whether both the server and the client have been authenticated.
/// true if the server has been authenticated; otherwise, false.
// 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();
}
}
/// Gets a value that indicates whether the local side of the connection used by this was authenticated as the server.
/// true if the local endpoint was successfully authenticated as the server side of the authenticated connection; otherwise, false.
// 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();
}
}
/// Gets a value that indicates whether the data sent using this stream is signed.
/// true if the data is signed before being transmitted; otherwise, false.
// 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();
}
}
/// Gets the length of the underlying stream.
/// A that specifies the length of the underlying stream.
/// Getting the value of this property is not supported when the underlying stream is a .
// Token: 0x17000522 RID: 1314
// (get) Token: 0x06000EFF RID: 3839 RVA: 0x000298FC File Offset: 0x00027AFC
public override long Length
{
get
{
return base.InnerStream.Length;
}
}
/// Gets or sets the current position in the underlying stream.
/// A that specifies the current position in the underlying stream.
/// Setting this property is not supported.- or -Getting the value of this property is not supported when the underlying stream is a .
// 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;
}
}
/// Gets or sets the amount of time a read operation blocks waiting for data.
/// A that specifies the amount of time that will elapse before a read operation fails.
// 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;
}
}
/// Gets information about the identity of the remote party sharing this authenticated stream.
/// An object that describes the identity of the remote endpoint.
/// Authentication failed or has not occurred.
// 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();
}
}
/// Gets or sets the amount of time a write operation blocks waiting for data.
/// A that specifies the amount of time that will elapse before a write operation fails.
// 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;
}
}
/// 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.
/// An object indicating the status of the asynchronous operation.
/// An delegate that references the method to invoke when the authentication is complete.
/// A user-defined object containing information about the operation. This object is passed to the delegate when the operation completes.
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// 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.
// Token: 0x06000F07 RID: 3847 RVA: 0x0002995C File Offset: 0x00027B5C
[global::System.MonoTODO]
public virtual IAsyncResult BeginAuthenticateAsClient(AsyncCallback callback, object asyncState)
{
throw new NotImplementedException();
}
/// 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.
/// An object indicating the status of the asynchronous operation.
/// The that is used to establish the identity of the client.
/// The Service Principal Name (SPN) that uniquely identifies the server to authenticate.
/// An delegate that references the method to invoke when the authentication is complete.
/// A user-defined object containing information about the write operation. This object is passed to the delegate when the operation completes.
///
/// is null.- or - is null.
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// 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.
// 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();
}
/// 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.
/// An object indicating the status of the asynchronous operation.
/// The that is used to establish the identity of the client.
/// The Service Principal Name (SPN) that uniquely identifies the server to authenticate.
/// One of the values, indicating the security services for the stream.
/// One of the values, indicating how the server can use the client's credentials to access resources.
/// An delegate that references the method to invoke when the authentication is complete.
/// A user-defined object containing information about the write operation. This object is passed to the delegate when the operation completes.
///
/// is null.- or - is null.
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// 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.
// 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();
}
/// Begins an asynchronous read operation that reads data from the stream and stores it in the specified array.
/// An object indicating the status of the asynchronous operation.
/// A array that receives the bytes read from the stream.
/// The zero-based location in at which to begin storing the data read from this stream.
/// The maximum number of bytes to read from the stream.
/// An delegate that references the method to invoke when the read operation is complete.
/// A user-defined object containing information about the read operation. This object is passed to the delegate when the operation completes.
///
/// is null.
///
/// is less than 0.- or - is greater than the length of .- or - plus is greater than the length of .
/// The read operation failed.- or -Encryption is in use, but the data could not be decrypted.
/// There is already a read operation in progress.
/// This object has been closed.
/// Authentication has not occurred.
// 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();
}
/// 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.
/// An object indicating the status of the asynchronous operation.
/// An delegate that references the method to invoke when the authentication is complete.
/// A user-defined object containing information about the operation. This object is passed to the delegate when the operation completes.
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// Windows 95 and Windows 98 are not supported.
// Token: 0x06000F0B RID: 3851 RVA: 0x0002997C File Offset: 0x00027B7C
[global::System.MonoTODO]
public virtual IAsyncResult BeginAuthenticateAsServer(AsyncCallback callback, object asyncState)
{
throw new NotImplementedException();
}
/// 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.
/// An object indicating the status of the asynchronous operation.
/// The that is used to establish the identity of the client.
/// One of the values, indicating the security services for the stream.
/// One of the values, indicating how the server can use the client's credentials to access resources.
/// An delegate that references the method to invoke when the authentication is complete.
/// A user-defined object containing information about the operation. This object is passed to the delegate when the operation completes.
///
/// is null.
///
/// must be , , or ,
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// 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.
/// Windows 95 and Windows 98 are not supported.
// 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();
}
/// Begins an asynchronous write operation that writes s from the specified buffer to the stream.
/// An object indicating the status of the asynchronous operation.
/// A array that supplies the bytes to be written to the stream.
/// The zero-based location in at which to begin reading bytes to be written to the stream.
/// An value that specifies the number of bytes to read from .
/// An delegate that references the method to invoke when the write operation is complete.
/// A user-defined object containing information about the write operation. This object is passed to the delegate when the operation completes.
///
/// is null.
///
/// .- or - is greater than the length of .- or - plus count is greater than the length of .
/// The write operation failed.- or -Encryption is in use, but the data could not be encrypted.
/// There is already a write operation in progress.
/// This object has been closed.
/// Authentication has not occurred.
// 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();
}
/// Called by clients to authenticate the client, and optionally the server, in a client-server connection.
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// 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.
// Token: 0x06000F0E RID: 3854 RVA: 0x00029994 File Offset: 0x00027B94
[global::System.MonoTODO]
public virtual void AuthenticateAsClient()
{
throw new NotImplementedException();
}
/// Called by clients to authenticate the client, and optionally the server, in a client-server connection. The authentication process uses the specified client credential.
/// The that is used to establish the identity of the client.
/// The Service Principal Name (SPN) that uniquely identifies the server to authenticate.
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// 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.
///
/// is null.
// Token: 0x06000F0F RID: 3855 RVA: 0x0002999C File Offset: 0x00027B9C
[global::System.MonoTODO]
public virtual void AuthenticateAsClient(NetworkCredential credential, string targetName)
{
throw new NotImplementedException();
}
/// 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.
/// The that is used to establish the identity of the client.
/// The Service Principal Name (SPN) that uniquely identifies the server to authenticate.
/// One of the values, indicating the security services for the stream.
/// One of the values, indicating how the server can use the client's credentials to access resources.
///
/// is not a valid value.
///
/// is null.
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// 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.
// 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();
}
/// Called by servers to authenticate the client, and optionally the server, in a client-server connection.
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// Windows 95 and Windows 98 are not supported.
// Token: 0x06000F11 RID: 3857 RVA: 0x000299AC File Offset: 0x00027BAC
[global::System.MonoTODO]
public virtual void AuthenticateAsServer()
{
throw new NotImplementedException();
}
/// 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.
/// The that is used to establish the identity of the server.
/// One of the values, indicating the security services for the stream.
/// One of the values, indicating how the server can use the client's credentials to access resources.
///
/// is null.
/// The authentication failed. You can use this object to try to r-authenticate.
/// The authentication failed. You can use this object to retry the authentication.
/// This object has been closed.
/// 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.
/// Windows 95 and Windows 98 are not supported.
///
/// must be , , or ,
// 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();
}
/// Releases the unmanaged resources used by the and optionally releases the managed resources.
/// true to release both managed and unmanaged resources; false to release only unmanaged resources.
// Token: 0x06000F13 RID: 3859 RVA: 0x000299BC File Offset: 0x00027BBC
[global::System.MonoTODO]
protected override void Dispose(bool disposing)
{
if (disposing)
{
}
}
/// Ends a pending asynchronous client authentication operation that was started with a call to .
/// An instance returned by a call to .
///
/// is null.
///
/// was not created by a call to .
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// There is no pending client authentication to complete.
// Token: 0x06000F14 RID: 3860 RVA: 0x000299C4 File Offset: 0x00027BC4
[global::System.MonoTODO]
public virtual void EndAuthenticateAsClient(IAsyncResult asyncResult)
{
throw new NotImplementedException();
}
/// Ends an asynchronous read operation that was started with a call to .
/// A value that specifies the number of bytes read from the underlying stream.
/// An instance returned by a call to
///
/// is null.
/// The asyncResult was not created by a call to .
/// There is no pending read operation to complete.
/// The read operation failed.
/// Authentication has not occurred.
// Token: 0x06000F15 RID: 3861 RVA: 0x000299CC File Offset: 0x00027BCC
[global::System.MonoTODO]
public override int EndRead(IAsyncResult asyncResult)
{
throw new NotImplementedException();
}
/// Ends a pending asynchronous client authentication operation that was started with a call to .
/// An instance returned by a call to .
///
/// is null.
///
/// was not created by a call to .
/// The authentication failed. You can use this object to retry the authentication.
/// The authentication failed. You can use this object to retry the authentication.
/// There is no pending authentication to complete.
// Token: 0x06000F16 RID: 3862 RVA: 0x000299D4 File Offset: 0x00027BD4
[global::System.MonoTODO]
public virtual void EndAuthenticateAsServer(IAsyncResult asyncResult)
{
throw new NotImplementedException();
}
/// Ends an asynchronous write operation that was started with a call to .
/// An instance returned by a call to
///
/// is null.
/// The asyncResult was not created by a call to .
/// There is no pending write operation to complete.
/// The write operation failed.
/// Authentication has not occurred.
// Token: 0x06000F17 RID: 3863 RVA: 0x000299DC File Offset: 0x00027BDC
[global::System.MonoTODO]
public override void EndWrite(IAsyncResult asyncResult)
{
throw new NotImplementedException();
}
/// Causes any buffered data to be written to the underlying device.
// Token: 0x06000F18 RID: 3864 RVA: 0x000299E4 File Offset: 0x00027BE4
[global::System.MonoTODO]
public override void Flush()
{
base.InnerStream.Flush();
}
/// Reads data from this stream and stores it in the specified array.
/// A value that specifies the number of bytes read from the underlying stream. When there is no more data to be read, returns 0.
/// A array that receives the bytes read from the stream.
/// A containing the zero-based location in at which to begin storing the data read from this stream.
/// A containing the maximum number of bytes to read from the stream.
/// The read operation failed.
/// Authentication has not occurred.
/// A operation is already in progress.
// 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();
}
/// Throws .
/// Always throws a .
/// This value is ignored.
/// This value is ignored.
/// Seeking is not supported on .
// Token: 0x06000F1A RID: 3866 RVA: 0x000299FC File Offset: 0x00027BFC
[global::System.MonoTODO]
public override long Seek(long offset, SeekOrigin origin)
{
throw new NotImplementedException();
}
/// Sets the length of the underlying stream.
/// An value that specifies the length of the stream.
// Token: 0x06000F1B RID: 3867 RVA: 0x00029A04 File Offset: 0x00027C04
[global::System.MonoTODO]
public override void SetLength(long value)
{
throw new NotImplementedException();
}
/// Write the specified number of s to the underlying stream using the specified buffer and offset.
/// A array that supplies the bytes written to the stream.
/// An containing the zero-based location in at which to begin reading bytes to be written to the stream.
/// A containing the number of bytes to read from .
///
/// is null.
///
/// .- or - is greater than the length of .- or - plus count is greater than the length of .
/// The write operation failed.- or -Encryption is in use, but the data could not be encrypted.
/// There is already a write operation in progress.
/// This object has been closed.
/// Authentication has not occurred.
// 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;
}
}