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.

interface Microsoft.​IdentityModel.​Tokens.​ICompressionProvider

Assembly: Microsoft.IdentityModel.Tokens

Provides methods for compressing and decompressing data.

Properties

string
Algorithm
Gets the compression algorithm used by the provider.

Methods

bool
IsSupportedAlgorithm​(string algorithm)
Determines if a specified algorithm is supported by the provider.
Returns <see langword="true" /> if the algorithm is supported; otherwise, <see langword="false" /> .
algorithm The compression algorithm to check.
byte[]
Decompress​(byte[] value)
Decompresses the specified byte array.
Returns A byte array containing the decompressed data.
value The byte array to decompress.
byte[]
Compress​(byte[] value)
Compresses the specified byte array.
Returns A byte array containing the compressed data.
value The byte array to compress.