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
- SignatureHelper.cs
- ContactManager.cs
- TypeUsageBuilder.cs
- DetailsViewRowCollection.cs
- Control.cs
- complextypematerializer.cs
- ListViewUpdateEventArgs.cs
- ServiceRouteHandler.cs
- ResizeBehavior.cs
- ManagementException.cs
- ClientSettingsStore.cs
- X509ScopedServiceCertificateElement.cs
- MyContact.cs
- Interlocked.cs
- XmlValueConverter.cs
- PartialList.cs
- TextBox.cs
- BrowsableAttribute.cs
- SafeEventHandle.cs
- XamlSerializerUtil.cs
- UrlParameterReader.cs
- httpserverutility.cs
- DynamicMetaObject.cs
- XpsDigitalSignature.cs
- DeferredElementTreeState.cs
- ImageField.cs
- ReadOnlyCollectionBase.cs
- StringConcat.cs
- CompilationPass2TaskInternal.cs
- HttpCacheParams.cs
- KeyTimeConverter.cs
- SubMenuStyle.cs
- SqlCommandSet.cs
- ClientScriptManager.cs
- GetWinFXPath.cs
- XmlSchemaSimpleContentExtension.cs
- FormViewUpdateEventArgs.cs
- ColorBlend.cs
- DefaultPropertyAttribute.cs
- COM2IDispatchConverter.cs
- ObjectTag.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- CodeAttributeArgument.cs
- PageContentCollection.cs
- EmptyControlCollection.cs
- SqlXml.cs
- TransformGroup.cs
- ConstraintStruct.cs
- Clause.cs
- BaseProcessor.cs
- EdmRelationshipRoleAttribute.cs
- MatrixTransform3D.cs
- DataServiceEntityAttribute.cs
- TraceUtils.cs
- SelectingProviderEventArgs.cs
- PrinterResolution.cs
- QueryCacheManager.cs
- DataContractSet.cs
- FontUnit.cs
- TextContainerChangeEventArgs.cs
- _NegotiateClient.cs
- SystemTcpConnection.cs
- BufferAllocator.cs
- XpsS0ValidatingLoader.cs
- OleDbEnumerator.cs
- DataGridViewTextBoxColumn.cs
- ToolStripControlHost.cs
- PageContentAsyncResult.cs
- SystemWebSectionGroup.cs
- UriSectionData.cs
- SqlGenerator.cs
- XmlRootAttribute.cs
- ImageAutomationPeer.cs
- xdrvalidator.cs
- EllipseGeometry.cs
- ListViewCommandEventArgs.cs
- FormViewPageEventArgs.cs
- QueryAsyncResult.cs
- BasicBrowserDialog.designer.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- TryLoadRunnableWorkflowCommand.cs
- InternalConfigSettingsFactory.cs
- ClientProxyGenerator.cs
- XDeferredAxisSource.cs
- HtmlPageAdapter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- LocalizationParserHooks.cs
- ColumnMapCopier.cs
- ClrProviderManifest.cs
- ToolStripDesignerAvailabilityAttribute.cs
- IteratorFilter.cs
- CapabilitiesSection.cs
- UserControlCodeDomTreeGenerator.cs
- PropertyManager.cs
- VBCodeProvider.cs
- ExpressionLexer.cs
- CodeSnippetTypeMember.cs
- MessageTransmitTraceRecord.cs
- SubMenuStyleCollectionEditor.cs
- UTF8Encoding.cs