C# Class Thinktecture.IdentityModel.Tokens.CompressedSecurityTokenHandler

Security token handler that adds a compression aspect to the token handler pipeline. Similar to the encryption aspect of EncryptedSecurityTokenHandler.
Inheritance: System.IdentityModel.Tokens.SecurityTokenHandler
Show file Open project: IdentityModel/Thinktecture.IdentityModel.v1

Public Methods

Method Description
CanReadToken ( XmlReader reader ) : bool

Determines whether this instance can read a CompressedSecurityToken.

GetTokenTypeIdentifiers ( ) : string[]

Gets the token type identifiers.

ReadToken ( XmlReader reader ) : System.IdentityModel.Tokens.SecurityToken

Reads the token.

WriteToken ( XmlWriter writer, System.IdentityModel.Tokens.SecurityToken token ) : void

Writes the token.

Protected Methods

Method Description
Compress ( string input ) : string

Compresses the specified string.

Decompress ( string input ) : string

Decompresses the specified compressed string.

Method Details

CanReadToken() public method

Determines whether this instance can read a CompressedSecurityToken.
public CanReadToken ( XmlReader reader ) : bool
reader XmlReader The reader.
return bool

Compress() protected method

Compresses the specified string.
protected Compress ( string input ) : string
input string A string.
return string

Decompress() protected method

Decompresses the specified compressed string.
protected Decompress ( string input ) : string
input string The compressed string.
return string

GetTokenTypeIdentifiers() public method

Gets the token type identifiers.
public GetTokenTypeIdentifiers ( ) : string[]
return string[]

ReadToken() public method

Reads the token.
public ReadToken ( XmlReader reader ) : System.IdentityModel.Tokens.SecurityToken
reader XmlReader The reader.
return System.IdentityModel.Tokens.SecurityToken

WriteToken() public method

Writes the token.
public WriteToken ( XmlWriter writer, System.IdentityModel.Tokens.SecurityToken token ) : void
writer System.Xml.XmlWriter The writer.
token System.IdentityModel.Tokens.SecurityToken The token.
return void