예제 #1
0
        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;
                }
            }
        }
예제 #2
0
 /// <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);
 }