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: 0x020002F3 RID: 755
|
|
[Token(Token = "0x20002F3")]
|
|
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: 0x06001431 RID: 5169 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001431")]
|
|
[Address(RVA = "0x2226980", Offset = "0x2225780", VA = "0x182226980")]
|
|
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: 0x17000415 RID: 1045
|
|
// (get) Token: 0x06001432 RID: 5170 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000415")]
|
|
protected Stream InnerStream
|
|
{
|
|
[Token(Token = "0x6001432")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
|
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: 0x06001433 RID: 5171 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001433")]
|
|
[Address(RVA = "0x22268B0", Offset = "0x22256B0", VA = "0x1822268B0", 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: 0x17000416 RID: 1046
|
|
// (get) Token: 0x06001434 RID: 5172
|
|
[Token(Token = "0x17000416")]
|
|
public abstract bool IsAuthenticated
|
|
{
|
|
[Token(Token = "0x6001434")]
|
|
[Address(Slot = "31")]
|
|
get;
|
|
}
|
|
|
|
// Token: 0x04000CCE RID: 3278
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000CCE")]
|
|
private Stream _InnerStream;
|
|
|
|
// Token: 0x04000CCF RID: 3279
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000CCF")]
|
|
private bool _LeaveStreamOpen;
|
|
}
|
|
}
|