<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.22.0" />

Microsoft.IdentityModel.Tokens.DeflateCompressionProvider

A compression provider that supports compression and decompression using the Deflate algorithm.
public string Algorithm { get; }

Gets the compression algorithm.

Specifies whether compression should emphasize speed or compression size. Set to Optimal by default.

public int MaximumDeflateSize { get; set; }

Gets and sets the maximum deflate size in chars that will be processed.

Initializes a new instance of the DeflateCompressionProvider class used to compress and decompress used the Deflate algorithm.

Initializes a new instance of the DeflateCompressionProvider class used to compress and decompress used the Deflate algorithm. The compression level to use when compressing.

public byte[] Compress(byte[] value)

Compresses the value using the Deflate algorithm.

public byte[] Decompress(byte[] value)

Decompresses the value using Deflate algorithm.

public bool IsSupportedAlgorithm(string algorithm)

Determines whether the specified compression algorithm is supported.