Show / Hide Table of Contents

    Class SilverbackCryptoStream

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Inheritance
    object
    MarshalByRefObject
    Stream
    SilverbackCryptoStream
    SymmetricDecryptStream
    SymmetricEncryptStream
    Implements
    IDisposable
    IAsyncDisposable
    Inherited Members
    Stream.Null
    Stream.CopyTo(Stream)
    Stream.CopyTo(Stream, int)
    Stream.CopyToAsync(Stream)
    Stream.CopyToAsync(Stream, int)
    Stream.CopyToAsync(Stream, CancellationToken)
    Stream.CopyToAsync(Stream, int, CancellationToken)
    Stream.Dispose()
    Stream.Dispose(bool)
    Stream.DisposeAsync()
    Stream.FlushAsync()
    Stream.CreateWaitHandle()
    Stream.BeginRead(byte[], int, int, AsyncCallback, object)
    Stream.EndRead(IAsyncResult)
    Stream.ReadAsync(byte[], int, int)
    Stream.ReadExactlyAsync(Memory<byte>, CancellationToken)
    Stream.ReadExactlyAsync(byte[], int, int, CancellationToken)
    Stream.ReadAtLeastAsync(Memory<byte>, int, bool, CancellationToken)
    Stream.BeginWrite(byte[], int, int, AsyncCallback, object)
    Stream.EndWrite(IAsyncResult)
    Stream.WriteAsync(byte[], int, int)
    Stream.ReadByte()
    Stream.ReadExactly(Span<byte>)
    Stream.ReadExactly(byte[], int, int)
    Stream.ReadAtLeast(Span<byte>, int, bool)
    Stream.Write(ReadOnlySpan<byte>)
    Stream.WriteByte(byte)
    Stream.Synchronized(Stream)
    Stream.ObjectInvariant()
    Stream.ValidateBufferArguments(byte[], int, int)
    Stream.ValidateCopyToArguments(Stream, int)
    Stream.CanTimeout
    Stream.ReadTimeout
    Stream.WriteTimeout
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.MemberwiseClone(bool)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Messaging.Encryption
    Assembly: Silverback.Integration.dll
    Syntax
    public abstract class SilverbackCryptoStream : Stream, IDisposable, IAsyncDisposable

    Constructors

    SilverbackCryptoStream()

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    protected SilverbackCryptoStream()

    Properties

    CanRead

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override bool CanRead { get; }
    Property Value
    Type Description
    bool
    Overrides
    Stream.CanRead

    CanSeek

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override bool CanSeek { get; }
    Property Value
    Type Description
    bool
    Overrides
    Stream.CanSeek

    CanWrite

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override bool CanWrite { get; }
    Property Value
    Type Description
    bool
    Overrides
    Stream.CanWrite

    CryptoStream

    Gets the underlying CryptoStream.

    Declaration
    protected abstract CryptoStream CryptoStream { get; }
    Property Value
    Type Description
    CryptoStream

    Length

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override long Length { get; }
    Property Value
    Type Description
    long
    Overrides
    Stream.Length

    Position

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override long Position { get; set; }
    Property Value
    Type Description
    long
    Overrides
    Stream.Position

    Methods

    Close()

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override void Close()
    Overrides
    Stream.Close()

    Flush()

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override void Flush()
    Overrides
    Stream.Flush()

    FlushAsync(CancellationToken)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override Task FlushAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    Overrides
    Stream.FlushAsync(CancellationToken)

    Read(byte[], int, int)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override int Read(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    byte[] buffer
    int offset
    int count
    Returns
    Type Description
    int
    Overrides
    Stream.Read(byte[], int, int)

    Read(Span<byte>)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override int Read(Span<byte> buffer)
    Parameters
    Type Name Description
    Span<byte> buffer
    Returns
    Type Description
    int
    Overrides
    Stream.Read(Span<byte>)

    ReadAsync(byte[], int, int, CancellationToken)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    byte[] buffer
    int offset
    int count
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<int>
    Overrides
    Stream.ReadAsync(byte[], int, int, CancellationToken)

    ReadAsync(Memory<byte>, CancellationToken)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    Memory<byte> buffer
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask<int>
    Overrides
    Stream.ReadAsync(Memory<byte>, CancellationToken)

    Seek(long, SeekOrigin)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override long Seek(long offset, SeekOrigin origin)
    Parameters
    Type Name Description
    long offset
    SeekOrigin origin
    Returns
    Type Description
    long
    Overrides
    Stream.Seek(long, SeekOrigin)

    SetLength(long)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override void SetLength(long value)
    Parameters
    Type Name Description
    long value
    Overrides
    Stream.SetLength(long)

    Write(byte[], int, int)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override void Write(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    byte[] buffer
    int offset
    int count
    Overrides
    Stream.Write(byte[], int, int)

    WriteAsync(byte[], int, int, CancellationToken)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    byte[] buffer
    int offset
    int count
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    Overrides
    Stream.WriteAsync(byte[], int, int, CancellationToken)

    WriteAsync(ReadOnlyMemory<byte>, CancellationToken)

    The base class for the Stream implementations used to encrypt and decrypt the integration messages.

    Declaration
    public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ReadOnlyMemory<byte> buffer
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    Overrides
    Stream.WriteAsync(ReadOnlyMemory<byte>, CancellationToken)

    Implements

    IDisposable
    IAsyncDisposable
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini