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
- X509ServiceCertificateAuthentication.cs
- JpegBitmapDecoder.cs
- XPathEmptyIterator.cs
- PrefixQName.cs
- SqlTransaction.cs
- WmlLiteralTextAdapter.cs
- DiagnosticTraceSource.cs
- IndentedWriter.cs
- ImageBrush.cs
- TimeStampChecker.cs
- SoundPlayerAction.cs
- ExpressionLexer.cs
- KeysConverter.cs
- XmlSchemaAny.cs
- MappingItemCollection.cs
- Rule.cs
- ExceptionHandlersDesigner.cs
- SchemaNamespaceManager.cs
- EntityDataSourceMemberPath.cs
- GridViewUpdateEventArgs.cs
- MarkupObject.cs
- SqlException.cs
- ControlPaint.cs
- MetadataUtil.cs
- FrameworkContextData.cs
- ImageSourceValueSerializer.cs
- XPathNavigatorKeyComparer.cs
- TagNameToTypeMapper.cs
- FilteredDataSetHelper.cs
- Empty.cs
- DispatcherFrame.cs
- Main.cs
- PagesChangedEventArgs.cs
- XmlDataSourceView.cs
- ExpressionNormalizer.cs
- BitmapMetadataBlob.cs
- DataGridViewRowEventArgs.cs
- BaseTemplatedMobileComponentEditor.cs
- SQLGuid.cs
- COM2ICategorizePropertiesHandler.cs
- HideDisabledControlAdapter.cs
- RecognizedAudio.cs
- BezierSegment.cs
- TableItemProviderWrapper.cs
- WebBrowserUriTypeConverter.cs
- ObjectToIdCache.cs
- DataGridCellEditEndingEventArgs.cs
- ParameterModifier.cs
- CancellableEnumerable.cs
- Attributes.cs
- SchemaObjectWriter.cs
- LineSegment.cs
- FocusTracker.cs
- MatrixCamera.cs
- DataObjectMethodAttribute.cs
- EventProviderWriter.cs
- HtmlObjectListAdapter.cs
- CodeRemoveEventStatement.cs
- HMACRIPEMD160.cs
- RtfNavigator.cs
- AdornerHitTestResult.cs
- DebugController.cs
- AlignmentXValidation.cs
- LocatorGroup.cs
- EntitySqlException.cs
- PipelineModuleStepContainer.cs
- FormsAuthenticationCredentials.cs
- ToolStripControlHost.cs
- Missing.cs
- ElementAction.cs
- RelatedCurrencyManager.cs
- ComNativeDescriptor.cs
- DecoderFallback.cs
- GridViewPageEventArgs.cs
- SemaphoreSecurity.cs
- FlagsAttribute.cs
- TextViewSelectionProcessor.cs
- _NestedMultipleAsyncResult.cs
- EntityChangedParams.cs
- RowSpanVector.cs
- Timeline.cs
- PreProcessInputEventArgs.cs
- XmlName.cs
- ButtonBaseAdapter.cs
- SerialErrors.cs
- RuleSettingsCollection.cs
- PropertyValueChangedEvent.cs
- RuleConditionDialog.Designer.cs
- IDReferencePropertyAttribute.cs
- DataGridViewColumnCollection.cs
- CodeCatchClauseCollection.cs
- _UriTypeConverter.cs
- LocalValueEnumerator.cs
- PrintPreviewDialog.cs
- ExpandCollapsePatternIdentifiers.cs
- DataServiceProcessingPipeline.cs
- DetailsView.cs
- ApplicationId.cs
- SemanticBasicElement.cs
- HealthMonitoringSectionHelper.cs