Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / WindowsServiceCredential.cs / 1 / WindowsServiceCredential.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { public sealed class WindowsServiceCredential { bool allowAnonymousLogons = SspiSecurityTokenProvider.DefaultAllowUnauthenticatedCallers; bool includeWindowsGroups = SspiSecurityTokenProvider.DefaultExtractWindowsGroupClaims; bool isReadOnly; internal WindowsServiceCredential() { // empty } internal WindowsServiceCredential(WindowsServiceCredential other) { this.allowAnonymousLogons = other.allowAnonymousLogons; this.includeWindowsGroups = other.includeWindowsGroups; this.isReadOnly = other.isReadOnly; } public bool AllowAnonymousLogons { get { return this.allowAnonymousLogons; } set { ThrowIfImmutable(); this.allowAnonymousLogons = value; } } public bool IncludeWindowsGroups { get { return this.includeWindowsGroups; } set { ThrowIfImmutable(); this.includeWindowsGroups = value; } } 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
- VisualBasicSettingsConverter.cs
- Group.cs
- ErrorInfoXmlDocument.cs
- StylusCollection.cs
- Accessible.cs
- UndirectedGraph.cs
- SourceElementsCollection.cs
- Listbox.cs
- SelfIssuedSamlTokenFactory.cs
- FloaterParaClient.cs
- ObjRef.cs
- WebBrowsableAttribute.cs
- MultipartIdentifier.cs
- XsltLibrary.cs
- NavigationWindowAutomationPeer.cs
- IBuiltInEvidence.cs
- ComponentCollection.cs
- KnownTypesProvider.cs
- ProxyHwnd.cs
- LeaseManager.cs
- OLEDB_Util.cs
- ConfigurationStrings.cs
- DataObjectAttribute.cs
- StylusOverProperty.cs
- WebPartTransformerAttribute.cs
- Dictionary.cs
- ComboBox.cs
- ProcessModelInfo.cs
- SspiWrapper.cs
- ArcSegment.cs
- PropertyToken.cs
- TableCell.cs
- VectorAnimationBase.cs
- RpcResponse.cs
- ApplicationActivator.cs
- ThemeInfoAttribute.cs
- DocumentPageView.cs
- AccessorTable.cs
- Fonts.cs
- Token.cs
- CollectionChange.cs
- ExpressionPrefixAttribute.cs
- DecimalStorage.cs
- DetailsViewInsertEventArgs.cs
- InputBindingCollection.cs
- Compensate.cs
- MachineKeySection.cs
- CodeAccessPermission.cs
- TreeNodeStyle.cs
- HttpInputStream.cs
- BitmapEffectInput.cs
- TimeSpan.cs
- ContainerFilterService.cs
- SettingsProviderCollection.cs
- CustomAttributeSerializer.cs
- ResourceCategoryAttribute.cs
- ServiceModelConfiguration.cs
- RsaSecurityTokenAuthenticator.cs
- DecoderFallbackWithFailureFlag.cs
- hresults.cs
- VideoDrawing.cs
- TrackingParticipant.cs
- DecimalStorage.cs
- BitmapEffectDrawingContent.cs
- APCustomTypeDescriptor.cs
- SecurityElement.cs
- TextComposition.cs
- CodeTypeMemberCollection.cs
- PageContent.cs
- Int64.cs
- CountAggregationOperator.cs
- SoapEnumAttribute.cs
- InputLangChangeRequestEvent.cs
- PassportAuthenticationModule.cs
- HandlerBase.cs
- ThreadExceptionEvent.cs
- IDQuery.cs
- DBAsyncResult.cs
- RemoveStoryboard.cs
- SafeCertificateContext.cs
- EntityDataSourceStatementEditor.cs
- VisualCollection.cs
- StringPropertyBuilder.cs
- oledbmetadatacolumnnames.cs
- UIPermission.cs
- ControlBuilderAttribute.cs
- ApplicationFileParser.cs
- Graph.cs
- FileEnumerator.cs
- FileSystemWatcher.cs
- SelectionItemProviderWrapper.cs
- StaticFileHandler.cs
- smtpconnection.cs
- NonVisualControlAttribute.cs
- ResourceProviderFactory.cs
- WebAdminConfigurationHelper.cs
- EntityDataSourceContainerNameItem.cs
- ReferencedAssemblyResolver.cs
- DataObjectSettingDataEventArgs.cs
- TextShapeableCharacters.cs