private void HandleCredentialsFactory(XmlNode node, ClientSecurityConfig clientSecurityConfig) { var className = GetAttribute(node, "class-name"); var credentialsFactoryConfig = new CredentialsFactoryConfig(className); clientSecurityConfig.SetCredentialsFactoryConfig(credentialsFactoryConfig); foreach (XmlNode child in node.ChildNodes) { var nodeName = CleanNodeName(child.Name); if ("properties".Equals(nodeName)) { FillProperties(child, credentialsFactoryConfig.GetProperties()); break; } } }
/// <summary> /// Credentials Factory Config allows user to pass custom properties and use group config when instantiating a credentials object. /// </summary> /// <param name="credentialsFactoryConfig">the config that will be used to create credentials factory</param> /// <returns>configured <see cref="ClientSecurityConfig"/> for chaining</returns> public ClientSecurityConfig SetCredentialsFactoryConfig(CredentialsFactoryConfig credentialsFactoryConfig) { this.credentialsFactoryConfig = credentialsFactoryConfig; return(this); }