C# Class Thinktecture.IdentityModel.Extensions.RequestSecurityTokenResponseExtensions

Extension methods for RequestSecurityTokenResponse
Afficher le fichier Open project: IdentityModel/Thinktecture.IdentityModel.v1

Méthodes publiques

Méthode Description
GetProofKey ( this rstr, RequestSecurityToken rst ) : System.IdentityModel.Tokens.SecurityToken

Gets the proof key from an RST/RSTR pair.

ToGenericXmlSecurityToken ( this rstr ) : GenericXmlSecurityToken

Turns a RSTR into a GenericXmlSecurityToken.

ToGenericXmlSecurityToken ( this rstr, RequestSecurityToken rst ) : GenericXmlSecurityToken

Turns a RST/RSTR pair into a GenericXmlSecurityToken.

ToGenericXmlSecurityToken ( this rstr, System.IdentityModel.Tokens.SecurityToken proofKey ) : GenericXmlSecurityToken

Turns a RST/ProofKey pair into a GenericXmlSecurityToken.

Private Methods

Méthode Description
ComputeProofKey ( RequestSecurityToken rst, RequestSecurityTokenResponse rstr ) : System.IdentityModel.Tokens.SecurityToken
ExtractTokenXml ( RequestSecurityTokenResponse rstr ) : XmlElement
GetKeyType ( string keyType ) : ProofKeyType
GetUseKeySecurityToken ( UseKey useKey, string requestKeyType ) : System.IdentityModel.Tokens.SecurityToken
IsPsha1 ( string algorithm ) : bool

Method Details

GetProofKey() public static méthode

Gets the proof key from an RST/RSTR pair.
public static GetProofKey ( this rstr, RequestSecurityToken rst ) : System.IdentityModel.Tokens.SecurityToken
rstr this The RSTR.
rst RequestSecurityToken The RST.
Résultat System.IdentityModel.Tokens.SecurityToken

ToGenericXmlSecurityToken() public static méthode

Turns a RSTR into a GenericXmlSecurityToken.
public static ToGenericXmlSecurityToken ( this rstr ) : GenericXmlSecurityToken
rstr this The RSTR.
Résultat GenericXmlSecurityToken

ToGenericXmlSecurityToken() public static méthode

Turns a RST/RSTR pair into a GenericXmlSecurityToken.
public static ToGenericXmlSecurityToken ( this rstr, RequestSecurityToken rst ) : GenericXmlSecurityToken
rstr this The RSTR.
rst RequestSecurityToken The RST.
Résultat GenericXmlSecurityToken

ToGenericXmlSecurityToken() public static méthode

Turns a RST/ProofKey pair into a GenericXmlSecurityToken.
public static ToGenericXmlSecurityToken ( this rstr, System.IdentityModel.Tokens.SecurityToken proofKey ) : GenericXmlSecurityToken
rstr this The RSTR.
proofKey System.IdentityModel.Tokens.SecurityToken The ProofKey.
Résultat GenericXmlSecurityToken