Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / SspiSecurityTokenProvider.cs / 1 / SspiSecurityTokenProvider.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { using System.IdentityModel.Claims; using System.ServiceModel; using System.IdentityModel.Policy; using System.IdentityModel.Selectors; using System.IdentityModel.Tokens; using System.ServiceModel.Security.Tokens; using System.Net; using System.Security.Principal; public class SspiSecurityTokenProvider : SecurityTokenProvider { internal const bool DefaultAllowNtlm = true; internal const bool DefaultExtractWindowsGroupClaims = true; internal const bool DefaultAllowUnauthenticatedCallers = false; SspiSecurityToken token; // client side ctor public SspiSecurityTokenProvider(NetworkCredential credential, bool allowNtlm, TokenImpersonationLevel impersonationLevel) { this.token = new SspiSecurityToken(impersonationLevel, allowNtlm, credential); } // service side ctor public SspiSecurityTokenProvider(NetworkCredential credential, bool extractGroupsForWindowsAccounts, bool allowUnauthenticatedCallers) { this.token = new SspiSecurityToken(credential, extractGroupsForWindowsAccounts, allowUnauthenticatedCallers); } protected override SecurityToken GetTokenCore(TimeSpan timeout) { return this.token; } } } // 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
- UnauthorizedAccessException.cs
- Material.cs
- BitmapEffectrendercontext.cs
- RequestCacheManager.cs
- RectAnimationClockResource.cs
- ComboBox.cs
- DataGridPageChangedEventArgs.cs
- Preprocessor.cs
- TypeConverterHelper.cs
- BamlTreeMap.cs
- EncoderBestFitFallback.cs
- Nullable.cs
- TextHidden.cs
- Classification.cs
- WizardStepBase.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ByteStream.cs
- XomlDesignerLoader.cs
- BitmapEffectInput.cs
- SoapObjectWriter.cs
- DataSysAttribute.cs
- RepeatInfo.cs
- ResumeStoryboard.cs
- TextContainerHelper.cs
- AdornerHitTestResult.cs
- DefaultExpression.cs
- ScrollableControl.cs
- DeviceContext.cs
- PageContent.cs
- EncoderParameters.cs
- HandleExceptionArgs.cs
- TraceSection.cs
- FontDifferentiator.cs
- DatatypeImplementation.cs
- DispatcherSynchronizationContext.cs
- StrongName.cs
- ExternalException.cs
- ObjectViewQueryResultData.cs
- Section.cs
- _ConnectOverlappedAsyncResult.cs
- TailPinnedEventArgs.cs
- EdmEntityTypeAttribute.cs
- SortQueryOperator.cs
- SubMenuStyle.cs
- TargetParameterCountException.cs
- Formatter.cs
- XslAstAnalyzer.cs
- SafeNativeMethodsCLR.cs
- HttpDictionary.cs
- TextTabProperties.cs
- ScriptManager.cs
- XPathPatternParser.cs
- EntityClientCacheEntry.cs
- TextStore.cs
- DiscoveryVersion.cs
- TCPClient.cs
- KnownTypesHelper.cs
- ControlValuePropertyAttribute.cs
- AppModelKnownContentFactory.cs
- CollectionType.cs
- UnsafeNativeMethods.cs
- CollectionViewGroupInternal.cs
- ObjectReaderCompiler.cs
- ObjectItemLoadingSessionData.cs
- DetailsViewInsertedEventArgs.cs
- BindUriHelper.cs
- LinqToSqlWrapper.cs
- ArrayList.cs
- NamespaceExpr.cs
- EntityClassGenerator.cs
- TriState.cs
- SmiEventSink_DeferedProcessing.cs
- QueryContinueDragEvent.cs
- HtmlInputReset.cs
- StylusButtonEventArgs.cs
- HttpRequest.cs
- MultiBinding.cs
- XmlSchemaSubstitutionGroup.cs
- XdrBuilder.cs
- DataServiceQueryException.cs
- HMACSHA512.cs
- mansign.cs
- Property.cs
- HttpsChannelFactory.cs
- SupportsEventValidationAttribute.cs
- ParallelTimeline.cs
- WebPartDisplayModeCancelEventArgs.cs
- ObjectComplexPropertyMapping.cs
- XNodeValidator.cs
- SoapAttributeAttribute.cs
- ComPlusDiagnosticTraceRecords.cs
- CodeDirectiveCollection.cs
- EncryptedPackageFilter.cs
- OutputCacheProfileCollection.cs
- BoolExpression.cs
- ToolBarButton.cs
- ThaiBuddhistCalendar.cs
- ThousandthOfEmRealDoubles.cs
- DrawingAttributesDefaultValueFactory.cs
- ScriptControl.cs