Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Net.​Security.​AuthenticatedStream

Assembly: System.Net.Security

Inheritance: object → MarshalByRefObjectIO.​Stream → AuthenticatedStream

Implemented Interfaces

Provides methods for passing credentials across a stream and requesting or performing authentication for client-server applications.

Properties

protected IO.​Stream
InnerStream
Gets the stream used by this <see cref="T:System.Net.Security.AuthenticatedStream" /> for sending and receiving data.
public bool
IsAuthenticated
Gets a <see cref="T:System.Boolean" /> value that indicates whether authentication was successful.
public bool
IsEncrypted
Gets a <see cref="T:System.Boolean" /> value that indicates whether data sent using this <see cref="T:System.Net.Security.AuthenticatedStream" /> is encrypted.
public bool
IsMutuallyAuthenticated
Gets a <see cref="T:System.Boolean" /> value that indicates whether both server and client have been authenticated.
public bool
IsServer
Gets a <see cref="T:System.Boolean" /> value that indicates whether the local side of the connection was authenticated as the server.
public bool
IsSigned
Gets a <see cref="T:System.Boolean" /> value that indicates whether the data sent using this stream is signed.
public bool
LeaveInnerStreamOpen
Gets whether the stream used by this <see cref="T:System.Net.Security.AuthenticatedStream" /> for sending and receiving data has been left open.
public bool
CanRead
public bool
CanSeek
public bool
CanTimeout
public bool
CanWrite
public long
Length
public long
Position
public int
ReadTimeout
public int
WriteTimeout

Methods

protected void
Dispose​(bool disposing)
Releases the unmanaged resources used by the <see cref="T:System.Net.Security.AuthenticatedStream" /> and optionally releases the managed resources.
disposing <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.
DisposeAsync​()
Asynchronously releases the unmanaged and managed resources used by the <see cref="T:System.Net.Security.AuthenticatedStream" /> .
Returns A task that represents the asynchronous dispose operation.
public IAsyncResult
BeginRead​(byte[] buffer, int offset, int count, AsyncCallback? callback, object state)
Inherited from IO.​Stream
public IAsyncResult
BeginWrite​(byte[] buffer, int offset, int count, AsyncCallback? callback, object state)
Inherited from IO.​Stream
public void
Close​()
Inherited from IO.​Stream
public void
CopyTo​(IO.​Stream destination)
Inherited from IO.​Stream
public void
CopyTo​(IO.​Stream destination, int bufferSize)
Inherited from IO.​Stream
CopyToAsync​(IO.​Stream destination)
Inherited from IO.​Stream
CopyToAsync​(IO.​Stream destination, int bufferSize)
Inherited from IO.​Stream
CopyToAsync​(IO.​Stream destination, int bufferSize, Threading.​CancellationToken cancellationToken)
Inherited from IO.​Stream
CopyToAsync​(IO.​Stream destination, Threading.​CancellationToken cancellationToken)
Inherited from IO.​Stream
CreateWaitHandle​()
Inherited from IO.​Stream
public void
Dispose​()
Inherited from IO.​Stream
public int
EndRead​(IAsyncResult asyncResult)
Inherited from IO.​Stream
public void
EndWrite​(IAsyncResult asyncResult)
Inherited from IO.​Stream
public void
Flush​()
Inherited from IO.​Stream
FlushAsync​()
Inherited from IO.​Stream
FlushAsync​(Threading.​CancellationToken cancellationToken)
Inherited from IO.​Stream
protected void
ObjectInvariant​()
Inherited from IO.​Stream
public int
Read​(byte[] buffer, int offset, int count)
Inherited from IO.​Stream
public int
Read​(Span<​byte> buffer)
Inherited from IO.​Stream
ReadAsync​(byte[] buffer, int offset, int count)
Inherited from IO.​Stream
ReadAsync​(byte[] buffer, int offset, int count, Threading.​CancellationToken cancellationToken)
Inherited from IO.​Stream
ReadAsync​(Memory<​byte> buffer, Threading.​CancellationToken cancellationToken = null)
Inherited from IO.​Stream
public int
ReadAtLeast​(Span<​byte> buffer, int minimumBytes, bool throwOnEndOfStream = true)
Inherited from IO.​Stream
ReadAtLeastAsync​(Memory<​byte> buffer, int minimumBytes, bool throwOnEndOfStream = true, Threading.​CancellationToken cancellationToken = null)
Inherited from IO.​Stream
public int
ReadByte​()
Inherited from IO.​Stream
public void
ReadExactly​(byte[] buffer, int offset, int count)
Inherited from IO.​Stream
public void
ReadExactly​(Span<​byte> buffer)
Inherited from IO.​Stream
ReadExactlyAsync​(byte[] buffer, int offset, int count, Threading.​CancellationToken cancellationToken = null)
Inherited from IO.​Stream
ReadExactlyAsync​(Memory<​byte> buffer, Threading.​CancellationToken cancellationToken = null)
Inherited from IO.​Stream
public long
Seek​(long offset, IO.​SeekOrigin origin)
Inherited from IO.​Stream
public void
SetLength​(long value)
Inherited from IO.​Stream
public void
Write​(byte[] buffer, int offset, int count)
Inherited from IO.​Stream
public void
Write​(ReadOnlySpan<​byte> buffer)
Inherited from IO.​Stream
WriteAsync​(byte[] buffer, int offset, int count)
Inherited from IO.​Stream
WriteAsync​(byte[] buffer, int offset, int count, Threading.​CancellationToken cancellationToken)
Inherited from IO.​Stream
WriteAsync​(ReadOnlyMemory<​byte> buffer, Threading.​CancellationToken cancellationToken = null)
Inherited from IO.​Stream
public void
WriteByte​(byte value)
Inherited from IO.​Stream
public object
GetLifetimeService​()
Inherited from MarshalByRefObject
public object
InitializeLifetimeService​()
Inherited from MarshalByRefObject
protected MarshalByRefObject
MemberwiseClone​(bool cloneIdentity)
Inherited from MarshalByRefObject
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object