Ejemplo n.º 1
0
        /// <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));
        }
Ejemplo n.º 2
0
 /// <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));
 }