internal void Copy(IssuedTokenParametersElement source)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (source == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source");
     }
     foreach (XmlElementElement element in source.AdditionalRequestParameters)
     {
         XmlElementElement element2 = new XmlElementElement();
         element2.Copy(element);
         this.AdditionalRequestParameters.Add(element2);
     }
     foreach (ClaimTypeElement element3 in source.ClaimTypeRequirements)
     {
         this.ClaimTypeRequirements.Add(new ClaimTypeElement(element3.ClaimType, element3.IsOptional));
     }
     this.KeySize = source.KeySize;
     this.KeyType = source.KeyType;
     this.TokenType = source.TokenType;
     this.DefaultMessageSecurityVersion = source.DefaultMessageSecurityVersion;
     if (source.ElementInformation.Properties["issuer"].ValueOrigin != PropertyValueOrigin.Default)
     {
         this.Issuer.Copy(source.Issuer);
     }
     if (source.ElementInformation.Properties["issuerMetadata"].ValueOrigin != PropertyValueOrigin.Default)
     {
         this.IssuerMetadata.Copy(source.IssuerMetadata);
     }
 }
 internal void Copy(IssuedTokenParametersElement source)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (source == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source");
     }
     foreach (XmlElementElement element in source.AdditionalRequestParameters)
     {
         XmlElementElement element2 = new XmlElementElement();
         element2.Copy(element);
         this.AdditionalRequestParameters.Add(element2);
     }
     foreach (ClaimTypeElement element3 in source.ClaimTypeRequirements)
     {
         this.ClaimTypeRequirements.Add(new ClaimTypeElement(element3.ClaimType, element3.IsOptional));
     }
     this.KeySize   = source.KeySize;
     this.KeyType   = source.KeyType;
     this.TokenType = source.TokenType;
     this.DefaultMessageSecurityVersion = source.DefaultMessageSecurityVersion;
     if (source.ElementInformation.Properties["issuer"].ValueOrigin != PropertyValueOrigin.Default)
     {
         this.Issuer.Copy(source.Issuer);
     }
     if (source.ElementInformation.Properties["issuerMetadata"].ValueOrigin != PropertyValueOrigin.Default)
     {
         this.IssuerMetadata.Copy(source.IssuerMetadata);
     }
 }
 public void Copy(XmlElementElement source)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (source == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source");
     }
     if (source.XmlElement != null)
     {
         this.XmlElement = (System.Xml.XmlElement)source.XmlElement.Clone();
     }
 }
        public void Copy(XmlElementElement source)
        {
            if (this.IsReadOnly())
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigReadOnly)));
            }
            if (null == source)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source");
            }

            if (null != source.XmlElement)
            {
                this.XmlElement = (XmlElement)source.XmlElement.Clone();
            }
        }
Exemplo n.º 5
0
        public void Copy(XmlElementElement source)
        {
            if (this.IsReadOnly())
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigReadOnly)));
            }
            if (null == source)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source");
            }

            if (null != source.XmlElement)
            {
                this.XmlElement = (XmlElement)source.XmlElement.Clone();
            }
        }
Exemplo n.º 6
0
        internal void Copy(IssuedTokenParametersElement source)
        {
            if (this.IsReadOnly())
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigReadOnly)));
            }
            if (null == source)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source");
            }

            foreach (XmlElementElement xmlElement in source.AdditionalRequestParameters)
            {
                XmlElementElement newElement = new XmlElementElement();
                newElement.Copy(xmlElement);
                this.AdditionalRequestParameters.Add(newElement);
            }

            foreach (ClaimTypeElement c in source.ClaimTypeRequirements)
            {
                this.ClaimTypeRequirements.Add(new ClaimTypeElement(c.ClaimType, c.IsOptional));
            }

            this.KeySize   = source.KeySize;
            this.KeyType   = source.KeyType;
            this.TokenType = source.TokenType;
            this.DefaultMessageSecurityVersion = source.DefaultMessageSecurityVersion;
            this.UseStrTransform = source.UseStrTransform;

            if (PropertyValueOrigin.Default != source.ElementInformation.Properties[ConfigurationStrings.Issuer].ValueOrigin)
            {
                this.Issuer.Copy(source.Issuer);
            }
            if (PropertyValueOrigin.Default != source.ElementInformation.Properties[ConfigurationStrings.IssuerMetadata].ValueOrigin)
            {
                this.IssuerMetadata.Copy(source.IssuerMetadata);
            }
        }
 internal void ResetInternal(XmlElementElement element)
 {
     this.Reset(element);
 }
 internal void ResetInternal(XmlElementElement element)
 {
     this.Reset(element);
 }
        internal void Copy(IssuedTokenParametersElement source)
        {
            if (this.IsReadOnly())
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigReadOnly)));
            }
            if (null == source)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("source");
            }

            foreach (XmlElementElement xmlElement in source.AdditionalRequestParameters)
            {
                XmlElementElement newElement = new XmlElementElement();
                newElement.Copy(xmlElement);
                this.AdditionalRequestParameters.Add(newElement);
            }

            foreach (ClaimTypeElement c in source.ClaimTypeRequirements)
            {
                this.ClaimTypeRequirements.Add(new ClaimTypeElement(c.ClaimType, c.IsOptional));
            }

            this.KeySize = source.KeySize;
            this.KeyType = source.KeyType;
            this.TokenType = source.TokenType;
            this.DefaultMessageSecurityVersion = source.DefaultMessageSecurityVersion;
            this.UseStrTransform = source.UseStrTransform;

            if (PropertyValueOrigin.Default != source.ElementInformation.Properties[ConfigurationStrings.Issuer].ValueOrigin)
            {
                this.Issuer.Copy(source.Issuer);
            }
            if (PropertyValueOrigin.Default != source.ElementInformation.Properties[ConfigurationStrings.IssuerMetadata].ValueOrigin)
            {
                this.IssuerMetadata.Copy(source.IssuerMetadata);
            }
        }