Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- /* * 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MSAANativeProvider.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ResourceManager.cs
- FromReply.cs
- BitmapPalettes.cs
- querybuilder.cs
- FormatVersion.cs
- BitmapEffectState.cs
- StringUtil.cs
- RoleManagerSection.cs
- MemberHolder.cs
- StringPropertyBuilder.cs
- SiteMembershipCondition.cs
- XmlDocument.cs
- DataShape.cs
- CodeSnippetStatement.cs
- RequestResizeEvent.cs
- ServiceHostingEnvironment.cs
- SimpleType.cs
- ListBoxItem.cs
- FormView.cs
- _UncName.cs
- CodeTypeMember.cs
- BamlMapTable.cs
- Soap.cs
- XmlMtomWriter.cs
- GCHandleCookieTable.cs
- ContextItemManager.cs
- Maps.cs
- ScrollEventArgs.cs
- TraceEventCache.cs
- JpegBitmapDecoder.cs
- GenericUriParser.cs
- SafeRightsManagementHandle.cs
- InternalBufferOverflowException.cs
- ConfigurationValidatorBase.cs
- SecureEnvironment.cs
- DataGridRowsPresenter.cs
- TextParentUndoUnit.cs
- TextRunProperties.cs
- XamlSerializerUtil.cs
- AlternateView.cs
- StreamUpgradeInitiator.cs
- TableCellCollection.cs
- FilteredXmlReader.cs
- OleCmdHelper.cs
- BidOverLoads.cs
- HostingEnvironmentSection.cs
- ContentFilePart.cs
- Buffer.cs
- TrailingSpaceComparer.cs
- LongTypeConverter.cs
- ExpandSegment.cs
- EntitySqlQueryCacheEntry.cs
- WpfGeneratedKnownProperties.cs
- ConfigXmlComment.cs
- TabPanel.cs
- DataListItemEventArgs.cs
- Pair.cs
- ErrorFormatterPage.cs
- EventData.cs
- ToolStripDesignerAvailabilityAttribute.cs
- InkPresenterAutomationPeer.cs
- HwndHost.cs
- XmlDataSource.cs
- SpinWait.cs
- WebMessageEncodingBindingElement.cs
- RawAppCommandInputReport.cs
- WsrmMessageInfo.cs
- InvalidProgramException.cs
- RowVisual.cs
- IdentityReference.cs
- DecimalAnimation.cs
- XmlSchemaSequence.cs
- Calendar.cs
- BindingContext.cs
- MemberRelationshipService.cs
- Variant.cs
- WebCategoryAttribute.cs
- SqlUDTStorage.cs
- PenContext.cs
- SecurityCriticalDataForSet.cs
- FixedSOMPage.cs
- RightsManagementResourceHelper.cs
- precedingsibling.cs
- ScrollProperties.cs
- ReadOnlyObservableCollection.cs
- ResourceDescriptionAttribute.cs
- CategoryNameCollection.cs
- ListSortDescriptionCollection.cs
- sqlcontext.cs
- ServicePointManager.cs
- Line.cs
- Context.cs
- FormsAuthenticationEventArgs.cs
- ErrorStyle.cs
- SpellerInterop.cs
- BoolExpr.cs
- ModelItemCollectionImpl.cs
- SystemSounds.cs