75 lines
3.2 KiB
C#
75 lines
3.2 KiB
C#
using System;
|
|
using System.IO;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net.Security
|
|
{
|
|
/// <summary>Provides methods for passing credentials across a stream and requesting or performing authentication for client-server applications.</summary>
|
|
// Token: 0x020002EF RID: 751
|
|
[Token(Token = "0x20002EF")]
|
|
public abstract class AuthenticatedStream : Stream
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Security.AuthenticatedStream" /> class.</summary>
|
|
/// <param name="innerStream">A <see cref="T:System.IO.Stream" /> object used by the <see cref="T:System.Net.Security.AuthenticatedStream" /> for sending and receiving data.</param>
|
|
/// <param name="leaveInnerStreamOpen">A <see cref="T:System.Boolean" /> that indicates whether closing this <see cref="T:System.Net.Security.AuthenticatedStream" /> object also closes <paramref name="innerStream" />.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="innerStream" /> is <see langword="null" />.
|
|
/// -or-
|
|
/// <paramref name="innerStream" /> is equal to <see cref="F:System.IO.Stream.Null" />.</exception>
|
|
// Token: 0x0600141B RID: 5147 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600141B")]
|
|
[Address(RVA = "0x8A0DE0", Offset = "0x89FDE0", VA = "0x1808A0DE0")]
|
|
protected AuthenticatedStream(Stream innerStream, bool leaveInnerStreamOpen)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the stream used by this <see cref="T:System.Net.Security.AuthenticatedStream" /> for sending and receiving data.</summary>
|
|
/// <returns>A <see cref="T:System.IO.Stream" /> object.</returns>
|
|
// Token: 0x17000411 RID: 1041
|
|
// (get) Token: 0x0600141C RID: 5148 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000411")]
|
|
protected Stream InnerStream
|
|
{
|
|
[Token(Token = "0x600141C")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Security.AuthenticatedStream" /> and optionally releases the managed resources.</summary>
|
|
/// <param name="disposing">
|
|
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
|
|
// Token: 0x0600141D RID: 5149 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600141D")]
|
|
[Address(RVA = "0x8A0D10", Offset = "0x89FD10", VA = "0x1808A0D10", Slot = "16")]
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.Boolean" /> value that indicates whether authentication was successful.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if successful authentication occurred; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x17000412 RID: 1042
|
|
// (get) Token: 0x0600141E RID: 5150
|
|
[Token(Token = "0x17000412")]
|
|
public abstract bool IsAuthenticated
|
|
{
|
|
[Token(Token = "0x600141E")]
|
|
[Address(Slot = "31")]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x04000CC1 RID: 3265
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000CC1")]
|
|
private Stream _InnerStream;
|
|
|
|
// Token: 0x04000CC2 RID: 3266
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000CC2")]
|
|
private bool _LeaveStreamOpen;
|
|
}
|
|
}
|