/// <summary> /// Turns a RST/RSTR pair into a GenericXmlSecurityToken. /// </summary> /// <param name="rstr">The RSTR.</param> /// <param name="rst">The RST.</param> /// <returns>A GenericXmlSecurityToken</returns> public static GenericXmlSecurityToken ToGenericXmlSecurityToken(this RequestSecurityTokenResponse rstr, RequestSecurityToken rst) { var proofKey = rstr.GetProofKey(rst); return(rstr.ToGenericXmlSecurityToken(proofKey)); }
/// <summary> /// Turns a RSTR into a GenericXmlSecurityToken. /// </summary> /// <param name="rstr">The RSTR.</param> /// <returns>A GenericXmlSecurityToken</returns> public static GenericXmlSecurityToken ToGenericXmlSecurityToken(this RequestSecurityTokenResponse rstr) { return(rstr.ToGenericXmlSecurityToken((SecurityToken)null)); }