Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Security / FormsIdentity.cs / 1 / FormsIdentity.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* * FormsIdentity * * Copyright (c) 1999 Microsoft Corporation */ namespace System.Web.Security { using System.Security.Principal; using System.Security.Permissions; ////// This class is an IIdentity derived class /// used by FormsAuthenticationModule. It provides a way for an application to /// access the cookie authentication ticket. /// [Serializable] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class FormsIdentity : IIdentity { ////// The name of the identity (in this case, the /// passport user name). /// public String Name { get { return _Ticket.Name;}} ////// The type of the identity (in this case, /// "Forms"). /// public String AuthenticationType { get { return "Forms";}} ////// Indicates whether or not authentication took /// place. /// public bool IsAuthenticated { get { return true;}} ////// Returns the FormsAuthenticationTicket /// associated with the current request. /// public FormsAuthenticationTicket Ticket { get { return _Ticket;}} ////// Constructor. /// public FormsIdentity (FormsAuthenticationTicket ticket) { _Ticket = ticket; } private FormsAuthenticationTicket _Ticket; } } // 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
- SchemaElementLookUpTable.cs
- FragmentQueryProcessor.cs
- WmfPlaceableFileHeader.cs
- DummyDataSource.cs
- WebBrowser.cs
- ScriptReferenceEventArgs.cs
- SqlUDTStorage.cs
- Registry.cs
- ItemCollection.cs
- TextRunProperties.cs
- EventEntry.cs
- ProgressBarAutomationPeer.cs
- PropertyFilterAttribute.cs
- StylusLogic.cs
- Exceptions.cs
- AbstractDataSvcMapFileLoader.cs
- DefaultValueAttribute.cs
- StatusBarDrawItemEvent.cs
- Handle.cs
- XmlValidatingReader.cs
- KnownBoxes.cs
- ResolveInfo.cs
- WaitHandle.cs
- WebPartTransformerAttribute.cs
- FirstQueryOperator.cs
- UIElementPropertyUndoUnit.cs
- TextPattern.cs
- RefreshPropertiesAttribute.cs
- SimpleMailWebEventProvider.cs
- FeatureSupport.cs
- BufferedOutputStream.cs
- BCryptSafeHandles.cs
- TextSchema.cs
- DataTemplateKey.cs
- DesignerVerbCollection.cs
- HtmlListAdapter.cs
- AspNetSynchronizationContext.cs
- ExpressionStringBuilder.cs
- XpsImageSerializationService.cs
- DelegateSerializationHolder.cs
- WhiteSpaceTrimStringConverter.cs
- BinaryCommonClasses.cs
- DbUpdateCommandTree.cs
- QueryResultOp.cs
- ContextMenuStrip.cs
- ProfileModule.cs
- DocumentPage.cs
- BulletDecorator.cs
- WindowsFormsHostPropertyMap.cs
- SqlClientFactory.cs
- RuntimeComponentFilter.cs
- ConstructorExpr.cs
- DllNotFoundException.cs
- TreeView.cs
- ComponentCollection.cs
- __ComObject.cs
- MsmqIntegrationSecurity.cs
- HuffModule.cs
- DataGridRowHeader.cs
- ProfileManager.cs
- IntAverageAggregationOperator.cs
- GridPattern.cs
- AngleUtil.cs
- RegistrationServices.cs
- itemelement.cs
- SoapIncludeAttribute.cs
- StylusPlugInCollection.cs
- MemoryFailPoint.cs
- CellParaClient.cs
- HyperLinkDesigner.cs
- InfoCardServiceInstallComponent.cs
- CompilerTypeWithParams.cs
- Int32EqualityComparer.cs
- AutoGeneratedFieldProperties.cs
- WpfWebRequestHelper.cs
- SqlXml.cs
- EqualityComparer.cs
- ProfileSettingsCollection.cs
- WebPartConnectionsCancelEventArgs.cs
- IisTraceWebEventProvider.cs
- HttpRequestBase.cs
- PageContentAsyncResult.cs
- NameValueCollection.cs
- MD5CryptoServiceProvider.cs
- X509ClientCertificateAuthenticationElement.cs
- CollectionsUtil.cs
- SingletonInstanceContextProvider.cs
- LocalIdKeyIdentifierClause.cs
- InstanceStore.cs
- DataGridLength.cs
- IntAverageAggregationOperator.cs
- DataView.cs
- SolidBrush.cs
- RelationshipEndMember.cs
- ArrangedElementCollection.cs
- SharedStatics.cs
- ProcessModuleCollection.cs
- ServiceChannelManager.cs
- SiteOfOriginPart.cs
- Converter.cs