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); } }
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 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); } }