Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CurrencyWrapper.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataServiceQueryException.cs
- WebProxyScriptElement.cs
- HtmlElementErrorEventArgs.cs
- DateTimeConverter.cs
- ModuleElement.cs
- IndexedSelectQueryOperator.cs
- Setter.cs
- DataGridViewCellCancelEventArgs.cs
- LogArchiveSnapshot.cs
- HttpStaticObjectsCollectionBase.cs
- ReflectionHelper.cs
- MultiTrigger.cs
- SessionEndingEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- NativeMethods.cs
- ApplicationSettingsBase.cs
- TextParaLineResult.cs
- SafeSecurityHelper.cs
- GraphicsContainer.cs
- ToolbarAUtomationPeer.cs
- BypassElement.cs
- PathGradientBrush.cs
- GridViewCancelEditEventArgs.cs
- Pick.cs
- adornercollection.cs
- ToolStripItemRenderEventArgs.cs
- DocumentAutomationPeer.cs
- AssemblyCollection.cs
- BinaryNode.cs
- WebScriptMetadataMessageEncoderFactory.cs
- DateTimeSerializationSection.cs
- ModuleBuilder.cs
- PropertyIDSet.cs
- GridViewColumnHeader.cs
- Drawing.cs
- RouteData.cs
- SyndicationSerializer.cs
- MemberDomainMap.cs
- RouteParameter.cs
- DynamicRendererThreadManager.cs
- PropertyChangedEventManager.cs
- XamlWriter.cs
- GeometryCombineModeValidation.cs
- EntityViewGenerationConstants.cs
- WriteFileContext.cs
- DataViewListener.cs
- IPCCacheManager.cs
- CacheOutputQuery.cs
- DescendentsWalker.cs
- IODescriptionAttribute.cs
- SpeechDetectedEventArgs.cs
- RelationshipEntry.cs
- RoutedEventValueSerializer.cs
- KnownBoxes.cs
- GlyphTypeface.cs
- ObjectManager.cs
- BindingsCollection.cs
- OverlappedAsyncResult.cs
- MembershipUser.cs
- ArrayWithOffset.cs
- Matrix.cs
- AutomationEvent.cs
- MethodExpr.cs
- DeliveryRequirementsAttribute.cs
- ElementUtil.cs
- WebServiceErrorEvent.cs
- TabControlDesigner.cs
- DesignSurfaceManager.cs
- MasterPageParser.cs
- SmtpAuthenticationManager.cs
- DesignBindingEditor.cs
- URLIdentityPermission.cs
- MetabaseServerConfig.cs
- StaticFileHandler.cs
- UrlAuthFailureHandler.cs
- UnknownBitmapDecoder.cs
- HttpResponse.cs
- PageBuildProvider.cs
- Parameter.cs
- VisualStateChangedEventArgs.cs
- ListSortDescriptionCollection.cs
- ObjectListComponentEditor.cs
- DetailsViewDeleteEventArgs.cs
- SessionState.cs
- CodeDomConfigurationHandler.cs
- ObjectSpanRewriter.cs
- XamlWrapperReaders.cs
- StringComparer.cs
- SortKey.cs
- DesignTimeSiteMapProvider.cs
- XappLauncher.cs
- MultiViewDesigner.cs
- BitmapEffectDrawingContextState.cs
- ReadOnlyObservableCollection.cs
- NativeMethodsOther.cs
- RepeatInfo.cs
- GridView.cs
- RequestCachePolicyConverter.cs