C# Class Thinktecture.IdentityModel.Extensions.RequestSecurityTokenResponseExtensions

Extension methods for RequestSecurityTokenResponse
显示文件 Open project: IdentityModel/Thinktecture.IdentityModel.v1

Public Methods

Method 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

Method 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 method

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.
return System.IdentityModel.Tokens.SecurityToken

ToGenericXmlSecurityToken() public static method

Turns a RSTR into a GenericXmlSecurityToken.
public static ToGenericXmlSecurityToken ( this rstr ) : GenericXmlSecurityToken
rstr this The RSTR.
return GenericXmlSecurityToken

ToGenericXmlSecurityToken() public static method

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

ToGenericXmlSecurityToken() public static method

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.
return GenericXmlSecurityToken