Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / SecureConversationServiceCredential.cs / 1 / SecureConversationServiceCredential.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { using System.IdentityModel.Policy; using System.ServiceModel; using System.IdentityModel.Tokens; using System.Runtime.Serialization; using System.Collections.ObjectModel; public sealed class SecureConversationServiceCredential { static readonly SecurityStateEncoder defaultSecurityStateEncoder = new DataProtectionSecurityStateEncoder(); SecurityStateEncoder securityStateEncoder; CollectionsecurityContextClaimTypes; bool isReadOnly; internal SecureConversationServiceCredential() { this.securityStateEncoder = defaultSecurityStateEncoder; securityContextClaimTypes = new Collection (); SamlAssertion.AddSamlClaimTypes(securityContextClaimTypes); } internal SecureConversationServiceCredential(SecureConversationServiceCredential other) { this.securityStateEncoder = other.securityStateEncoder; this.securityContextClaimTypes = new Collection (); for (int i = 0; i < other.securityContextClaimTypes.Count; ++i) { this.securityContextClaimTypes.Add(other.securityContextClaimTypes[i]); } this.isReadOnly = other.isReadOnly; } public SecurityStateEncoder SecurityStateEncoder { get { return this.securityStateEncoder; } set { ThrowIfImmutable(); this.securityStateEncoder = value; } } public Collection SecurityContextClaimTypes { get { return this.securityContextClaimTypes; } } internal void MakeReadOnly() { this.isReadOnly = true; } void ThrowIfImmutable() { if (this.isReadOnly) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JsonReaderDelegator.cs
- ObfuscationAttribute.cs
- SelectionRange.cs
- MessagePropertyDescription.cs
- TreeView.cs
- XmlDocumentFragment.cs
- SchemaImporter.cs
- Debug.cs
- ParseNumbers.cs
- RemotingConfigParser.cs
- MDIWindowDialog.cs
- HttpListenerException.cs
- DataGridPagerStyle.cs
- DataGridItemCollection.cs
- DrawingCollection.cs
- ReferencedAssembly.cs
- _BufferOffsetSize.cs
- SessionPageStateSection.cs
- ReliableInputConnection.cs
- OrderByBuilder.cs
- ProtocolsConfigurationEntry.cs
- XmlText.cs
- XmlUtf8RawTextWriter.cs
- DelegateInArgument.cs
- DataGridViewElement.cs
- Buffer.cs
- ProtocolViolationException.cs
- UnsafePeerToPeerMethods.cs
- DateTimePicker.cs
- MarginsConverter.cs
- SqlWebEventProvider.cs
- KnownBoxes.cs
- LiteralLink.cs
- IPipelineRuntime.cs
- DiscoveryClientBindingElement.cs
- CountdownEvent.cs
- WebPartRestoreVerb.cs
- CanonicalXml.cs
- ReceiveParametersContent.cs
- ApplicationActivator.cs
- ChildrenQuery.cs
- BufferBuilder.cs
- VerificationAttribute.cs
- SiteMapPath.cs
- StagingAreaInputItem.cs
- IdnMapping.cs
- EndpointAddressMessageFilterTable.cs
- SchemaComplexType.cs
- EntityTypeEmitter.cs
- IMembershipProvider.cs
- complextypematerializer.cs
- TypeElementCollection.cs
- ColorAnimationUsingKeyFrames.cs
- BaseCodePageEncoding.cs
- ObsoleteAttribute.cs
- SoapEnumAttribute.cs
- DefaultDialogButtons.cs
- PrivilegeNotHeldException.cs
- SoapExtensionReflector.cs
- CodeGenerator.cs
- PropertyToken.cs
- wmiprovider.cs
- ItemCollection.cs
- ContentValidator.cs
- MaskedTextProvider.cs
- ConfigurationLocation.cs
- WinInet.cs
- COM2IPerPropertyBrowsingHandler.cs
- OuterGlowBitmapEffect.cs
- IriParsingElement.cs
- SqlIdentifier.cs
- TraceEventCache.cs
- MimeFormReflector.cs
- SrgsSubset.cs
- TimeSpanValidator.cs
- GradientStopCollection.cs
- EntityDataSourceEntityTypeFilterItem.cs
- MailMessage.cs
- SchemaDeclBase.cs
- ViewService.cs
- MachineSettingsSection.cs
- ZipIOLocalFileDataDescriptor.cs
- SpecularMaterial.cs
- DataControlReferenceCollection.cs
- OSFeature.cs
- SessionEndingEventArgs.cs
- HtmlControl.cs
- IisTraceWebEventProvider.cs
- ButtonBase.cs
- QilReplaceVisitor.cs
- XslAst.cs
- ActivityBindForm.cs
- AvTraceFormat.cs
- XPathDocument.cs
- PageStatePersister.cs
- MiniConstructorInfo.cs
- TextParagraphView.cs
- Vector.cs
- SoapFormatterSinks.cs
- InvalidPrinterException.cs