Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Selectors / WindowsSecurityTokenAuthenticator.cs / 1 / WindowsSecurityTokenAuthenticator.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Selectors { using System.Collections.Generic; using System.Collections.ObjectModel; using System.IdentityModel.Claims; using System.IdentityModel.Policy; using System.IdentityModel.Tokens; public class WindowsSecurityTokenAuthenticator : SecurityTokenAuthenticator { bool includeWindowsGroups; public WindowsSecurityTokenAuthenticator() : this(WindowsClaimSet.DefaultIncludeWindowsGroups) { } public WindowsSecurityTokenAuthenticator(bool includeWindowsGroups) { this.includeWindowsGroups = includeWindowsGroups; } protected override bool CanValidateTokenCore(SecurityToken token) { return token is WindowsSecurityToken; } protected override ReadOnlyCollectionValidateTokenCore(SecurityToken token) { WindowsSecurityToken windowsToken = (WindowsSecurityToken)token; WindowsClaimSet claimSet = new WindowsClaimSet(windowsToken.WindowsIdentity, this.includeWindowsGroups, windowsToken.ValidTo); return SecurityUtils.CreateAuthorizationPolicies(claimSet, windowsToken.ValidTo); } } } // 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
- Int16Converter.cs
- HMACSHA512.cs
- TableColumn.cs
- DataRecordInternal.cs
- XmlNotation.cs
- TextCharacters.cs
- DataViewSettingCollection.cs
- OpacityConverter.cs
- HtmlTableRowCollection.cs
- EdmComplexPropertyAttribute.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- EllipseGeometry.cs
- XmlDocument.cs
- GorillaCodec.cs
- TextEditorLists.cs
- UrlPath.cs
- RMEnrollmentPage3.cs
- DateTimeUtil.cs
- WorkflowServiceAttributes.cs
- RecognizerInfo.cs
- SecurityDescriptor.cs
- ResXBuildProvider.cs
- ParameterElementCollection.cs
- MeasurementDCInfo.cs
- DataControlReferenceCollection.cs
- DataExchangeServiceBinder.cs
- QueryableDataSource.cs
- WebScriptClientGenerator.cs
- CoreSwitches.cs
- Brush.cs
- XLinq.cs
- TemplateColumn.cs
- ScaleTransform3D.cs
- SafeCryptContextHandle.cs
- ScriptingSectionGroup.cs
- Cast.cs
- SamlAudienceRestrictionCondition.cs
- Avt.cs
- RestHandler.cs
- SqlClientMetaDataCollectionNames.cs
- OleAutBinder.cs
- ObfuscateAssemblyAttribute.cs
- SubstitutionDesigner.cs
- Facet.cs
- ProxyHwnd.cs
- BehaviorService.cs
- jithelpers.cs
- GridItemProviderWrapper.cs
- RequiredFieldValidator.cs
- DesignerAutoFormat.cs
- FileSystemInfo.cs
- ChunkedMemoryStream.cs
- UnsafeMethods.cs
- IImplicitResourceProvider.cs
- XmlMapping.cs
- XmlArrayItemAttribute.cs
- ReadOnlyDataSource.cs
- SmtpFailedRecipientException.cs
- StructuralType.cs
- XmlSchemaParticle.cs
- ModelItem.cs
- ScalarOps.cs
- AsyncPostBackTrigger.cs
- TypeReference.cs
- ScriptBehaviorDescriptor.cs
- ConvertersCollection.cs
- Operand.cs
- ByteRangeDownloader.cs
- UsernameTokenFactoryCredential.cs
- RawStylusInputReport.cs
- ViewStateChangedEventArgs.cs
- BamlResourceSerializer.cs
- VirtualizingStackPanel.cs
- TreeBuilderBamlTranslator.cs
- SessionStateModule.cs
- CodeObject.cs
- RepeatBehaviorConverter.cs
- CodeTypeReferenceCollection.cs
- SimpleType.cs
- StylusPoint.cs
- SchemaInfo.cs
- ArrayExtension.cs
- RequiredFieldValidator.cs
- SetUserPreferenceRequest.cs
- RawUIStateInputReport.cs
- EncoderNLS.cs
- SupportsEventValidationAttribute.cs
- Bits.cs
- AutomationPropertyInfo.cs
- ContextStaticAttribute.cs
- BroadcastEventHelper.cs
- DynamicMetaObjectBinder.cs
- NamespaceExpr.cs
- IntSecurity.cs
- MessageBox.cs
- KnowledgeBase.cs
- DataGridTableCollection.cs
- DictionaryEntry.cs
- InvalidPropValue.cs
- RegexReplacement.cs