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 Microsoft.​IdentityModel.​Tokens.​DeflateCompressionProvider

Assembly: Microsoft.IdentityModel.Tokens

Inheritance: object → DeflateCompressionProvider

Implemented Interfaces

A compression provider that supports compression and decompression using the <see cref="F:Microsoft.IdentityModel.Tokens.CompressionAlgorithms.Deflate" /> algorithm.

Properties

public string
Algorithm
Gets the compression algorithm.
Specifies whether compression should emphasize speed or compression size. Set to <see cref="F:System.IO.Compression.CompressionLevel.Optimal" /> by default.
public int
MaximumDeflateSize
Gets and sets the maximum deflate size in chars that will be processed.

Methods

public byte[]
Decompress​(byte[] value)
Decompresses the value using Deflate algorithm.
Returns The decompressed bytes.
value The bytes to decompress.
public byte[]
Compress​(byte[] value)
Compresses the value using the Deflate algorithm.
Returns The compressed bytes.
value The bytes to compress.
public bool
IsSupportedAlgorithm​(string algorithm)
Determines whether the specified compression algorithm is supported.
Returns <see langword="true" /> if the compression algorithm is supported; otherwise, <see langword="false" /> .
algorithm The name of the compression algorithm.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object