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
Afficher le fichier Open project: IdentityModel/Thinktecture.IdentityModel.v1

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Compress ( string input ) : string

Compresses the specified string.

Decompress ( string input ) : string

Decompresses the specified compressed string.

Method Details

CanReadToken() public méthode

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

Compress() protected méthode

Compresses the specified string.
protected Compress ( string input ) : string
input string A string.
Résultat string

Decompress() protected méthode

Decompresses the specified compressed string.
protected Decompress ( string input ) : string
input string The compressed string.
Résultat string

GetTokenTypeIdentifiers() public méthode

Gets the token type identifiers.
public GetTokenTypeIdentifiers ( ) : string[]
Résultat string[]

ReadToken() public méthode

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

WriteToken() public méthode

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.
Résultat void